@@ -12,10 +12,12 @@ Crush is a tool for building software with AI.
13## Installation
13## Installation
15−* [Packages](https://github.com/charmbracelet/crush/releases/tag/nightly) are available in Debian and RPM formats
15+Nightly builds are available while Crush is in development.
16−* [Binaries](https://github.com/charmbracelet/crush/releases/tag/nightly) are available for Linux and macOS
17+- [Packages](https://github.com/charmbracelet/crush/releases/tag/nightly) are available in Debian and RPM formats
18+- [Binaries](https://github.com/charmbracelet/crush/releases/tag/nightly) are available for Linux and macOS
18−Or just install it with go:
20+You can also just install it with go:
21git clone git@github.com:charmbracelet/crush.git
23git clone git@github.com:charmbracelet/crush.git
@@ -23,6 +25,8 @@ cd crush
28+Note that Crush doesn't support Windows yet, however Windows support is planned and in progress.
26## Getting Started
30## Getting Started
28For now, the quickest way to get started is to set an environment variable for
32For now, the quickest way to get started is to set an environment variable for
@@ -45,13 +49,132 @@ providers.
45| `AZURE_OPENAI_API_KEY` | Azure OpenAI models (optional when using Entra ID) |
49| `AZURE_OPENAI_API_KEY` | Azure OpenAI models (optional when using Entra ID) |
46| `AZURE_OPENAI_API_VERSION` | Azure OpenAI models |
50| `AZURE_OPENAI_API_VERSION` | Azure OpenAI models |
54+For 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:
58+3. `$HOME/.config/crush/crush.json`
62+Crush can use LSPs for additional context to help inform its decisions, just like you would. LSPs can be added manually like so:
73+ "command": "typescript-language-server",
77+ "command": "alejandra"
85+To use AWS Bedrock with Claude models, configure your AWS credentials and region:
92+ "provider_type": "bedrock",
94+ "region": "us-east-1"
101+Bedrock uses your AWS credentials from environment variables (`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`) or AWS credential profiles. The region can be specified in the configuration or via the `AWS_REGION` environment variable.
105+For Google Cloud Vertex AI with Gemini models, configure your project and location:
112+ "provider_type": "vertexai",
114+ "project": "your-gcp-project-id",
115+ "location": "us-central1"
122+Vertex AI uses Google Cloud authentication. Ensure you have the `GOOGLE_APPLICATION_CREDENTIALS` environment variable set or are authenticated via `gcloud auth application-default login`.
124+### OpenAI-Compatible APIs
126+Crush supports all OpenAI-compatible APIs, including local models via Ollama:
133+ "provider_type": "openai",
134+ "base_url": "http://localhost:11434/v1",
137+ "id": "llama3.2:3b",
138+ "name": "Llama 3.2 3B",
139+ "context_window": 8192,
140+ "default_max_tokens": 4096
148+For other OpenAI-compatible providers, adjust the `base_url` and provide an `api_key` if required:
154+ "id": "custom-openai",
155+ "provider_type": "openai",
156+ "base_url": "https://api.example.com/v1",
157+ "api_key": "your-api-key"
165+We’d love to hear your thoughts on this project. Feel free to drop us a note!
167+- [Twitter](https://twitter.com/charmcli)
168+- [The Fediverse](https://mastodon.social/@charmcli)
169+- [Discord](https://charm.sh/chat)
48## License
171## License
50[MIT](https://github.com/charmbracelet/crush/raw/main/LICENSE)
173[MIT](https://github.com/charmbracelet/crush/raw/main/LICENSE)
54−Part of [Charm](https://charm.sh).
177+Part of [Charm](https://charm.land).
56<a href="https://charm.sh/"><img alt="The Charm logo" width="400" src="https://stuff.charm.sh/charm-banner-next.jpg" /></a>
179<a href="https://charm.sh/"><img alt="The Charm logo" width="400" src="https://stuff.charm.sh/charm-banner-next.jpg" /></a>