Skip to main content
Aurora supports multiple LLM providers for its AI agents. At least one provider API key is required.

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, google
number
default:"240"
Maximum recursion depth for agent workflows. Prevents infinite loops.
OpenRouter provides access to multiple LLM models through a unified API.

Setup

  1. Get an API key: https://openrouter.ai/keys
  2. 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.
See full list: https://openrouter.ai/models

Usage

Cost Optimization

OpenRouter automatically routes to the cheapest available model:

OpenAI

Direct integration with OpenAI’s API.

Setup

  1. Get an API key: https://platform.openai.com/api-keys
  2. 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

  1. Get an API key: https://console.anthropic.com/
  2. 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

  1. Get an API key: https://aistudio.google.com/app/apikey
  2. 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:
Switch providers at runtime:

API Endpoints

Check Available Providers

Response:

Get Provider Details

Response:

Test Provider

Response:

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

  1. Fast tasks: Use GPT-3.5 or Claude Haiku
  2. Standard tasks: Use GPT-4o or Claude Sonnet
  3. Complex reasoning: Use GPT-5.2 or Claude Opus

Troubleshooting

Provider Not Available

API Key Invalid

Rate Limits

If you hit rate limits:
  1. Use multiple providers as fallbacks
  2. Implement retry logic with exponential backoff
  3. Upgrade API plan for higher limits
  4. Use OpenRouter for automatic rate limit handling

Model Not Found

Best Practices

  1. Use OpenRouter for simplicity and reliability
  2. Configure multiple providers as fallbacks
  3. Test provider connectivity before deploying
  4. Monitor usage and costs regularly
  5. Rotate API keys periodically
  6. Use environment variables (never commit keys)
  7. Enable RCA cost optimization in production
  8. Set appropriate recursion limits to prevent runaway costs

Security

Never commit API keys to version control. Always use environment variables and .env files.

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