# Intelligence Terminal configuration
# Copy to .env. Keep comments on separate lines; Docker env_file treats inline comments as values.

# Server
PORT=3117
REFRESH_INTERVAL_MINUTES=15
AUTO_OPEN_BROWSER=false
STALE_DATA_MAX_AGE_MINUTES=60
STALE_ALERT_COOLDOWN_MINUTES=60
DASHBOARD_URL=
TERMINAL_ACTIONS_ENABLED=true
SWEEP_TOKEN=
SSE_HEARTBEAT_INTERVAL_MS=25000
TERMINAL_ACTION_RATE_LIMIT_WINDOW_MS=60000
TERMINAL_ACTION_RATE_LIMIT_MAX=10
BRIEF_VERBOSITY=standard

# Security Manager profile
# Required for onboarding. Generate a unique random value of at least 32 characters.
# The profile is AES-256-GCM encrypted in the persistent runs volume.
SECURITY_ONBOARDING_ENABLED=true
SECURITY_PROFILE_ENCRYPTION_KEY=

# DAVE dynamic presence (opt-in)
DAVE_PRESENCE_ENABLED=false
DAVE_PRESENCE_MAX_MESSAGES_PER_DAY=4
DAVE_PRESENCE_MIN_GAP_MINUTES=75
DAVE_PRESENCE_MIN_INTERVAL_MINUTES=45
DAVE_PRESENCE_MAX_INTERVAL_MINUTES=180
DAVE_PRESENCE_IDLE_AFTER_MINUTES=60
DAVE_PRESENCE_CHECK_INTERVAL_MINUTES=5
DAVE_PRESENCE_TIMEZONE=Europe/Berlin

# LLM layer
# Providers: litellm | openrouter | openai-compatible | lmstudio | ollama | openai | anthropic | gemini | mistral | minimax | grok | codex
LLM_PROVIDER=openrouter
LLM_BASE_URL=https://openrouter.ai/api/v1
LLM_API_KEY=
LLM_MODEL=openrouter/free
LLM_TEMPERATURE=0.2
LLM_MAX_TOKENS=2000
LLM_TIMEOUT_MS=90000
OPENROUTER_SITE_URL=https://git.wilkensxl.de/Code-Inc/intelligence-terminal
OPENROUTER_APP_NAME=Intelligence Terminal

# Local OpenAI-compatible examples
# LiteLLM: LLM_PROVIDER=litellm, LLM_BASE_URL=https://llm.example.com/v1, LLM_API_KEY=your-proxy-key, LLM_MODEL=your-model-alias
# Local 20B+ models may need LLM_TIMEOUT_MS=300000 for full intelligence sweeps.
# LM Studio: LLM_PROVIDER=lmstudio, LLM_BASE_URL=http://host.docker.internal:1234/v1, LLM_MODEL=local-model
# Ollama: LLM_PROVIDER=ollama, LLM_BASE_URL=http://host.docker.internal:11434, LLM_MODEL=llama3.1:8b
# Generic: LLM_PROVIDER=openai-compatible, LLM_BASE_URL=http://host.docker.internal:8000/v1, LLM_MODEL=your-model

# Core OSINT / market source keys
FRED_API_KEY=
FIRMS_MAP_KEY=
EIA_API_KEY=
AISSTREAM_API_KEY=
ACLED_EMAIL=
ACLED_PASSWORD=
CLOUDFLARE_API_TOKEN=
BLS_API_KEY=
REDDIT_CLIENT_ID=
REDDIT_CLIENT_SECRET=

# Telegram bot and alerts
TELEGRAM_BOT_TOKEN=
TELEGRAM_CHAT_ID=
TELEGRAM_POLL_INTERVAL=5000
TELEGRAM_CHANNELS=
TELEGRAM_AI_CHAT_ENABLED=true
TELEGRAM_AI_HISTORY_MESSAGES=8
TELEGRAM_AI_MAX_INPUT_CHARS=2000
TELEGRAM_AI_MAX_TOKENS=2048
TELEGRAM_AI_TIMEOUT_MS=300000
TELEGRAM_AGENT_ENABLED=true
TELEGRAM_AGENT_MAX_STEPS=4
TELEGRAM_AGENT_CONFIRM_TTL_SECONDS=300
TELEGRAM_AGENT_PROACTIVE_ENABLED=true
TELEGRAM_AGENT_PROACTIVE_MIN_CHANGES=3
TELEGRAM_AGENT_PROACTIVE_COOLDOWN_MINUTES=30

# Discord bot/webhook
DISCORD_BOT_TOKEN=
DISCORD_CHANNEL_ID=
DISCORD_GUILD_ID=
DISCORD_WEBHOOK_URL=
