Skip to content
Aider

Coding agents

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/v1 Endpoint: /v1/chat/completions
Every snippet below follows your choice.

Set it up

  1. Set the base URL and the key

    Aider reads OpenAI-compatible settings from two environment variables.

    Shell
    export OPENAI_API_BASE=https://api.shannon-ai.com/v1
    export OPENAI_API_KEY=YOUR_API_KEY
  2. 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"
      }
    }
  3. Start Aider with the openai/ prefix

    The openai/ prefix tells Aider to use the OpenAI-compatible route; the rest is the Shannon id.

    Shell
    aider --model openai/Kimi-K3-uncensored-NVFP4
    Aider in a terminal on the Shannon model openai/Kimi-K3-uncensored-NVFP4: it fixes two bugs in cat_feeder.py and the tests pass
    A real run on Aider 0.86.2: the edit applied and all three tests passing.

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 idContext windowMax outputImage 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.

SettingValueWhy
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

  1. Put the settings in .aider.conf.yml (and the key in .env) in the repository so each run starts with the same model.
  2. Inside a session, /model openai/<id> switches models and /tokens shows how much of the window the chat and files use.
  3. Add only the files you want changed with /add; use /read-only for files the model should see but not edit.
  4. Aider commits every change; /undo takes the last one back.

Troubleshooting

SymptomCauseFix
"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.

Choose your language

All languages are equal. Pick the one you want to browse in.

Europe

Middle East & North Africa

South Asia

Southeast Asia

East Asia

Central Asia & Caucasus

Africa

Oceania

Constructed & Classical