guide
Avante.nvim
A Neovim agent. Settings are lua, provider openai.
Three fields. Copy, don’t type
url
https://cheapai.lol/v1
model
claude-opus-4.8
terminal
require('avante').setup({
provider = 'openai',
openai = {
endpoint = 'https://cheapai.lol/v1',
model = 'claude-opus-4.8',
api_key = 'sk-…',
},
})
Do it in order. Don’t skip
Install Avante with your Neovim plugin manager, as their README says.
In the plugin config set provider = 'openai'.
In the openai block set endpoint = 'https://cheapai.lol/v1', model = 'claude-opus-4.8' and api_key to your key.
You can leave the key out of the file and set OPENAI_API_KEY instead.
Restart Neovim, open Avante and type “hi”.
Check
Avante replied in the split — endpoint and key are right.
If it didn’t start
- “401 / unauthorized / invalid api key” — the key was not copied whole. It starts with sk- and has no space at either end.
- “model not found” / “named models unavailable” / model in red — the name must match exactly: claude-opus-4.8. Not “Opus 5”, not opus, not claude-3, not gpt-4.
- The app shows no models — reopen its settings page: the model list is served from our address and appears once the Base URL and key are right.
- “Connection error” / spinner and silence — wrong Base URL. Almost every app wants the address with a /v1 tail.
- “/v1/v1” in the error — the app appends /v1 itself. Drop the tail, leave the site address.
- It replied, then stopped — you ran out of tokens. The balance is in your dashboard. Topping up on FunPay from the same nick lands on the same key.