Use Aider with Shannon
Run Aider on Shannon models through its OpenAI-compatible setting; no tool calling needed.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 2 min
About Aider
Aider is an open-source pair programmer for the terminal. It works on your git repository: you name the files to change, it edits them and commits each change with a clear message. It talks to any OpenAI-compatible API, and Shannon models work with its edit formats without tool calls.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Set the base URL and the key
Aider reads OpenAI-compatible settings from two environment variables.
Shellexport OPENAI_API_BASE=https://api.shannon-ai.com/v1 export OPENAI_API_KEY=YOUR_API_KEY -
Tell Aider the model's limits
Aider does not know Shannon's ids. A metadata file next to your repo gives it the window and the longest answer.
.aider.model.metadata.json{ "openai/Kimi-K3-uncensored-NVFP4": { "max_input_tokens": 1022976, "max_output_tokens": 262144, "litellm_provider": "openai", "mode": "chat" } }
Check that it works
Send: /ask What does this repository do?
You should see: A summary of your repo, with the model name in Aider's status line.
Models that fit Aider
Every id below meets what Aider needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
shannon-coder-1 | 131,072 | 65,536 | No |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
Aider asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
max_input_tokens | 1022976 | The model's window. |
max_output_tokens | 262144 | The longest answer. |
Good to know
- Aider edits files through text formats, not tool calls, so any Shannon model works.
- Without the metadata file Aider warns about an unknown model and guesses its limits.
Tips
- Put the settings in
.aider.conf.yml(and the key in.env) in the repository so each run starts with the same model. - Inside a session,
/model openai/<id>switches models and/tokensshows how much of the window the chat and files use. - Add only the files you want changed with
/add; use/read-onlyfor files the model should see but not edit. - Aider commits every change;
/undotakes the last one back.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| "Model not found" or a call to api.openai.com | The openai/ prefix is missing. | Start with --model openai/<id>. |
404 Not Found | OPENAI_API_BASE lacks /v1. | Set it to https://api.shannon-ai.com/v1. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Aider work with Shannon?
Yes, through its OpenAI-compatible setting: OPENAI_API_BASE, OPENAI_API_KEY and --model openai/<id>.
Which model for Aider?
A long-window model such as Kimi-K3-uncensored-NVFP4, which we tested it with; shannon-coder-1 also works, billed in tokens like every model.