Available Providers
| Provider | Type | Authentication | Key Features |
|---|---|---|---|
| Claude | Cloud API | API Key or OAuth | Anthropic’s powerful models with extended thinking |
| OpenAI | Cloud API | API Key | GPT-4o, reasoning models, Response API |
| Azure OpenAI | Cloud API | API Key | Microsoft-hosted OpenAI models |
| Gemini | Cloud API | API Key | Google’s Gemini models with large context |
| Copilot | Cloud API | OAuth | GitHub Copilot integration |
| Ollama | Local | None | Run models locally with Ollama |
| Custom | Varies | Varies | Create your own provider |
Switching Providers
During Runtime
You can switch providers at any time using the command:In Configuration
Set the default provider in your configuration:Provider Comparison
Performance
- Fastest: Claude (Sonnet 4), Gemini (Flash)
- Most Capable: Claude (Opus 4), OpenAI (GPT-4o)
- Best for Reasoning: OpenAI (o1, o3-mini), Claude (with thinking)
- Local/Private: Ollama
Context Window
- Largest: Gemini (1M+ tokens)
- Claude: 200K tokens
- OpenAI: 128K tokens
- Copilot: 64K tokens
Cost Considerations
- Free Options: Ollama (local), Copilot (with subscription)
- Pay-per-use: OpenAI, Claude, Gemini
- Enterprise: Azure OpenAI, AWS Bedrock
API Key Management
Avante supports two methods for setting API keys:Scoped Keys (Recommended)
Isolate API keys specifically for Avante by prefixing withAVANTE_:
Global Keys
Use standard environment variable names:Scoped keys (
AVANTE_*) take precedence over global keys.Provider Configuration Structure
All providers share a common configuration structure:Common Options
endpoint: API endpoint URLmodel: Model identifiertimeout: Request timeout in millisecondscontext_window: Maximum context size in tokensapi_key_name: Environment variable name for API keyextra_request_body: Provider-specific parametersproxy: HTTP proxy URL (optional)allow_insecure: Allow insecure connections (optional)
Advanced Features
Dual Boost Mode
Combine responses from two providers for enhanced quality:Auto-Suggestions Provider
Use a different provider for auto-suggestions:Troubleshooting
Provider Not Working
-
Check API Key: Ensure your API key is set correctly
-
Verify Provider Setup: Check if the provider is configured
-
Check Login Status: Ensure authentication succeeded
Rate Limiting
If you encounter rate limits:- Increase the
timeoutvalue - Reduce request frequency
- Consider upgrading your API plan
Network Issues
For proxy or network problems:Next Steps
- Configure Claude - Anthropic’s powerful AI
- Configure OpenAI - GPT models and reasoning
- Configure Gemini - Google’s AI with massive context
- Configure Copilot - GitHub Copilot integration
- Configure Ollama - Run models locally
- Create Custom Provider - Build your own