crush-config
What it does
This skill helps you configure Crush, a coding tool, through its config files. It covers providers, models, MCP servers, hooks and permissions. It is for users who want to change how Crush behaves.
When to use it
- ✓When you want to set up a provider or model in Crush.
- ✓When you want to add MCP servers, language servers or skills to Crush.
- ✓When you want to change Crush's permissions or behavior with a config file.
Skill link
https://github.com/charmbracelet/crush/blob/main/internal/skills/builtin/crush-config/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up Crush with my API provider and add an MCP server, using a crushrc file in my project.”
5 new skills a week. 1 minute to read.
How it works
The agent writes a crushrc script, which is Bash-based, or a crush.json file. Crush merges the config files from your home folder and your project. The script uses built-in commands such as provider, model and mcp to build the settings.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Crush Configuration
Crush supports two config formats:
crushrc— a Bash script that builds config by calling Crush builtins. Preferred. Because it is real Bash you get includes, secrets, conditionals, and variables for free.crush.json— static JSON. Fully supported; see Legacy JSON format.
Both are discovered together and deep-merged. Priority (highest to lowest):
.crushrc/crushrc/.crush.json/crush.json(project-local, closer-to-cwd wins; Windows uses.\.crushrc/.\crushrc)$XDG_CONFIG_HOME/crush/crushrcor~/.config/crush/crushrc(%XDG_CONFIG_HOME%\crush\crushrcor%USERPROFILE%\.config\crush\crushrcon Windows)
Data directories (~/.local/share/crush and %LOCALAPPDATA%\crush) contain
machine-owned JSON state only; Crush does not discover or execute a crushrc
from those locations.
If a directory has both crushrc and crush.json, they merge (crushrc wins
on conflicts) and Crush logs a warning.
crushrc at a glance
A crushrc is a plain Bash script executed at load time with the same embedded
shell the bash tool uses. It builds config by calling builtins (provider,
model, mcp, lsp, hook, permissions, option). Statements run top to
bottom; later statements win, and remove/reset operate on anything defined
earlier or pulled in via source.
#!/usr/bin/env bash
# Includes and secrets are just Bash.
source ~/.config/crush/shared.sh
provider add anthropic --api-key "$ANTHROPIC_API_KEY"
model large anthropic/claude-sonnet-4-20250514 --max-tokens 16384
model small anthropic/claude-haiku-4-20250514
option skill-path ./skills
permissions allow view ls grep edit
Values are ordinary Bash — quote and expand normally ("$VAR", $(cmd),
${VAR:?required}). A failing $(command) aborts the load.
CRUSH_VERSION is exported into the script so you can feature-detect the
running Crush (it is the literal devel for local builds):
[[ "$CRUSH_VERSION" != devel ]] && lsp add gopls --command gopls
Commands
All entity commands are verb-first. remove accepts rm as an alias. Booleans
accept true/false/1/0/yes/no, case-insensitive.
providers
provider add <id> [flags] # define/update; repeated calls merge
provider remove <id> # alias: rm — removes the provider and its models
Flags: --name, --type (completions, responses, messages, or a local
type like ollama, lmstudio, llamacpp; legacy values openai, openai-compat,
anthropic are migrated automatically), --api-key, --base-url,
--disable BOOL, --flat-rate BOOL, --discover-models BOOL,
--system-prompt-prefix TEXT, --extra-header KEY VALUE (repeatable),
--extra-body JSON, --provider-options JSON.
provider add deepseek \
--type completions \
--base-url "https://api.deepseek.com/v1" \
--api-key "${DEEPSEEK_API_KEY:?set DEEPSEEK_API_KEY}"
models
model add <provider>/<id> [flags] # register a custom model (provider must exist)
model remove <provider>/<id> # alias: rm
model large [<provider>/<id>] [flags] # set the large slot; no arg prints it
model small [<provider>/<id>] [flags] # set the small slot; no arg prints it
<provider>/<id>is the same formcrush modelsprints. A missing slash is an error.model addrequires the provider to already exist.model addflags:--name,--context-window N,--default-max-tokens N,--thinking always|never|toggleable,--supports-images BOOL,--price-input F,--price-output F,--price-cache-create F,--price-cache-hit F,--reasoning-effort low|medium|high,--max-attachments N.model large/model smallflags:--think,--reasoning-effort,--max-tokens N,--temperature F,--top-p F,--top-k N,--frequency-penalty F,--presence-penalty F,--provider-options JSON.model largewith no argument prints the current selection asprovider/id, usable in$(model large).
large is the primary coding model; small is used for summarization.
mcp
mcp add <name> --type stdio|sse|http [flags] # default type is stdio
mcp remove <name> # alias: rm
Flags: --command CMD, --args ARG (repeatable), --env KEY VALUE
(repeatable), --url URL, --header KEY VALUE (repeatable), --timeout N,
--disabled BOOL, --disabled-tools TOOL (repeatable), `--enabled-t
FAQ
What is crushrc?
It is a Bash script that builds Crush's config by calling built-in commands, and it is the preferred format.
Can I still use JSON?
Yes. crush.json is fully supported, and both formats can be used together.
Which settings does it cover?
It covers providers, models, language servers, MCP servers, hooks, skills and permissions.
Details
Original description by the author
Use when the user needs help configuring Crush — writing crushrc (the Bash config format) or crush.json, setting up providers, models, LSPs, MCP servers, hooks, skills, permissions, or changing Crush behavior.
repo: charmbracelet/crush
Popularity
- GitHub stars
- 29k
- Ranking position
- #9765
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
crush-hooks
29kHelps your agent write and debug Crush hooks that check, block or change tool calls before they run, using settings in crush.json.
jq
29kHelps your agent query and reshape JSON data, such as API responses, config files or logs, using a built-in jq command.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.