What are Providers?
Providers are the AI services that power Avante.nvim’s intelligent code assistance. Each provider offers different models, capabilities, and pricing structures, giving you the flexibility to choose the best option for your needs.Provider Architecture
Avante.nvim uses a flexible provider system that allows you to:- Switch between providers on the fly
- Use different providers for different tasks
- Create custom providers to integrate with any AI service
- Configure provider-specific settings and models
How Providers Work
Available Providers
Avante.nvim supports a wide range of AI providers out of the box:Claude
Anthropic’s Claude models with extended context and reasoning
OpenAI
GPT-4o and reasoning models (o1, o3-mini)
Gemini
Google’s Gemini with 1M+ token context window
GitHub Copilot
Use your Copilot subscription with Avante
Ollama
Run local models privately on your machine
Custom Providers
Create your own provider integrations
Provider Selection
Default Provider
Set your default provider in the configuration:Specialized Providers
You can use different providers for different tasks:Runtime Switching
Switch providers while Neovim is running:Provider Capabilities
Streaming Responses
All built-in providers support streaming responses, allowing you to see AI output as it’s generated:Tool Calling
Providers that support tool calling enable agentic workflows:Context Windows
Different providers have different context window sizes:| Provider | Context Window | Notes |
|---|---|---|
| Claude Sonnet 4.5 | 200K tokens | Prompt caching available |
| GPT-4o | 128K tokens | Structured outputs |
| Gemini 2.0 Flash | 1M+ tokens | Massive context |
| Ollama (varies) | 8K-128K tokens | Model dependent |
API Keys and Authentication
Each provider requires authentication. Avante supports both scoped and global API keys:Scoped API Keys (Recommended)
Global API Keys
Provider Inheritance
Custom providers can inherit from existing providers:Next Steps
Configure Providers
Detailed provider configuration options
Claude Setup
Get started with Claude
Ollama Local Models
Run AI models locally
Custom Providers
Create your own provider