| # ============================================================ | |
| # Home for AI — Environment Configuration | |
| # Copy to .env and fill in your values | |
| # ============================================================ | |
| # --- LLM (OpenRouter) --- | |
| OPENROUTER_API_KEY=your_openrouter_key_here | |
| # Optional: override model IDs | |
| KIMI_MODEL_ID=moonshotai/kimi-k2.6 | |
| DEEPSEEK_MODEL_ID=deepseek/deepseek-v3.2 | |
| # --- Security --- | |
| # Generate with: python -c "import secrets; print(secrets.token_hex(32))" | |
| SECRET_KEY=your_jwt_secret_key_here_minimum_32_chars | |
| ENCRYPTION_KEY=your_aes_encryption_key_here_32_chars | |
| # --- Database --- | |
| # Development: SQLite | |
| DATABASE_URL=sqlite+aiosqlite:///./home_for_ai.db | |
| # Production: PostgreSQL | |
| # DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/home_for_ai | |
| # --- CORS --- | |
| ALLOWED_ORIGINS=http://localhost:5173,https://home-for-ai.pplx.app | |
| # --- Environment --- | |
| ENVIRONMENT=development | |
| # Options: development | staging | production | |
| # --- Agent Settings --- | |
| AGENT_LOOP_INTERVAL_SECONDS=300 | |
| PORTFOLIO_UPDATE_INTERVAL_SECONDS=3600 | |
| STARTING_PORTFOLIO_VALUE=100000.0 | |
| MAX_DRAWDOWN_PERCENT=15.0 | |
| # --- Market Data --- | |
| # NewsAPI key (optional — RSS fallback used if not set) | |
| NEWS_API_KEY= | |
| # --- Rate Limiting --- | |
| RATE_LIMIT_PER_MINUTE=100 | |
| # --- Logging --- | |
| LOG_LEVEL=INFO | |