Your new coding bestie, now available in your favourite terminal.
Your tools, your code, and your workflows, wired into your LLM of choice.
Note
This is a fork of Charm Crush
maintained by taigrr. It tracks upstream and
layers on a large set of features, a privacy-first stance, and a
multi-session, multi-workspace workflow. Grab a
release or run
go install github.com/taigrr/crush@latest.
If you want more control over your workflow, your sessions, your editor integration, and your data, here's what you get on top of upstream. For a deeper technical breakdown see FEATURES.md.
- No telemetry. The entire PostHog analytics package is removed β no event tracking, no machine fingerprinting. No usage data leaves your machine.
- Self-contained. Renamed to
github.com/taigrr/crushand built on taigrr forks offantasyandcatwalk. Providers are compiled in from an embedded catalog, so there's no network provider fetching. - Self-hosted releases. Binaries and
deb/rpm/apk/Arch packages are built and published from this repo, with nightlies.
- Session sidebar (
ctrl+s): a cross-workspace navigator with vim keys,/text filter,{/}section jumps, resizable width, and a grouped-by-workspace or flat inbox view (Running / Unread / Read / Favorite). Multi-select for bulk archive and mark-as-read, click-to-open, a live hot-preview of whatever you're hovering, and a Ready / Working / Total summary block. - Swarm: every session gets a
color-animaladdress. Sessions can message each other, fold asides into a running turn (btw), or spawn brand-new sessions in any directory β bringing that workspace up if needed β optionally on a different model. - Semantic search palette (
ctrl+b) over your entire history, with hybrid vector + substring matching and/gcross-workspace fan-out. Also available ascrush searchandcrush embeddings. - Session import from Claude Code, Codex, Grok Build, and Pi via
crush session import, with idempotent re-sync. - Attention plumbing: per-session permission and question state, a red/green window border when a background session needs you or is ready for review, and a connection-status line with exponential reconnect backoff.
- Session read/unread state, favorites, per-session working directory,
ctrl+xarchive-current, recent sessions on the landing screen, and automatic re-titling.
- Automatic snapshots. Every user message checkpoints your filesystem
into a private git repo (
.crush/git/) that never touches your own.git. Restore or diff any point in the conversation. - Real git worktrees. Run parallel branches of work in isolated
directories with per-session working dirs, plus merge/rebase support and
post-create hooks (
bun i,go mod download, β¦). - Conversation forking. Fork a session from any message, optionally into its own worktree.
- Model roles. Beyond
largeandsmall, an optionalworkerrole is the default for delegated work, and any other key undermodelsdefines a named role (scout,reviewer, β¦) that theagent,review, andswarmtools accept as theirmodelparameter. Switch roles live with/model. - Dynamic 1M-token context. Per-model
standard/extended/dynamicmodes;dynamicauto-switches to a 1M window as you fill the standard one, then summarizes near the limit. - Message queueing and deferred model/context changes while the agent is busy.
- Bang mode (
!) for direct shell execution, with a dedicated Shell message role. - Goal mode (
/goal): an autonomous, turn-budgeted loop that keeps working until a stated goal is met. - Parallel adversarial review (
/reviewor thereviewtool): two isolated reviewers, ideally from a different vendor, for a write β review β fix loop. - Question tool: a restrained, structured agent-to-user round-trip (single/multiple choice, yes/no, free text) that hard-fails headless instead of hanging.
- Slash commands:
/goal,/export,/continue,/rename,/cwd,/model,/review,/mcp-auth,/btw. - Session export to Markdown (including review findings), and smart paste (images, long text, and file paths become attachments).
- Milestones: auto-generated progress markers across a session.
- Procedures injected into the system prompt for reusable workflows.
- Ephemeral sysadmin mode toggle to bypass the command filter.
- Bundled ripgrep enforcement for fast content search.
multi_viewfor batched file reads.- LSP-powered
lsp_definition,lsp_references,lsp_rename,lsp_document_symbols, andlsp_replace_symbolfor whole-symbol edits. - Native
context7tool for up-to-date library docs. search_history,list_sessions,rename_session,swarm, andworkspace_lookupfor cross-session work.question,review,reload_config,crush_info,crush_logs, and editor-bridge tools (open buffer context, jump to locations in Neovim).- Diff view for denied tool calls.
- Native Neovim bridge. A direct Neovim integration (replacing the older neocrush daemon) so Crush can open files and drive your editor from inside a session.
- Named theme registry with adaptive light/dark variants for every theme, user Lua themes, and a live-preview theme picker.
- Bundled community themes: Tokyo Night, Catppuccin, Dracula, Nord, Gruvbox, RosΓ© Pine, Cyberpunk, VS Code Dark, and a monochrome family (plain, green, blue, yellow, purple, red).
- Inline image rendering for attachments via the Kitty graphics protocol.
- Low-bandwidth / reduced-motion mode for slow links and SSH.
- Milestones dialog, git branch and active-worktree indicators in the header.
- Sound effects for end of turn, swarm messages, blocked sessions, tool errors, and queued messages β each individually configurable or replaceable with your own WAV/MP3, mutable from the command palette.
- Configurable notification backends, terminal bell support, and SSH terminal notifications.
- Extra subcommands:
crush session {list,show,last,delete,rename,import},crush search,crush embeddings,crush db merge,crush reload,crush shutdown,crush server. - Client/server mode by default, sharing one workspace per directory across multiple clients with row-level DB sync and multi-client permission coordination.
- Embedded Swagger UI for the server API at
/v1/docs/.
crush login grokfor Grok subscription auth (alongside Hyper and Copilot).- Amazon Bedrock Europe, Bedrock Mantle (GPT-5.5), and improved AWS credential detection.
- Shell expansion in provider
base_urlandapi_key, so"$MY_BASE_URL"and"$(op read ...)"just work.
- Multi-Model: choose from a wide range of LLMs or add your own via OpenAI- or Anthropic-compatible APIs
- Flexible: switch LLMs mid-session while preserving context
- Session-Based: maintain multiple work sessions and contexts per project
- LSP-Enhanced: Crush uses LSPs for additional context, just like you do
- Extensible: add capabilities via MCPs (
http,stdio, andsse) - Works Everywhere: first-class support in every terminal on macOS, Linux, Windows (PowerShell and WSL), Android, FreeBSD, OpenBSD, and NetBSD
- Industrial Grade: built on the Charm ecosystem, powering 25k+ applications, from leading open source projects to business-critical infrastructure
Download a release: binaries
are available for Linux, macOS, Windows, FreeBSD, OpenBSD, and NetBSD, and
packages are available in deb, rpm, apk, and Arch formats. A rolling
nightly pre-release tracks the main branch.
Or install it with Go (1.27+):
go install github.com/taigrr/crush@latestOr build from source:
git clone https://github.com/taigrr/crush.git
cd crush
go install .The quickest way to get started is to grab an API key for your preferred provider such as Anthropic, OpenAI, Groq, OpenRouter, or Vercel AI Gateway and just start Crush. You'll be prompted to enter your API key.
That said, you can also set environment variables for preferred providers.
| Environment Variable | Provider |
|---|---|
HYPER_API_KEY |
Charm Hyper |
ANTHROPIC_API_KEY |
Anthropic |
OPENAI_API_KEY |
OpenAI |
VERCEL_API_KEY |
Vercel AI Gateway |
GEMINI_API_KEY |
Google Gemini |
SYNTHETIC_API_KEY |
Synthetic |
ZAI_API_KEY |
Z.ai |
MINIMAX_API_KEY |
MiniMax |
HF_TOKEN |
Hugging Face Inference |
CEREBRAS_API_KEY |
Cerebras |
OPENROUTER_API_KEY |
OpenRouter |
IONET_API_KEY |
io.net |
ALIBABA_SINGAPORE_API_KEY |
Alibaba (Singapore) |
GROQ_API_KEY |
Groq |
AVIAN_API_KEY |
Avian |
OPENCODE_API_KEY |
OpenCode Zen & Go |
VERTEXAI_PROJECT |
Google Cloud VertexAI (Gemini) |
VERTEXAI_LOCATION |
Google Cloud VertexAI (Gemini) |
AWS_ACCESS_KEY_ID |
Amazon Bedrock (Claude) |
AWS_SECRET_ACCESS_KEY |
Amazon Bedrock (Claude) |
AWS_REGION |
Amazon Bedrock (Claude) |
AWS_PROFILE |
Amazon Bedrock (Custom Profile) |
AWS_BEARER_TOKEN_BEDROCK |
Amazon Bedrock |
AZURE_OPENAI_API_ENDPOINT |
Azure OpenAI models |
AZURE_OPENAI_API_KEY |
Azure OpenAI models (optional when using Entra ID) |
AZURE_OPENAI_API_VERSION |
Azure OpenAI models |
If you prefer subscription-based usage, here are some plans that work well in Crush:
Is there a provider youβd like to see in Crush? Is there an existing model that needs an update?
This fork of Crushβs default model listing is managed in Catwalk, a community-supported, open source repository of Crush-compatible models, and youβre welcome to contribute.
Tip
Crush ships with a builtin crush-config skill for configuring itself. In
many cases you can simply ask Crush to configure itself.
Crush runs great with no configuration. That said, if you do need or want to customize Crush, configuration can be added either local to the project itself, or globally, with the following priority:
.crush.jsoncrush.json$HOME/.config/crush/crush.json
Configuration itself is stored as a JSON object.
As an additional note, Crush also stores ephemeral data, such as application state, in one additional location:
# Unix
$HOME/.local/share/crush/crush.json
# Windows
%LOCALAPPDATA%\crush\crush.jsonTip
You can override the user and data config locations by setting:
CRUSH_GLOBAL_CONFIGCRUSH_GLOBAL_DATA
Models are configured by role. large is the model you talk to and small
handles titles and summaries. The optional worker role is the default for
delegated work (the agent and review tools) so a strong large model
can hand mechanical sub-tasks to a cheaper one. Any other key defines a
named role that those tools, and swarm when spawning a new session,
accept as their model parameter:
{
"$schema": "https://charm.land/crush.json",
"models": {
"large": { "provider": "anthropic", "model": "claude-sonnet-4-6" },
"small": { "provider": "anthropic", "model": "claude-haiku-4-5-20251001" },
"worker": { "provider": "openai", "model": "gpt-5.4-mini" },
"scout": { "provider": "openai", "model": "gpt-5.4-nano" }
}
}Role names are matched case-insensitively. Use /model [role] [model [effort]]
at the prompt to reassign a role mid-session.
Every user message checkpoints the working tree into a private git repo
under .crush/git/, separate from your own .git. Crush-managed git
worktrees give each session an isolated directory when you want parallel
work. Both are on by default:
{
"$schema": "https://charm.land/crush.json",
"snapshots": {
"enabled": true,
"exclude": ["node_modules", "dist"]
},
"worktree": {
"enabled": true,
"post_create": [
{ "if_exists": "bun.lockb", "run": "bun i" },
{ "if_exists": "go.mod", "run": "go mod download" }
]
}
}See docs/specs/WORKTREES_AND_SNAPSHOTS.md for the full design.
Pick a theme with options.theme or the live-preview theme picker in the
command palette. Every theme has a light and a dark variant, chosen from
your terminal's background color. Builtin themes: charmtone (default),
hypercrush, tokyo-night, catppuccin-mocha, dracula, nord,
gruvbox-dark, rose-pine, cyberpunk, vscode-dark, monochrome,
monochrome-green, monochrome-blue, monochrome-yellow,
monochrome-purple, and monochrome-red. Drop your own Lua themes in
~/.config/crush/themes/*.lua.
{
"$schema": "https://charm.land/crush.json",
"options": {
"theme": "tokyo-night",
"low_bandwidth": false
}
}Crush can use LSPs for additional context to help inform its decisions, just like you would. LSPs can be added manually like so:
{
"$schema": "https://charm.land/crush.json",
"lsp": {
"go": {
"command": "gopls",
"env": {
"GOTOOLCHAIN": "go1.24.5"
}
},
"typescript": {
"command": "typescript-language-server",
"args": ["--stdio"]
},
"nix": {
"command": "nil"
}
}
}Crush also supports Model Context Protocol (MCP) servers through three transport
types: stdio for command-line servers, http for HTTP endpoints, and sse
for Server-Sent Events.
Shell-style value expansion ($VAR, ${VAR:-default}, $(command), quoting,
nesting) works in command, args, env, headers, and url, so
file-based secrets work out of the box. You can use values like "$TOKEN"
or "$(cat /path/to/secret/token)". Expansion runs through Crush's embedded
shell, so the same syntax works on every supported system, Windows included.
Unset variables expand to the empty string by default, matching bash. For
required credentials, use ${VAR:?message} so an unset variable fails loudly
at load time with message instead of silently resolving to empty:
{ "api_key": "${CODEBERG_TOKEN:?set CODEBERG_TOKEN}" }Headers (both MCP headers and provider extra_headers) whose value
resolves to the empty string are dropped from the outgoing request rather
than sent as Header:. That keeps optional env-gated headers like
"OpenAI-Organization": "$OPENAI_ORG_ID" clean when the variable is unset.
Provider extra_body is a non-expanding JSON passthrough; put env-driven
values in extra_headers or the provider's api_key / base_url, all of
which do expand.
Security note:
crush.jsonis trusted code. Any$(...)in it runs at load time with your shell's privileges, before the UI appears. Don't launch Crush in a directory whosecrush.jsonyou haven't reviewed.
{
"$schema": "https://charm.land/crush.json",
"mcp": {
"filesystem": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mcp-server.js"],
"timeout": 120,
"disabled": false,
"disabled_tools": ["some-tool-name"],
"env": {
"NODE_ENV": "production"
}
},
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"timeout": 120,
"disabled": false,
"disabled_tools": ["create_issue", "create_pull_request"],
"headers": {
"Authorization": "Bearer $GH_PAT"
}
},
"streaming-service": {
"type": "sse",
"url": "https://example.com/mcp/sse",
"timeout": 120,
"disabled": false,
"headers": {
"API-Key": "$(echo $API_KEY)"
}
}
}
}HTTP and SSE MCP servers that require OAuth can use Crush's built-in
authorization-code flow instead of a static Authorization header. Set
"oauth": true to enable it:
{
"mcp": {
"linear": {
"type": "http",
"url": "https://mcp.linear.app/mcp",
"oauth": true
}
}
}On first connect the server is marked needs auth in the sidebar. Run
/mcp-auth (optionally with a server name) to open the browser and
complete authorization; the token is persisted and refreshed
automatically thereafter. The browser and callback listener run in the
local Crush server process, so the flow opens on your own machine.
Some servers (GitHub, Slack) don't support dynamic client registration. For those, register an OAuth app with the provider and supply the credentials directly. All values support shell expansion:
{
"mcp": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"oauth": true,
"oauth_client_id": "Iv1.abc123def456",
"oauth_client_secret": "$GITHUB_MCP_SECRET",
"oauth_callback_port": 40704
}
}
}When oauth_client_id is set, Crush skips dynamic client registration
and authenticates as the specified client. When omitted, Crush attempts
dynamic registration automatically (works with Linear, Notion, and other
servers that support RFC 7591).
Crush has preliminary support for hooks. For details, see the hook guide.
When Crush is run against a shared backend (for example two TUIs talking to
the same crush serve), clients are grouped into workspaces keyed by
their resolved --cwd. Two clients with the same --cwd join the same
underlying workspace, so they share the session list, message history,
permission queue, LSP, and MCP state.
Joining is implicit: pointing a second client at the same working directory attaches it to the existing workspace. Each new invocation, however, starts in its own fresh session by default. To pick up the conversation another client already has open, use the session manager (the session picker) and select it. Sessions surface two signals there:
IsBusyis set while an agent turn is in flight for that session.AttachedClientsreports how many clients are currently viewing it.
A non-zero AttachedClients (often combined with IsBusy) is the cue that a
session is "in progress" on another client and joining it will mirror that
view live.
The first client to create a workspace fixes its process-wide flags. In
particular, --yolo and --debug follow a first-wins rule: later
clients that arrive at the same --cwd with different values for those
flags do not change the running workspace. A debug log line is emitted
recording the mismatch, and the workspace keeps the flags it was created
with.
A workspace lives as long as at least one client has an SSE event stream
open against it. When the last stream disconnects, the workspace is torn
down. There is a short grace window right after POST /v1/workspaces so a
client that has created the workspace but not yet opened its event stream
does not get reaped before it can attach.
Crush respects .gitignore files by default, but you can also create a
.crushignore file to specify additional files and directories that Crush
should ignore. This is useful for excluding files that you want in version
control but don't want Crush to consider when providing context.
The .crushignore file uses the same syntax as .gitignore and can be placed
in the root of your project or in subdirectories.
Note this can prevent some tool calls from viewing or editing the listed files,
but will not prevent the Bash tool from cating the file, for example.
By default, Crush will ask you for permission before running tool calls. If you'd like, you can allow tools to be executed without prompting you for permissions. Use this with care.
{
"$schema": "https://charm.land/crush.json",
"permissions": {
"allowed_tools": [
"view",
"ls",
"grep",
"edit",
"mcp_context7_get-library-doc"
]
}
}You can also skip all permission prompts entirely by running Crush with the
--yolo flag. Be very, very careful with this feature.
If you'd like to prevent Crush from using certain built-in tools entirely, you
can disable them via the options.disabled_tools list. Disabled tools are
completely hidden from the agent.
{
"$schema": "https://charm.land/crush.json",
"options": {
"disabled_tools": ["bash", "sourcegraph"]
}
}To disable tools from MCP servers, see the MCP config section.
If you'd like to prevent Crush from using certain skills entirely, you can
disable them via the options.disabled_skills list. Disabled skills are hidden
from the agent, including builtin skills and skills discovered from disk.
{
"$schema": "https://charm.land/crush.json",
"options": {
"disabled_skills": ["crush-config"]
}
}Crush supports the Agent Skills open standard for
extending agent capabilities with reusable skill packages. Skills are folders
containing a SKILL.md file with instructions that Crush can discover and
activate on demand.
The global paths we look for skills are:
$CRUSH_SKILLS_DIR$XDG_CONFIG_HOME/agents/skillsor~/.config/agents/skills/$XDG_CONFIG_HOME/crush/skillsor~/.config/crush/skills/~/.agents/skills/~/.claude/skills/- On Windows, we also look at
%LOCALAPPDATA%\agents\skills\or%USERPROFILE%\AppData\Local\agents\skills\%LOCALAPPDATA%\crush\skills\or%USERPROFILE%\AppData\Local\crush\skills\
- Additional paths configured via
options.skills_paths
On top of that, we also load skills in your project from the following relative paths:
.agents/skills.crush/skills.claude/skills.cursor/skills
You can get started with example skills from anthropics/skills:
# Unix
mkdir -p ~/.config/crush/skills
cd ~/.config/crush/skills
git clone https://github.com/anthropics/skills.git _temp
mv _temp/skills/* . && rm -rf _temp# Windows (PowerShell)
mkdir -Force "$env:LOCALAPPDATA\crush\skills"
cd "$env:LOCALAPPDATA\crush\skills"
git clone https://github.com/anthropics/skills.git _temp
mv _temp/skills/* . ; rm -r -force _tempSkills can be made invocable as commands from the commands palette (Ctrl+P). Add user-invocable: true to the skill's YAML frontmatter:
---
name: my-skill
description: A skill that can be invoked as a command.
user-invocable: true
---User-invocable skills appear in the commands palette with a user: or project: prefix:
- Skills from global directories show as
user:skill-name - Skills from project directories show as
project:skill-name
When invoked, the skill's instructions are loaded into the conversation context.
To prevent the model from auto-triggering a skill (while still allowing user invocation), add disable-model-invocation: true:
---
name: my-skill
description: Only invocable by users, not the model.
user-invocable: true
disable-model-invocation: true
---Skills with disable-model-invocation won't appear in the model's available skills list but can still be invoked manually by users.
Crush sends desktop notifications when a tool call requires permission and when the agent finishes its turn. They're only sent when the terminal window isn't focused and your terminal supports reporting the focus state.
{
"$schema": "https://charm.land/crush.json",
"options": {
"notification_style": "auto", // default
},
}The notification_style option controls how notifications are delivered:
| Value | Behavior |
|---|---|
auto |
Default. native for local sessions, osc for SSH (auto-detects OSC 99/777) |
native |
Native desktop notifications |
osc |
OSC escape-sequence notifications (works over SSH) |
bell |
Terminal bell only |
disabled |
No notifications |
To turn notifications off entirely, set notification_style to disabled.
The older disable_notifications boolean is deprecated in favor of
notification_style. On macOS, notifications currently lack icons due to
platform limitations.
Crush plays a short sound when a turn finishes, when a swarm message is dispatched, when a session becomes blocked on a permission or question, when a tool call fails, and when a message is queued behind an active turn. Sounds are on by default and play from the server process. Mute them all from the command palette ("Mute/Unmute Sound Effects") or configure them per event, pointing at your own WAV or MP3 if you like:
{
"$schema": "https://charm.land/crush.json",
"options": {
"sound": {
"disabled": false,
"end_of_turn": { "path": "~/.config/crush/done.wav" },
"queued": { "disabled": true }
}
}
}If you've configured a hook for the same event, the built-in sound defers to it and stays quiet.
Every session has a color-animal address (for example aliceblue-tiger)
derived from its id, shown in the sidebar and by list_sessions. The
swarm tool lets one session send a user turn to another β in any running
workspace β either queued for its next turn or folded into the current one
with btw. address: "new" spawns a fresh session, optionally in another
directory (bringing that workspace up if needed) and on a different model
role. Sender identity is stamped server-side so it can't be spoofed.
ctrl+b opens the search palette over your conversation history. Matching
is hybrid: an exact substring signal fused with a semantic vector signal
when an embedding model is configured. Append /g to fan out across every
workspace. The same search is available headless:
crush search "how did we deploy this" --all-workspaces
crush embeddings set openai text-embedding-3-small
crush embeddings backfillThe embedding model is configured globally under the top-level embedding
key in ~/.config/crush/crush.json; workspace overrides are ignored. See
docs/specs/EMBEDDINGS_AND_VECTOR_SEARCH.md.
Bring conversations over from other coding agents:
crush session import ~/.claude/projects/.../session.jsonl
crush session import --from codex path/to/rollout.jsonlClaude Code, Codex, Grok Build, and Pi transcripts are auto-detected.
Imports are idempotent, so re-running syncs new messages. The builtin
session-import skill can walk you through it interactively.
When you initialize a project, Crush analyzes your codebase and creates
a context file that helps it work more effectively in future sessions.
By default, this file is named AGENTS.md, but you can customize the
name and location with the initialize_as option:
{
"$schema": "https://charm.land/crush.json",
"options": {
"initialize_as": "AGENTS.md"
}
}This is useful if you prefer a different naming convention or want to
place the file in a specific directory (e.g., CRUSH.md or
docs/LLMs.md). Crush will fill the file with project-specific context
like build commands, code patterns, and conventions it discovered during
initialization.
By default, Crush adds attribution information to Git commits and pull requests
it creates. You can customize this behavior with the attribution option:
{
"$schema": "https://charm.land/crush.json",
"options": {
"attribution": {
"trailer_style": "co-authored-by",
"generated_with": true
}
}
}trailer_style: Controls the attribution trailer added to commit messages (default:assisted-by)assisted-by: AddsAssisted-by: Crush:[ModelID]as specified in the conventionco-authored-by: AddsCo-Authored-By: Crush <crush@charm.land>none: No attribution trailer
Crush supports custom provider configurations for both OpenAI-compatible and Anthropic-compatible APIs.
Note
Note that we support two "types" for OpenAI. Make sure to choose the right one to ensure the best experience!
openaishould be used when proxying or routing requests through OpenAI.openai-compatshould be used when using non-OpenAI providers that have OpenAI-compatible APIs.
Hereβs an example configuration for Deepseek, which uses an OpenAI-compatible
API. Don't forget to set DEEPSEEK_API_KEY in your environment.
{
"$schema": "https://charm.land/crush.json",
"providers": {
"deepseek": {
"type": "openai-compat",
"base_url": "https://api.deepseek.com/v1",
"api_key": "$DEEPSEEK_API_KEY",
"models": [
{
"id": "deepseek-chat",
"name": "Deepseek V3",
"cost_per_1m_in": 0.27,
"cost_per_1m_out": 1.1,
"cost_per_1m_in_cached": 0.07,
"cost_per_1m_out_cached": 1.1,
"context_window": 64000,
"default_max_tokens": 5000
}
]
}
}
}Do any humans read these READMEs anymore? Come by my discord! (Agents, shhh!)
Custom Anthropic-compatible providers follow this format:
{
"$schema": "https://charm.land/crush.json",
"providers": {
"custom-anthropic": {
"type": "anthropic",
"base_url": "https://api.anthropic.com/v1",
"api_key": "$ANTHROPIC_API_KEY",
"extra_headers": {
"anthropic-version": "2023-06-01"
},
"models": [
{
"id": "claude-sonnet-4-20250514",
"name": "Claude Sonnet 4",
"cost_per_1m_in": 3,
"cost_per_1m_out": 15,
"cost_per_1m_in_cached": 3.75,
"cost_per_1m_out_cached": 0.3,
"context_window": 200000,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
}
]
}
}
}Crush currently supports running Anthropic models through Bedrock, with caching disabled.
- A Bedrock provider will appear once you have AWS configured, i.e.
aws configure - Crush also expects the
AWS_REGIONorAWS_DEFAULT_REGIONto be set - To use a specific AWS profile set
AWS_PROFILEin your environment, i.e.AWS_PROFILE=myprofile crush - Alternatively to
aws configure, you can also just setAWS_BEARER_TOKEN_BEDROCK
Vertex AI will appear in the list of available providers when VERTEXAI_PROJECT and VERTEXAI_LOCATION are set. You will also need to be authenticated:
gcloud auth application-default loginTo add specific models to the configuration, configure as such:
{
"$schema": "https://charm.land/crush.json",
"providers": {
"vertexai": {
"models": [
{
"id": "claude-sonnet-4@20250514",
"name": "VertexAI Sonnet 4",
"cost_per_1m_in": 3,
"cost_per_1m_out": 15,
"cost_per_1m_in_cached": 3.75,
"cost_per_1m_out_cached": 0.3,
"context_window": 200000,
"default_max_tokens": 50000,
"can_reason": true,
"supports_attachments": true
}
]
}
}
}Local models can also be configured via OpenAI-compatible API. Here are two common examples:
{
"providers": {
"ollama": {
"name": "Ollama",
"base_url": "http://localhost:11434/v1/",
"type": "openai-compat",
"models": [
{
"name": "Qwen 3 30B",
"id": "qwen3:30b",
"context_window": 256000,
"default_max_tokens": 20000
}
]
}
}
}{
"providers": {
"lmstudio": {
"name": "LM Studio",
"base_url": "http://localhost:1234/v1/",
"type": "openai-compat",
"models": [
{
"name": "Qwen 3 30B",
"id": "qwen/qwen3-30b-a3b-2507",
"context_window": 256000,
"default_max_tokens": 20000
}
]
}
}
}Crush runs as a client/server pair by default. crush server starts a
standalone backend; crush reload and crush shutdown control a running
one. The HTTP API is documented by an embedded Swagger UI at /v1/docs/
(spec at /v1/docs/doc.json).
Sometimes you need to look at logs. Luckily, Crush logs all sorts of
stuff. Logs are stored in ./.crush/logs/crush.log relative to the project.
The CLI also contains some helper commands to make perusing recent logs easier:
# Print the last 1000 lines
crush logs
# Print the last 500 lines
crush logs --tail 500
# Follow logs in real time
crush logs --followWant more logging? Run crush with the --debug flag, or enable it in the
config:
{
"$schema": "https://charm.land/crush.json",
"options": {
"debug": true,
"debug_lsp": true
}
}This fork does not collect usage metrics or telemetry. The disable_metrics
config option and CRUSH_DISABLE_METRICS environment variable are retained for
compatibility with upstream Crush, and the DO_NOT_TRACK
convention is also respected, but no metrics are sent regardless.
export CRUSH_DISABLE_METRICS=1{
"options": {
"disable_metrics": true
}
}Installing an extra tool might be needed on Unix-like environments.
| Environment | Tool |
|---|---|
| Windows | Native support |
| macOS | Native support |
| Linux/BSD + Wayland | wl-copy and wl-paste |
| Linux/BSD + X11 | xclip or xsel |
Contributions to this fork are welcome β open an issue or pull request on github.com/taigrr/crush. For the upstream project, see its contributing guide.
Upstream Crush is FSL-1.1-MIT, converting to MIT on 2028-04-24. Fork modifications by taigrr are licensed under MIT, effective immediately.
A fork of Crush, part of Charm.
Charmηη±εΌζΊ β’ Charm loves open source




{ "$schema": "https://charm.land/crush.json", "options": { "skills_paths": [ "~/.config/crush/skills", // Windows: "%LOCALAPPDATA%\\crush\\skills", "./project-skills", ], }, }