File size: 1,295 Bytes
f46d32a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ============================================================
# 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