2> 🚧 This is a pre-release under heavy, active development. Things are still in flux but we’re excited to share early progress.
7 <a href="https://github.com/charmbracelet/crush/releases"><img src="https://img.shields.io/github/release/charmbracelet/crush" alt="Latest Release"></a>
8 <a href="https://github.com/charmbracelet/crush/actions"><img src="https://github.com/charmbracelet/crush/workflows/build/badge.svg" alt="Build Status"></a>
11Crush is a tool for building software with AI.
15Crush has first class support for macOS, Linux, and Windows.
17Nightly builds are available while Crush is in development.
19- [Packages](https://github.com/charmbracelet/crush/releases/tag/nightly) are available in Debian, RPM, APK, and PKG formats
20- [Binaries](https://github.com/charmbracelet/crush/releases/tag/nightly) are available for Linux, macOS and Windows
22You can also just install it with go:
25git clone git@github.com:charmbracelet/crush.git
31<summary>Not a developer? Here’s a quick how-to.</summary>
33Download the latest [nightly release](https://github.com/charmbracelet/crush/releases) for your system. The [macOS ARM64 one](https://github.com/charmbracelet/crush/releases/download/nightly/crush_0.1.0-nightly_Darwin_arm64.tar.gz) is most likely what you want.
35Next, open a terminal and run the following commands:
39tar -xvzf crush_0.1.0-nightly_Darwin_arm64.tar.gz -C crush
40sudo mv ./crush/crush /usr/local/bin/crush
44Then, run Crush by typing `crush`.
52The quickest way to get started to grab an API key for your preferred
53provider such as Anthropic, OpenAI, or Groq, and just start Crush. You'll be
54prompted to enter your API key.
56That said, you can also set environment variables for preferred providers:
58| Environment Variable | Provider |
59| -------------------------- | -------------------------------------------------- |
60| `ANTHROPIC_API_KEY` | Anthropic |
61| `OPENAI_API_KEY` | OpenAI |
62| `GEMINI_API_KEY` | Google Gemini |
63| `VERTEXAI_PROJECT` | Google Cloud VertexAI (Gemini) |
64| `VERTEXAI_LOCATION` | Google Cloud VertexAI (Gemini) |
65| `GROQ_API_KEY` | Groq |
66| `AWS_ACCESS_KEY_ID` | AWS Bedrock (Claude) |
67| `AWS_SECRET_ACCESS_KEY` | AWS Bedrock (Claude) |
68| `AWS_REGION` | AWS Bedrock (Claude) |
69| `AZURE_OPENAI_ENDPOINT` | Azure OpenAI models |
70| `AZURE_OPENAI_API_KEY` | Azure OpenAI models (optional when using Entra ID) |
71| `AZURE_OPENAI_API_VERSION` | Azure OpenAI models |
75For many use cases, Crush can be run with no config. That said, if you do need config, it can be added either local to the project itself, or globally. Configuration has the following priority:
793. `$HOME/.config/crush/crush.json`
83Crush can use LSPs for additional context to help inform its decisions, just like you would. LSPs can be added manually like so:
92 "command": "typescript-language-server",
96 "command": "alejandra"
104Crush 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. Environment variable expansion is supported using `$(echo $VAR)` syntax.
112 "args": ["/path/to/mcp-server.js"],
114 "NODE_ENV": "production"
119 "url": "https://example.com/mcp/",
121 "Authorization": "$(echo Bearer $EXAMPLE_MCP_TOKEN)"
124 "streaming-service": {
126 "url": "https://example.com/mcp/sse",
128 "API-Key": "$(echo $API_KEY)"
137Enable debug logging with the `-d` flag or in config. View logs with `crush logs`. Logs are stored in `.crush/logs/crush.log`.
140# Run with debug logging
143# View last 1000 lines
146# Follow logs in real-time
153Add to your `crush.json` config file:
164### Configurable Default Permissions
166Crush includes a permission system to control which tools can be executed without prompting. You can configure allowed tools in your `crush.json` config file:
176 "mcp_context7_get-library-doc"
182The `allowed_tools` array accepts:
184- Tool names (e.g., `"view"`) - allows all actions for that tool
185- Tool:action combinations (e.g., `"edit:write"`) - allows only specific actions
187You can also skip all permission prompts entirely by running Crush with the `--yolo` flag.
189### OpenAI-Compatible APIs
191Crush supports all 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.
197 "provider_type": "openai",
198 "base_url": "https://api.deepseek.com/v1",
201 "id": "deepseek-chat",
202 "name": "Deepseek V3",
203 "cost_per_1m_in": 0.27,
204 "cost_per_1m_out": 1.1,
205 "cost_per_1m_in_cached": 0.07,
206 "cost_per_1m_out_cached": 1.1,
207 "context_window": 64000,
208 "default_max_tokens": 5000
218We’d love to hear your thoughts on this project. Feel free to drop us a note!
220- [Twitter](https://twitter.com/charmcli)
221- [The Fediverse](https://mastodon.social/@charmcli)
222- [Discord](https://charm.sh/chat)
226[MIT](https://github.com/charmbracelet/crush/raw/main/LICENSE)
230Part of [Charm](https://charm.land).
232<a href="https://charm.sh/"><img alt="The Charm logo" width="400" src="https://stuff.charm.sh/charm-banner-next.jpg" /></a>
234<!--prettier-ignore-->
235Charm热爱开源 • Charm loves open source
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list