GuidesHosting choices

Crush CLI: install, configure and run Charm's coding agent

Charm's Crush as of November 30, 2026: install, the FSL licence, API keys and sign-ins, crushrc, LSP and MCP, --yolo, crush run and running it over SSH.

November 30, 2026The Everpod team
The short answer

Crush is Charm’s coding agent for the terminal, the project the original OpenCode became. Install it with brew install charmbracelet/tap/crush, npm install -g @charmland/crush or Charm’s apt and yum repositories, then run crush; the latest release is v0.104.0 of November 27, 2026 (as of November 30, 2026). It is not open source in the usual sense: the licence is FSL-1.1-MIT, source-available, with each version turning MIT two years after release. It works with an API key from most providers, local models through Ollama or llama.cpp, Charm’s own Hyper service, or a sign-in with ChatGPT, GitHub Copilot or Grok. The catch for anyone with an older setup: configuration is now a crushrc file of Bash commands, and crush.json still works but is deprecated.

What Crush is, and where it came from

Crush is a terminal UI agent: it reads your project, edits files and runs commands, asking first by default. Its README calls it “Your new coding bestie, now available in your favourite terminal” and claims first-class support on macOS, Linux, Windows (PowerShell and WSL), Android, FreeBSD, OpenBSD and NetBSD. It is written in Go.

Two projects have carried the name OpenCode. The one at opencode-ai/opencode was archived on September 18, 2025, with a note in its README: “The project has continued under the name Crush, developed by the original author and the Charm team.” The OpenCode at opencode.ai is a separate codebase; the OpenCode alternatives guide sets the two side by side with the other terminal agents.

Releases come about weekly: v0.100.0 on November 5, then 0.101.0, 0.102.0 and 0.103.0 a week apart, and v0.104.0 on November 27, whose main change is that the first-run onboarding now always appears for a new install, even when an API key is already in your environment.

The licence, exactly

The LICENSE.md at v0.104.0 is the “Functional Source License, Version 1.1, MIT Future License”, and npm lists the package as FSL-1.1-MIT. You may use, modify and redistribute it for any purpose except a “Competing Use”, defined as making it available to others in a commercial product or service that substitutes for Crush, substitutes for another product or service Charm offers using it, or offers the same or substantially similar functionality. Each version becomes MIT on the second anniversary of its release; per the FSL’s own site, the clock runs per version, so the current release is source-available today and the 2025 releases turn MIT through 2027. Catwalk, the model catalogue Crush reads, is a separate repository under plain MIT.

Install Crush

Every route below comes from the README at v0.104.0. Pick one:

brew install charmbracelet/tap/crush            # Homebrew, macOS or Linux
npm install -g @charmland/crush                 # npm
go install github.com/charmbracelet/crush@latest   # Go; go.mod asks for Go 1.27.4
yay -S crush                                    # Arch (AUR)
nix run github:numtide/nix-ai-tools#crush       # Nix
pkg install crush                               # FreeBSD
winget install charmbracelet.crush              # Windows
Copied

On a Debian or Ubuntu server, Charm’s apt repository keeps it updating with the rest of the system:

sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.charm.sh/apt/gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/charm.gpg
echo "deb [signed-by=/etc/apt/keyrings/charm.gpg] https://repo.charm.sh/apt/ * *" | sudo tee /etc/apt/sources.list.d/charm.list
sudo apt update && sudo apt install crush
Copied

On Fedora or RHEL:

echo '[charm]
name=Charm
baseurl=https://repo.charm.sh/yum/
enabled=1
gpgcheck=1
gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo
sudo yum install crush
Copied

The npm package’s postinstall script runs node install.js at install time; if a global npm install fails on permissions, the npm install -g guide covers why.

Download and verify a release by hand

Each release on GitHub carries tarballs, .deb and .rpm packages, and a signed checksum file. For v0.104.0 on a 64-bit Intel or AMD Linux machine the files are crush_0.104.0_Linux_x86_64.tar.gz, crush_0.104.0_amd64.deb and crush-0.104.0-1.x86_64.rpm (arm64 and aarch64 for ARM). The release notes give the check, which needs Sigstore’s cosign installed:

base=https://github.com/charmbracelet/crush/releases/download/v0.104.0
curl -fsSLO "$base/crush_0.104.0_amd64.deb"
curl -fsSLO "$base/checksums.txt"
curl -fsSLO "$base/checksums.txt.sigstore.json"

cosign verify-blob \
  --certificate-identity-regexp '^https://github.com/charmbracelet/crush/\.github/workflows/(release|nightly)\.yml@' \
  --certificate-oidc-issuer 'https://token.actions.githubusercontent.com' \
  --bundle 'checksums.txt.sigstore.json' \
  ./checksums.txt \
&& sha256sum --ignore-missing -c checksums.txt \
&& sudo apt install ./crush_0.104.0_amd64.deb
Copied

cosign proves the checksum list was signed by Crush’s own release workflow, sha256sum proves your download matches it, and the && chain installs only if both pass.

Choosing a model: keys, sign-ins and local models

On first run Crush shows onboarding with a model picker (open it later with ctrl+l). The README suggests a model from Hyper, Charm’s own model service, which has “subscription and prepaid options, including zero data retention”; its prices are not on the README. Everything else falls into three kinds.

An API key. Crush picks up a key from the environment without asking you to paste it; since v0.104.0 a new install still shows the onboarding first. The variables it reads include:

VariableProvider
ANTHROPIC_API_KEY
Anthropic
OPENAI_API_KEY
OpenAI
GEMINI_API_KEY
Google Gemini
OPENROUTER_API_KEY
OpenRouter
OPENCODE_API_KEY
OpenCode Zen and Go
HYPER_API_KEY
Charm Hyper
XAI_API_KEY, GROQ_API_KEY, CEREBRAS_API_KEY, MOONSHOT_API_KEY, ZAI_API_KEY, MINIMAX_API_KEY, VERCEL_API_KEY, HF_TOKEN
xAI, Groq, Cerebras, Moonshot, Z.ai, MiniMax, Vercel AI Gateway, Hugging Face
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION (or AWS_PROFILE, AWS_BEARER_TOKEN_BEDROCK)
Amazon Bedrock
VERTEXAI_PROJECT, VERTEXAI_LOCATION
Vertex AI (Gemini)
AZURE_OPENAI_API_ENDPOINT, AZURE_OPENAI_API_KEY, AZURE_OPENAI_API_VERSION
Azure OpenAI

The table above is most of the README’s list, which also names Synthetic, io.net, Avian and Alibaba’s Singapore and US endpoints. To keep a key out of your shell history and in a file only you can read, loaded by every new shell:

read -rsp 'OpenRouter key: ' k; echo
(umask 077; printf 'export OPENROUTER_API_KEY=%s\n' "$k" >> ~/.crush-keys); unset k
echo '. ~/.crush-keys' >> ~/.bashrc   # appended, so nothing already there is lost
Copied

Making an OpenRouter key is covered in the OpenRouter API key guide.

A sign-in. crush login takes hyper (the default), copilot, openai (alias chatgpt) or grok; --force signs in again. The README does not mention these; they are in the command’s own help. With ChatGPT, the models offered are the ones OpenAI’s backend lists for your plan. Sign-in tokens are saved in ~/.local/share/crush/crush.json, which Crush writes readable by your user only. There is no Claude subscription sign-in: Claude models come through an Anthropic key, Bedrock, OpenRouter or another provider.

A local model. Set a provider’s type to ollama, llamacpp, lmstudio, omlx or litellm and Crush discovers its models itself. Any other server that speaks the OpenAI Chat Completions API is type completions; an Anthropic-compatible one is messages, and an OpenAI Responses proxy is responses. In a crushrc:

provider add ollama --name Ollama --type ollama \
  --base-url "http://localhost:11434/v1/"

provider add deepseek --type completions \
  --base-url "https://api.deepseek.com/v1" \
  --api-key "$DEEPSEEK_API_KEY"
Copied

The second form names the variable rather than the key, so the crushrc can be shared. The provider and model list behind the picker is Catwalk, “A database for Crush-compatible models”, which Crush refreshes automatically. crush update-providers refreshes it by hand, and option provider-auto-update false or CRUSH_DISABLE_PROVIDER_AUTO_UPDATE turns the refresh off.

crushrc, and what happened to crush.json

In the README’s words, “A crushrc is just Bash with some Crush-specific builtins”: provider add, model add, lsp add, mcp add, permissions allow and option, plus ordinary if, source and $(...). Crush runs it with its own built-in Bash interpreter, so the same file works on Windows. It looks in three places, highest priority first:

FileScope
./.crushrc
The project
./crushrc
The project
~/.config/crush/crushrc
You, in every project (%USERPROFILE%\.config\crush\crushrc on Windows)

Project files are found by walking up from the current directory to the git root. The old crush.json and .crush.json, in the same directories, still load, but the config docs call the format deprecated: “Everything found is merged, with project settings overriding global ones and crushrc overriding JSON in the same directory”, with a warning logged when both sit in one folder. There is no migrate command; the docs suggest asking Crush itself to convert the file. Older tutorials that show a crush.json with a "providers" block still describe a working setup, just not the current one. crush dirs prints which config and data directories are in play.

One consequence the README states outright: “Both crushrc and crush.json are trusted code”. A crushrc runs a full shell, and any $(...) in a crush.json runs at load time, so a cloned repository with its own .crushrc runs that code the moment you start Crush in it. The README’s advice:

Don't launch Crush in a directory whose config you haven't reviewed,
and don't randomly source files from the internet into your config.
Copied

LSP and MCP

Crush can use language servers for the same context an editor gets: definitions, references and diagnostics. The README adds them in a crushrc, one line each, with the server installed separately:

lsp add go --command "gopls"
lsp add typescript --command "typescript-language-server" --args --stdio
Copied

The idea is the same as in OpenCode, where the OpenCode LSP guide covers which servers to install for which languages. MCP servers come in three transports, stdio, http and sse. Pass a token through a variable, as the README does, so the crushrc holds no secret:

mcp add github --type http --url https://api.github.com/mcp/ \
  --header Authorization "Bearer $GH_PAT"
Copied

For instructions, Crush reads AGENTS.md, CRUSH.md and CRUSH.local.md, and also the files other agents use: CLAUDE.md, GEMINI.md, .cursorrules, .cursor/rules/ and .github/copilot-instructions.md. It respects .gitignore, and a .crushignore in the same syntax hides more.

Permission prompts and --yolo

“By default, Crush will ask you for permission before running tool calls.” The exception is the shell tool, which runs a command without asking only when the whole command is provably read-only; a redirect, a variable assignment, a substitution or a pipeline still prompts. To stop being asked for particular tools, allow them in a crushrc, and hide a tool from the agent entirely with deny:

permissions allow view ls grep edit
permissions deny sourcegraph
Copied

--yolo skips the prompts altogether, and in the current release it has two levels. Per the flag’s help, -y means “stop being asked and block dangerous commands” and -yy means “allow them too”. Starting with -yy, Crush itself warns:

Every command is auto-approved, and the block list that catches
dangerous commands at run time is switched off.
Copied

Neither the help nor the README says which commands that block list catches. The README’s warning applies to both levels:

Be very, very careful with this feature.
Copied

Without prompts, every command runs with your user’s rights. On a server, run Crush as an ordinary user rather than root, in a directory you can afford to lose or have committed.

Non-interactive runs: crush run

crush run takes one prompt, as arguments or on stdin, answers and exits. Know this before you paste any of it: there is nobody to answer a prompt, so a crush run session approves every permission request automatically. The source says so in a comment:

Automatically approve all permission requests for this
non-interactive session, as local mode does
Copied

So a run can edit files and execute commands with your user’s rights without asking, whatever the prompt said. Whether the dangerous-command block list of -y still applies in a run is not documented. Run it in a clean, committed working copy (or a throwaway clone), not on your only copy:

git status --short   # empty output: everything is committed
crush run "Explain the build failure in this log" < build.log
git diff | crush run "Review this patch" > review.md
crush run --continue "Now suggest tests for it"
git status --short   # see what the run changed
Copied

Its flags are --quiet (-q, no spinner), --verbose (-v, show logs), --model (-m, a model or provider/model), --small-model, --reasoning-effort, --session (-s and an ID) and --continue (-C, the most recent session; the two cannot be combined).

Where Crush keeps sessions and data

PathWhat it holds
.crush/crush.db in the project
That project’s sessions and messages (SQLite)
.crush/logs/crush.log
The project’s log; read it with crush logs --follow
.crush/crush.json
Workspace state Crush writes
~/.local/share/crush/crush.json
Tokens from crush login and other state Crush remembers
~/.config/crush/crushrc
Your configuration

Sessions are per project: they live in the project’s .crush folder (the nearest one up to the git root, or a new one where you started Crush), and each new crush starts a fresh one unless you pass --continue or --session. Because that folder holds your conversation history, keep it out of commits (add .crush/ to .gitignore). --data-dir or CRUSH_DATA_DIR moves it, and XDG_DATA_HOME moves the global one. Crush also sends pseudonymous usage metrics tied to a device hash, and per the README, “prompts and responses are NEVER collected”; set CRUSH_DISABLE_METRICS=1 or DO_NOT_TRACK=1 to turn them off.

Running Crush on a server over SSH

Crush is a terminal program, so it runs over SSH as it does locally. Three things differ on a remote machine.

Signing in. An API key needs no browser at all. Hyper and GitHub Copilot use device sign-in: Crush shows a code (“Your code is”) and a link under “Browser not opening? Visit:”, you approve on your laptop or phone, and the session carries on. Grok falls back to the same kind of flow when it cannot open a local port. ChatGPT is different: the sign-in ends by sending your browser to http://localhost:1455/auth/callback (or port 1457), which must reach the machine running Crush, and Crush offers no device code or code to paste instead. These are the ports Codex CLI uses, and for Codex, OpenAI’s headless sign-in docs give forwarding port 1455 over SSH as a fallback. That is Codex’s documented route, not Crush’s: Crush’s docs do not cover remote sign-in, and we have not tested the forward with Crush. If you try it, it looks like this, run from your laptop:

ssh -L 1455:127.0.0.1:1455 you@your-server
crush login chatgpt     # in that session; open the printed link on your laptop
Copied

If it does not complete, an OpenAI API key in OPENAI_API_KEY needs no browser at all.

Keeping it alive. A Crush session ends when your SSH connection drops. Start it inside tmux and reattach later with tmux attach; crush --continue picks the last session back up after a restart.

Unattended jobs. A cron job or CI step uses crush run with a key from the environment, with the auto-approval above in mind. And since a crushrc runs as code, a server that pulls repositories it did not write should not start Crush in them unreviewed. For picking the machine itself, choosing a VPS for a coding agent applies to Crush as well; the Claude Code alternatives guide sets Crush’s neighbours side by side.

Run Claude Code, Codex, OpenCode, Pi, Hermes or OpenClaw on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.