Skip to main content

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:
Since auto-suggestions are a high-frequency operation, using expensive providers like Copilot can be costly. Consider using a local model with Ollama for suggestions.

Runtime Switching

Switch providers while Neovim is running:
Or use the interactive picker:

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:

API Keys and Authentication

Each provider requires authentication. Avante supports both scoped and global API keys:

Global API Keys

Avante will check for scoped keys first, then fall back to global keys.

Provider Inheritance

Custom providers can inherit from existing providers:
This inherits all the parsing logic while allowing customization.

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