Use Crush with Shannon
Add Shannon to Crush's crushrc with provider add and model add, and Crush codes in your terminal on Shannon models.
- Tested Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Crush
Crush is a coding agent for the terminal from Charm, the team behind Bubble Tea and Glow. It reads and edits files, runs shell commands and talks to language servers. Crush works with any OpenAI-compatible provider, so it can use Shannon models for both its main work and its short side tasks.
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 Shannon in crushrc
Crush is configured with a Bash-like file,
~/.config/crush/crushrc, that runs when Crush starts.--type completionsis the OpenAI-compatible format. Set the small model as well as the large one: Crush uses the small model for session titles.~/.config/crush/crushrcprovider add shannon --type completions \ --base-url "https://api.shannon-ai.com/v1" \ --api-key "$SHANNON_API_KEY" model add shannon/Kimi-K3-uncensored-NVFP4 \ --name "Kimi-K3-uncensored-NVFP4" \ --context-window 1022976 \ --default-max-tokens 262144 model large shannon/Kimi-K3-uncensored-NVFP4 model small shannon/Kimi-K3-uncensored-NVFP4 -
Export the key and run Crush
crushrc reads
$SHANNON_API_KEYfrom your shell. Startcrushfor a session, orcrush runfor one task.Shellexport SHANNON_API_KEY=YOUR_API_KEY crush run "Run the tests, fix what fails, then run them again."
A real run on Crush 0.100.0 with the crushrc above: both bugs fixed, all tests passing.
Check that it works
Send: What does this project do?
You should see: Crush reads your files and answers; the model line shows the Shannon id.
Models that fit Crush
Every id below meets what Crush 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
Crush asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
--context-window | 1022976 | The model's window. |
--default-max-tokens | 262144 | The longest answer. |
Good to know
- Current Crush reads
crushrc, not JSON. The oldcrush.jsonformat still loads but is deprecated, and there is nocrush providercommand:provider addis a line incrushrc. - Crush asks the small model for a session title while the first request runs, so a new session sends two requests at once.
--type completionsis right for Shannon's Chat Completions endpoint. Crush's docs use--type messageswith a base URL ending in/v1for Anthropic-format providers; we tested onlycompletions.
Tips
crush run --yoloskips permission prompts for scripted runs;--quiethides the spinner.permissions deny agenthides the subagent tool if you want one request at a time.option provider-auto-update false(orCRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1) stops Crush fetching its provider list at start.CRUSH_DISABLE_METRICS=1turns off usage metrics.- Register several ids with
model addand pick one per run withcrush run -m shannon/<id>.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
Unknown command "provider" | provider add was typed in the shell. | Put it in ~/.config/crush/crushrc; it is a crushrc command, not a CLI command. |
401 | SHANNON_API_KEY is not set when Crush starts. | Export it, or write the key into --api-key. |
404 Not Found | --base-url lacks /v1. | Use 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 Crush work with Shannon?
Yes, as a custom provider of type completions with the base URL https://api.shannon-ai.com/v1.
Do I need to set the small model?
Set it, so that title requests also go to Shannon. Crush tries the small model first and the large one after it.