# OpenRouter API key (REQUIRED) OPENROUTER_API_KEY=your_api_key_here # Server configuration PORT=3002 NODE_ENV=production # Optional: Override default models # HIGH_COST_MODELS=perplexity/sonar-deep-research,perplexity/sonar-pro,perplexity/sonar-reasoning-pro,openai/gpt-4o-search-preview # LOW_COST_MODELS=perplexity/sonar-reasoning,openai/gpt-4o-mini-search-preview,google/gemini-2.0-flash-001 # Database and caching configuration # PGLITE_DATA_DIR=./researchAgentDB # Directory for PGLite database files in Node.js # CACHE_TTL_SECONDS=3600 # Cache time-to-live in seconds (default: 1 hour) # PGLITE_DATABASE_URL=idb://my-database # Override auto-detected database URL (idb:// for browser, file:// for Node.js) # PGLITE_RELAXED_DURABILITY=true # Enable relaxed durability for better performance # PGLITE_MAX_RETRY_ATTEMPTS=3 # Maximum retry attempts for database operations # PGLITE_RETRY_DELAY_BASE_MS=200 # Base delay (ms) for exponential backoff during retries # PGLITE_ALLOW_IN_MEMORY_FALLBACK=true # Allow fallback to in-memory database if persistent storage fails