Skip to content
Crush

Coding agents

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

Set it up

  1. Add Shannon in crushrc

    Crush is configured with a Bash-like file, ~/.config/crush/crushrc, that runs when Crush starts. --type completions is the OpenAI-compatible format. Set the small model as well as the large one: Crush uses the small model for session titles.

    ~/.config/crush/crushrc
    provider 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
  2. Export the key and run Crush

    crushrc reads $SHANNON_API_KEY from your shell. Start crush for a session, or crush run for one task.

    Shell
    export SHANNON_API_KEY=YOUR_API_KEY
    crush run "Run the tests, fix what fails, then run them again."
    Crush in a terminal on the Shannon model shannon-coder-1: it reports both cat_feeder.py fixes and the tests pass
    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 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

Crush asks for these values. They follow the model you picked.

SettingValueWhy
--context-window 1022976 The model's window.
--default-max-tokens 262144 The longest answer.

Good to know

  • Current Crush reads crushrc, not JSON. The old crush.json format still loads but is deprecated, and there is no crush provider command: provider add is a line in crushrc.
  • Crush asks the small model for a session title while the first request runs, so a new session sends two requests at once.
  • --type completions is right for Shannon's Chat Completions endpoint. Crush's docs use --type messages with a base URL ending in /v1 for Anthropic-format providers; we tested only completions.

Tips

  1. crush run --yolo skips permission prompts for scripted runs; --quiet hides the spinner.
  2. permissions deny agent hides the subagent tool if you want one request at a time.
  3. option provider-auto-update false (or CRUSH_DISABLE_PROVIDER_AUTO_UPDATE=1) stops Crush fetching its provider list at start.
  4. CRUSH_DISABLE_METRICS=1 turns off usage metrics.
  5. Register several ids with model add and pick one per run with crush run -m shannon/<id>.

Troubleshooting

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

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