Skip to main content
avante.nvim is a Neovim plugin that brings AI coding assistance into your editor. Configure it to use CometAPI as the backend to access GPT, Claude, and other models.

Prerequisites

Setup

1

Get your CometAPI API key

Log in to the CometAPI dashboard. Click Add API Key and copy your key and base URL (https://api.cometapi.com).
CometAPI dashboard — Add API Key
CometAPI API key and base URL
2

Edit your avante.nvim configuration

Open your Neovim config file and set the API endpoint to https://api.cometapi.com/v1. Paste your CometAPI key into the openai key field.
avante.nvim configuration file with CometAPI base URL and API key
3

Reload and test

Reload Neovim and trigger avante.nvim. A successful response confirms the setup is working.