Crush Setup
Crush is an AI coding agent for the terminal by Charm. This guide connects it to the API in about 3 minutes.
1. Create an API key
- Sign up on the registration page.
- In the console, open the API token page, create a token, and copy the key. It starts with
sk-.
2. Connect Crush
Add Gateway to your Crush config, ~/.config/crush/crushrc (or %USERPROFILE%\.config\crush\crushrc on Windows):
provider add gateway --type completions \
--base-url "https://api.cmoso.com/v1" \
--api-key "$GATEWAY_API_KEY"
model add gateway/claude-sonnet-5-5 \
--name "Claude Sonnet 5.5" \
--context-window 1000000 \
--default-max-tokens 32000
Set the key in your shell before you start Crush:
export GATEWAY_API_KEY="sk-..."
crush
3. Pick a model and test
In Crush, pick the Gateway model and send a short request.
Popular model IDs: claude-sonnet-5-5, gpt-5.4, gemini-3.1-flash-lite, deepseek-v4-pro, qwen3.5-plus.
Troubleshooting
- 401 Unauthorized: the API key is wrong or disabled. Copy it again from the console.
- Model not found: check the model ID spelling. IDs are case-sensitive.
- Connection error: check that the base URL ends with
/v1and has no trailing slash.