Supported Providers
- OpenRouter (recommended) - Access multiple models through a single API
- OpenAI - GPT models (GPT-4o, GPT-5.2, etc.)
- Anthropic - Claude models (Claude 3.5 Sonnet, etc.)
- Google AI - Gemini models (Gemini Pro, Ultra, etc.)
Quick Start
Configuration
Environment Variables
string
default:"openrouter"
Default LLM provider to use.Options:
openrouter, openai, anthropic, googlenumber
default:"240"
Maximum recursion depth for agent workflows. Prevents infinite loops.
OpenRouter (Recommended)
OpenRouter provides access to multiple LLM models through a unified API.Setup
- Get an API key: https://openrouter.ai/keys
- Add to
.env:
Benefits
- Single API for multiple models (GPT, Claude, Gemini, etc.)
- Automatic routing to cheapest/fastest provider
- Fallback support if a model is unavailable
- Usage tracking and billing
Supported Models
OpenRouter supports 100+ models including:- OpenAI: GPT-4o, GPT-5.2, GPT-3.5
- Anthropic: Claude 3.5 Sonnet, Claude 3 Opus
- Google: Gemini Pro, Gemini Ultra
- Meta: Llama 3, Llama 2
- Mistral: Mixtral, Mistral Large
- Many more: Cohere, AI21, etc.
Usage
Cost Optimization
OpenRouter automatically routes to the cheapest available model:OpenAI
Direct integration with OpenAI’s API.Setup
- Get an API key: https://platform.openai.com/api-keys
- Add to
.env:
Supported Models
- GPT-4o: Latest GPT-4 optimization
- GPT-5.2: Next-generation model (when available)
- GPT-3.5: Faster, cheaper model
Usage
Configuration
Anthropic
Integration with Anthropic’s Claude models.Setup
- Get an API key: https://console.anthropic.com/
- Add to
.env:
Supported Models
- Claude 3.5 Sonnet: Best balance of performance and speed
- Claude 3 Opus: Most capable model
- Claude 3 Haiku: Fastest, most affordable
Usage
Configuration
Google AI (Gemini)
Integration with Google’s Gemini models.Setup
- Get an API key: https://aistudio.google.com/app/apikey
- Add to
.env:
Supported Models
- Gemini Pro: Balanced performance
- Gemini Ultra: Most capable (when available)
- Gemini Nano: On-device model
Usage
Configuration
Multi-Provider Setup
You can configure multiple providers and switch between them:API Endpoints
Check Available Providers
Get Provider Details
Test Provider
Get Supported Models
Model Mapping
Aurora automatically maps model names across providers:Cost Optimization
RCA Cost Optimization
boolean
default:"false"
Enable cost optimization for root cause analysis.When enabled, Aurora uses cheaper models for preliminary analysis and more capable models only when needed.
Model Selection Strategy
- Fast tasks: Use GPT-3.5 or Claude Haiku
- Standard tasks: Use GPT-4o or Claude Sonnet
- Complex reasoning: Use GPT-5.2 or Claude Opus
Troubleshooting
Provider Not Available
API Key Invalid
Rate Limits
If you hit rate limits:- Use multiple providers as fallbacks
- Implement retry logic with exponential backoff
- Upgrade API plan for higher limits
- Use OpenRouter for automatic rate limit handling
Model Not Found
Best Practices
- Use OpenRouter for simplicity and reliability
- Configure multiple providers as fallbacks
- Test provider connectivity before deploying
- Monitor usage and costs regularly
- Rotate API keys periodically
- Use environment variables (never commit keys)
- Enable RCA cost optimization in production
- Set appropriate recursion limits to prevent runaway costs
Security
Key Rotation
Access Control
- Restrict API keys to specific IP addresses (if supported)
- Use separate keys for development and production
- Monitor usage for unusual activity
- Set spending limits on provider dashboards