# TradingAgents Environment Variables Configuration # ============================================ # LLM Provider API URLs # ============================================ # These environment variables allow you to customize the API endpoints # for different LLM providers. If not set, the default URLs will be used. # OpenAI API URL # Default: https://api.openai.com/v1 #OPENAI_API_URL=https://api.openai.com/v1 # Anthropic API URL # Default: https://api.anthropic.com/ #ANTHROPIC_API_URL=https://api.anthropic.com/ # Google Generative AI API URL # Default: https://generativelanguage.googleapis.com/v1 #GOOGLE_API_URL=https://generativelanguage.googleapis.com/v1 # OpenRouter API URL # Default: https://openrouter.ai/api/v1 #OPENROUTER_API_URL=https://openrouter.ai/api/v1 # Ollama API URL (local) # Default: http://localhost:11434/v1 #OLLAMA_API_URL=http://localhost:11434/v1 # ============================================ # Embedding Configuration # ============================================ # If EMBEDDING_API_URL is set, it will be used for ALL providers (overrides defaults) # This is required for Anthropic (which doesn't provide embeddings) # Can point to sentence-transformers in Docker, Ollama, or any OpenAI-compatible service # Embedding service URL (OpenAI-compatible API) # Required for Anthropic, optional for others # Examples: # - Local Service (startEmbedding.sh): http://localhost:11434/v1 # - Ollama: http://localhost:11434/v1 #EMBEDDING_API_URL=http://localhost:11434/v1 # Embedding model name # Default: all-MiniLM-L6-v2 #EMBEDDING_MODEL=all-MiniLM-L6-v2 # Embedding API key (if your service requires it) # Default: "local" (most local services don't need a key) #EMBEDDING_API_KEY=local # ============================================ # API Keys # ============================================ # Alpha Vantage API Key ALPHA_VANTAGE_API_KEY=alpha_vantage_api_key_placeholder # OpenAI API Key OPENAI_API_KEY=openai_api_key_placeholder # Alpaca Trading API #ALPACA_API_KEY=your_alpaca_api_key_here #ALPACA_API_SECRET=your_alpaca_secret_key_here # WhatsApp Notification (CallMeBot) # Get API Key from: https://www.callmebot.com/blog/free-api-whatsapp-messages/ #CALLMEBOT_PHONE=+1234567890 #CALLMEBOT_PHONE=+1234567890 #CALLMEBOT_API_KEY=123456 # WhatsApp Notification (Twilio) #NOTIFICATION_PROVIDER=twilio # Options: callmebot (default) or twilio #TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #TWILIO_AUTH_TOKEN=your_token #TWILIO_FROM_NUMBER=whatsapp:+14155238886 #TWILIO_TO_NUMBER=whatsapp:+1234567890 # Telegram Notification (Best Free Alternative) #NOTIFICATION_PROVIDER=telegram #TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 #TELEGRAM_CHAT_ID=123456789 # Google API Key (for Gemini models) #GOOGLE_API_KEY=your_google_api_key_here # ============================================ # Application Settings # ============================================ # Results directory for storing analysis outputs # Default: ./results #TRADINGAGENTS_RESULTS_DIR=./results