# ============================================================================= # TradingAgents Environment Configuration # ============================================================================= # Copy this file to .env and fill in your API keys and configuration # ============================================================================= # LLM Provider API Keys # ============================================================================= # Set the API key for the LLM provider you want to use # The CLI will prompt you to select a provider when running analysis # OpenAI (GPT-4, GPT-5 models) OPENAI_API_KEY= # Google (Gemini models) GOOGLE_API_KEY= # Anthropic (Claude models) ANTHROPIC_API_KEY= # xAI (Grok models) XAI_API_KEY= # OpenRouter (Access to multiple models) OPENROUTER_API_KEY= # ============================================================================= # LM Studio Configuration (Local Models) # ============================================================================= # LM Studio allows you to run models locally on your machine # The CLI will automatically detect available models when you select LM Studio # Base URL for LM Studio server (optional, defaults to http://localhost:1234/v1) # Change this if you're running LM Studio on a different port or remote server LMSTUDIO_BASE_URL=http://localhost:1234/v1 # API Key for LM Studio (optional, only needed if you secured your instance) # Most local LM Studio instances don't require an API key LMSTUDIO_API_KEY= # ============================================================================= # Data Provider API Keys # ============================================================================= # Alpha Vantage - Stock market data, news, and fundamentals # Get your free API key at: https://www.alphavantage.co/support/#api-key ALPHA_VANTAGE_API_KEY= # ============================================================================= # Advanced Configuration (Optional) # ============================================================================= # Custom results directory (defaults to ./results) # TRADINGAGENTS_RESULTS_DIR=./results