Crush is a terminal AI coding agent from Charm, the team behind popular command-line tools such as Bubble Tea and Glow.
It runs in any terminal on macOS, Linux, Windows, Android and the BSDs, reads your code, edits files, runs commands and talks to almost any AI model, from Claude and GPT to a local model in Ollama.
Crush stands out for three things: it uses language servers (LSPs) for extra context the way your editor does, it lets you switch models mid-session without losing context, and it is configured with a simple Bash-style crushrc file that works the same on every platform.
This guide shows how to install Crush, connect a provider or local model, write a crushrc, add LSPs, MCP servers and Agent Skills, control permissions, and fix common problems.
It follows the official Crush README as of November 2026 (Crush 0.102 on npm).
- What: a terminal coding agent from Charm with LSP context, MCP, skills and multi-model support.
- Install:
brew install charmbracelet/tap/crush,npm install -g @charmland/crushorwinget install charmbracelet.crush. - Start: run
crushin your project and pick a model;ctrl+lopens the model picker. - Local models:
provider add ollama --type ollama --base-url "http://localhost:11434/v1/"in your crushrc. - Config:
.crushrcin the project or~/.config/crush/crushrcglobally. - License: FSL-1.1-MIT (source-available, becomes MIT later).
Why Use Crush?
- Multi-model: dozens of providers plus any OpenAI- or Anthropic-compatible API.
- Switch mid-session: change the model while keeping the conversation context.
- Sessions per project: keep several work sessions and contexts in one repo.
- LSP-enhanced: uses language servers for type and symbol information.
- MCP support:
stdio,httpandsseservers, with OAuth. - Agent Skills: reads
SKILL.mdskill folders, including ones made for Claude. - Works everywhere: macOS, Linux, Windows (PowerShell and WSL), Android, FreeBSD, OpenBSD and NetBSD.
| Tool | Best for |
|---|---|
| Crush | A polished terminal UI, LSP context and any model, including local ones |
| Claude Code | Deepest Claude integration and Anthropic’s own features |
| OpenCode / Kilo CLI | Open source terminal agents with large model menus |
| Qwen Code | Free Qwen models in the terminal |
For a wider comparison, see our OpenCode vs Claude Code guide and our Qwen Code guide.
Install Crush
| System | Command |
|---|---|
| macOS / Linux (Homebrew) | brew install charmbracelet/tap/crush |
| Any OS (npm) | npm install -g @charmland/crush |
| Windows (Winget) | winget install charmbracelet.crush |
| Windows (Scoop) | scoop bucket add charm https://github.com/charmbracelet/scoop-bucket.git then scoop install crush |
| Arch Linux | yay -S crush |
| FreeBSD | pkg install crush |
| Go | go install github.com/charmbracelet/crush@latest |
Debian/Ubuntu and Fedora/RHEL users can add Charm’s apt or yum repository at repo.charm.sh and install the crush package, or download .deb, .rpm and binaries from GitHub Releases. Nix users can run it from the Charm NUR.
- Install with one of the commands above.
- Open your project folder in a terminal.
- Run
crush. - Pick a model from the model picker and follow the sign-in or API key prompt.
- Initialise the project so Crush writes an
AGENTS.mdwith your build commands and code patterns.
Connect a Model Provider
The quickest start is Hyper, Charm’s own model provider for Crush. It is built on open-weight models tuned for Crush, with subscription and prepaid options, zero data retention and GDPR compliance.
To use another provider, press ctrl+l to open the model picker, choose the provider and paste your API key. Or set an environment variable before starting Crush:
| Variable | Provider |
|---|---|
ANTHROPIC_API_KEY |
Anthropic (Claude) |
OPENAI_API_KEY |
OpenAI |
GEMINI_API_KEY |
Google Gemini |
OPENROUTER_API_KEY |
OpenRouter |
GROQ_API_KEY / CEREBRAS_API_KEY |
Groq / Cerebras |
ZAI_API_KEY / MINIMAX_API_KEY / MOONSHOT_API_KEY |
Z.ai / MiniMax / Moonshot |
HF_TOKEN |
Hugging Face Inference |
AWS_BEARER_TOKEN_BEDROCK |
Amazon Bedrock |
VERTEXAI_PROJECT + VERTEXAI_LOCATION |
Google Vertex AI |
HYPER_API_KEY |
Charm Hyper |
Crush’s model list comes from Catwalk, Charm’s open source model database, and updates automatically. Run crush update-providers to refresh it by hand, or turn auto-updates off with option provider-auto-update false on air-gapped machines.
Add any OpenAI- or Anthropic-compatible API
# crushrc
provider add deepseek --type completions \
--base-url "https://api.deepseek.com/v1" \
--api-key "$DEEPSEEK_API_KEY"
model add deepseek/deepseek-chat --name "DeepSeek" --context-window 64000
Use --type completions for OpenAI-compatible APIs from other companies, responses for OpenAI itself or proxies of it, and messages for Anthropic-compatible APIs. Old values such as openai-compat still work and are migrated.
Use Local Models (Ollama, llama.cpp, LM Studio)
Crush can auto-discover models from local servers. Add a provider with type ollama, llamacpp, lmstudio, omlx or litellm, leave out the model list, and Crush fills it in.
# crushrc
provider add ollama --name Ollama --type ollama \
--base-url "http://localhost:11434/v1/"
provider add llamacpp --name "llama.cpp" --type llamacpp \
--base-url "http://localhost:2222"
To set a larger context window or output limit, add the model yourself and keep discovery on:
provider add ollama --name Ollama --type ollama \
--base-url "http://localhost:11434/v1/" --discover-models true
model add ollama/qwen3:30b --name "Qwen 3 30B" \
--context-window 256000 --default-max-tokens 20000
Your own model settings always win over discovered ones. Coding agents send long prompts, so make sure the model’s real context in Ollama is large enough; our Ollama cheat sheet shows how to set it.
Configure Crush With crushrc
Crush works without any config, and it ships a built-in skill that can configure itself: just ask it in plain English. When you want a file, use a crushrc. It is plain Bash with Crush commands, and Crush has a built-in Bash interpreter, so the same file works on Windows too.
| Priority | Linux / macOS | Windows |
|---|---|---|
| 1 | ./.crushrc |
.\.crushrc |
| 2 | ./crushrc |
.\crushrc |
| 3 | ~/.config/crush/crushrc |
%USERPROFILE%\.config\crush\crushrc |
# ~/.config/crush/crushrc
provider add ollama --type ollama --base-url "http://localhost:11434/v1"
permissions allow view edit
option notifications auto
if [[ $HOSTNAME == "work-laptop" ]]; then
source ~/crush/work.sh
fi
The older crush.json format still works but is deprecated. Security: a crushrc runs in a full shell and $(...) in crush.json runs at load time, so don’t start Crush in a folder whose config you haven’t read, and never source random files from the internet.
Themes are in the command palette (ctrl+p, Themes). Built-in themes include Charmtone Pantera (default), Gruvbox Dark, Rosé Pine and KITT.
Add Language Servers (LSP)
LSPs give Crush the same type, symbol and error information your editor sees, which leads to better edits.
# crushrc
lsp add go --command "gopls"
lsp add typescript --command "typescript-language-server" --args --stdio
lsp add nix --command "nil"
Install the language server first (for example npm install -g typescript-language-server typescript). Use option debug-lsp true if a server won’t start.
Add MCP Servers
# crushrc
mcp add filesystem --command node --args /path/to/mcp-server.js --timeout 10
mcp add github --type http --url https://api.github.com/mcp/ \
--header Authorization "Bearer $GH_PAT" \
--disabled-tools create_issue
- Transports:
stdiofor local commands,httpfor endpoints,ssefor Server-Sent Events. - OAuth: set
"oauth": truefor servers such as Linear or Notion; Crush runs the sign-in flow. For GitHub and Slack you register your own OAuth app and addoauth_client_id. - Hide risky tools with
--disabled-tools. - Channels (experimental): MCP servers can push events such as CI failures into your session.
Looking for servers to add? See our best MCP servers list.
Agent Skills, AGENTS.md and Context Files
Crush supports the Agent Skills standard: folders with a SKILL.md file. It looks in ~/.config/crush/skills/, ~/.config/agents/skills/, ~/.agents/skills/ and even ~/.claude/skills/, plus project folders such as .crush/skills, .agents/skills, .claude/skills and .cursor/skills.
That means skills you wrote for Claude Code usually work in Crush as-is; our Claude Skills guide explains the format.
Add user-invocable: true to a skill’s frontmatter to run it from the command palette, where it shows as user:skill-name or project:skill-name.
For instructions that apply to every project, Crush reads two global files:
~/.config/crush/CRUSH.mdfor Crush-only rules.~/.config/AGENTS.mdfor rules you share with other coding tools.
Project initialisation writes an AGENTS.md by default; change the name with option initialize-as CRUSH.md. Add a .crushignore (same syntax as .gitignore) to hide files from the agent. Our AGENTS.md guide has a template.
Permissions and YOLO Mode
By default Crush asks before running tools. A few provably read-only shell commands such as ls, pwd, git status and git log run without asking.
# crushrc
permissions allow view ls grep edit # never ask for these
permissions deny bash sourcegraph # hide these tools completely
Running crush --yolo skips every permission prompt. Only do that in a throwaway container or VM. Crush also adds an Assisted-by: Crush trailer to commits it makes; change it with option attribution-trailer-style co-authored-by or none.
Shortcuts and Everyday Commands
| Key or command | What it does |
|---|---|
ctrl+l |
Open the model picker |
ctrl+p |
Command palette (themes, skills, sessions) |
crush --debug |
Start with debug logging |
crush logs --follow |
Watch the log live (./.crush/logs/crush.log) |
crush update-providers |
Refresh the model catalogue |
crush --yolo |
Skip all permission prompts (dangerous) |
Crush sends desktop notifications when it needs permission or finishes a turn while the terminal is out of focus. Set option notifications disabled to stop them. To opt out of usage metrics, set CRUSH_DISABLE_METRICS=1 or DO_NOT_TRACK=1; prompts and responses are never collected.
Troubleshooting
| Problem | Fix |
|---|---|
| Copy and paste don’t work on Linux | Install wl-copy/wl-paste (Wayland) or xclip/xsel (X11) |
| Ollama models don’t appear | Check Ollama is running and the base URL ends in /v1/ |
| Local model cuts off or forgets files | Raise the context window in Ollama and in model add |
| New model missing from the list | Run crush update-providers |
| LSP not giving context | Install the server binary; enable option debug-lsp true |
| MCP server keeps disconnecting | It may be sessionless; add --sessionless true |
| Bedrock SSO expires mid-session | Set aws_auth_refresh to aws sso login --profile ... |
| Need to see what went wrong | crush logs --tail 500 |
FAQ
Is Crush free?
Crush itself is free to use. You pay for whichever model provider you connect, or nothing if you use local models.
Is Crush open source?
Its source is public under the FSL-1.1-MIT license, a source-available license that converts to MIT after a delay.
Does Crush work on Windows?
Yes, in PowerShell and WSL. Install it with Winget, Scoop or npm.
Can Crush use Claude?
Yes. Set ANTHROPIC_API_KEY or pick Anthropic in the model picker. Bedrock and Vertex AI also work for Claude models.
Can Crush run fully offline?
Yes, with a local provider such as Ollama or llama.cpp. Disable provider auto-updates and metrics for air-gapped machines.
Where does Crush store config?
In .crushrc in your project or ~/.config/crush/crushrc globally. App state lives in ~/.local/share/crush/ and shouldn’t be edited.
Does Crush read Claude skills?
Yes. It scans ~/.claude/skills/ and .claude/skills along with its own folders.
What is Hyper?
Charm’s official model provider for Crush, built on open-weight models, with subscription and prepaid plans.




