Skip to main content

Common Issues

Build and Installation

Symptoms: Error messages during plugin installation/build process.Solutions:
  1. Ensure build tools are installed:
  2. Force rebuild:
  3. Try prebuilt binaries (don’t build from source):
  4. Check Neovim version:
    Avante requires Neovim 0.10.1+.
Symptoms: Errors mentioning cargo, rustc, or Rust compilation.Solutions:
  1. Install Rust:
  2. Update Rust:
  3. Use prebuilt binaries instead:
Symptoms: Build fails with permission errors.Solutions:
  1. Check file permissions:
  2. Fix permissions:
  3. Clean and reinstall:

API Keys and Authentication

Symptoms: Avante prompts for API key every time, or shows “API key not set” errors.Solutions:
  1. Set environment variables in shell profile:
  2. Reload shell configuration:
  3. Verify environment variable is set:
  4. Restart Neovim after setting environment variables.
Symptoms: Browser authentication for Claude Max doesn’t work.Solutions:
  1. Ensure correct auth type:
  2. Switch provider to trigger auth:
  3. Follow browser prompts:
    • A browser window should open
    • Log in to Claude
    • Authorize the application
    • Copy the code shown
    • Paste into Neovim prompt
  4. Check for browser issues:
    • Ensure default browser is set
    • Try manually opening the URL shown in Neovim
Symptoms: Wrong API key being used.Solution: Use scoped API keys to isolate Avante:
Avante will prefer AVANTE_* keys if set.

UI and Display Issues

Symptoms: Code blocks or markdown not rendering correctly.Solutions:
  1. Ensure render-markdown.nvim is installed:
  2. Add Avante to file types:
  3. Check treesitter parsers:
Symptoms: Can’t see conflict highlights when AI suggests changes.Solutions:
  1. Enable auto highlight groups:
  2. Check colorscheme compatibility: Some colorschemes don’t define DiffText/DiffAdd. Set manually:
  3. Try different highlights:
Symptoms: Missing or broken icons in UI.Solutions:
  1. Install a Nerd Font:
  2. Install icon plugin:

Performance Issues

Symptoms: Long wait times for AI responses.Solutions:
  1. Increase timeout:
  2. Use faster models:
  3. Reduce context size:
    • Use /compact to compress history
    • Avoid adding too many files with @file
    • Clear history with /clear
  4. Check internet connection.
Symptoms: Unexpected API bills.Solutions:
  1. Disable auto-suggestions:
  2. Increase debounce/throttle:
  3. Use cheaper models:
  4. Disable token counting:
Symptoms: Neovim becomes unresponsive.Solutions:
  1. Update Neovim to latest version (0.10.1+).
  2. Disable expensive features:
  3. Check for plugin conflicts:
  4. Reduce spinner animation:

Feature-Specific Issues

Symptoms: @codebase doesn’t work, RAG errors.Solutions:
  1. Ensure Docker is running:
  2. Check RAG configuration:
  3. Verify API keys:
  4. Remove and recreate container:
  5. Check container logs:
Symptoms: Web search tool fails or returns no results.Solutions:
  1. Set API key:
  2. Check provider configuration:
  3. Verify internet connectivity.
  4. Check API quota (may be exceeded).
  5. Try different provider:
Symptoms: Typing @file doesn’t open file picker.Solutions:
  1. Configure selector provider:
  2. Install required dependency:
  3. Don’t use “native” with blink.cmp (known issue).

Compatibility Issues

Symptoms: Errors about missing functions or features.Solution: Upgrade to Neovim 0.10.1 or later:
Common conflicts:
  • Other AI plugins: May conflict with keybindings or UI
  • Completion plugins: Ensure only nvim-cmp OR blink.cmp is active
  • UI plugins: May interfere with Avante’s sidebar
Solution: Use lazy.nvim’s enabled = false to disable conflicting plugins temporarily:

Known Issues

These are known issues with workarounds or pending fixes.
Issue: Using selector.provider = "native" with blink.cmp causes errors. Workaround: Use a different selector:

Copilot as Auto-Suggestions Provider

Issue: Using Copilot for auto_suggestions_provider can cause high API costs due to request frequency. Workaround: Use Claude or OpenAI instead:
Or increase debounce/throttle if you must use Copilot:

Fast Apply Token Limits

Issue: Fast Apply is limited to 16k tokens for input/output. Workaround: Break large files into smaller edits or use traditional mode.

Getting Help

GitHub Issues

Report bugs or request features

Discord Community

Get help from the community

Wiki

Community recipes and tricks

Discussions

Ask questions and share ideas

Debugging Tips

1

Check Messages

Look for error messages or warnings.
2

Enable Debug Mode

Or:
3

Check Logs

Look at Avante’s log files (location varies by OS):
4

Minimal Config Test

Test with a minimal configuration to isolate the issue:
Run: nvim -u minimal.lua
5

Report Issue

If problem persists, report on GitHub with:
  • Neovim version (:version)
  • OS and architecture
  • Error messages
  • Minimal reproducible config

Installation

Installation guide

Configuration

Configuration reference

GitHub Issues

Report issues and get help