Use Amp with Shannon
Add Shannon as a Custom URL connection in Amp's Model Routing, give the model its token limits, and pin it to a mode in Tune Modes.
- From the Amp docs, Nov 7, 2026
- OpenAI Chat Completions
- About 5 min
About Amp
Amp is a coding agent for the terminal that also connects to VS Code, Cursor, Zed and Neovim, with threads you can save and share. It reads and edits code, runs commands and hands parts of a task to subagents. A Custom URL connection in Model Routing lets the mode you pin run on a Shannon model.
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
-
Add a Custom URL connection
Open Model Routing in your Amp settings and choose Add → Custom URL. Enter the base URL with
/v1, the API formatchat-completions(Amp appends/chat/completions) and your key. In the model mapping, name the Shannon model and send its exact id:ConnectionBase URL: https://api.shannon-ai.com/v1 API format: chat-completions API key: YOUR_API_KEY Model mapping: | shannon/Kimi-K3-uncensored-NVFP4 -> Kimi-K3-uncensored-NVFP4 -
Give the model its limits
Amp offers a model only when it knows its token limits. Open the connection, click Model Metadata Overrides, add the same model id as in the mapping, and set Input Tokens, Output Tokens and Tools. Then click Check Access, which sends a one-token request when the mapping names one model.
Model Metadata OverridesModel: shannon/Kimi-K3-uncensored-NVFP4 Input Tokens: 760832 Output Tokens: 262144 Tools: Yes -
Pin it to a mode
Open Mode Dial → Tune Modes, turn the dial to a mode, choose the Shannon model as its Main Agent, and save. Start threads in that mode; subagents follow the pin.
Check that it works
Send: Explain what this repository does.
You should see: A thread in the pinned mode answers with the Shannon model; the routing graph in Model Routing shows the Custom URL connection serving it.
Models that fit Amp
Every id below meets what Amp 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 |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
Amp asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
Input Tokens | 760832 | The window minus the output limit. |
Output Tokens | 262144 | The longest answer. |
Good to know
- Amp calls Shannon from its own servers, not from your machine.
- Custom URL connections are open to every Amp tier. On Enterprise pricing, Amp can add a fee in Amp credits on tokens your connections serve.
- Only models a connection serves go to Shannon. Modes without the pin, and anything else no connection covers, still use Amp credits.
- Amp may show a non-blocking warning for a model id that is not in its catalog; the connection still saves and works.
- The connection also speaks
responses(base URLhttps://api.shannon-ai.com/v1) andanthropic-messages(base URLhttps://api.shannon-ai.com).
Tips
- Amp reads
AGENTS.mdin the project and its subfolders (orAGENT.mdandCLAUDE.mdwhen there is none); personal rules go in~/.config/amp/AGENTS.md. - In the CLI,
Ctrl+Sturns the Mode Dial before a thread's first message; after that the thread keeps its mode, so pick the Shannon mode first. amp -x "…"runs one prompt and prints the answer, for scripts; execute mode also turns on when you redirect the output to a file.Ctrl+Oopens the command palette, andCtrl+Gedits the current prompt in your$EDITOR.amp threads continue T-…attaches the CLI to an existing thread, and@@in a prompt searches for a thread to mention.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The model is not in the Main Agent list | Amp does not know its token limits. | Add it under Model Metadata Overrides with Tools set to Yes. |
| Amp warns that the base URL contains the API path | The URL ends in /chat/completions. | Enter https://api.shannon-ai.com/v1 only. |
| Threads still use Amp credits | The thread runs in a mode without the Shannon pin, or a higher connection serves the model. | Start threads in the pinned mode and check the routing graph. |
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 Amp work with Shannon?
Yes, as a Custom URL connection in Model Routing with the chat-completions format and https://api.shannon-ai.com/v1.
Can a workspace share the connection?
Yes. Workspace admins add it under Workspace Model Routing, and it applies to every member's threads after their personal connections.