Skip to main content
With one Capriole AI API key, you can run GPT-6.2 Astra, Claude Fable 5.2, Opus 5.5, and Gemini 4 Carbon in Crush at up to 90% less than official API prices.

What is Crush

Crush is Charm’s open-source coding agent for the terminal. It reads its configuration from a crushrc file, which is Bash with Crush-specific commands. This setup adds Capriole AI as one OpenAI-compatible provider.

Prerequisites

Before you begin, make sure you have:
  • A Capriole AI account (Sign up here)
  • A Premium plan (USD 9 per month, also includes unlimited web chat) or a Team plan, required for an API key (Subscribe)
  • A Capriole AI API key (Get your key)

Installation

Install Crush with Homebrew:
Or install it with npm:
Verify the install:

Connect with one command

On the API page, select Connect agent, choose Crush and macOS or Linux, and paste your API key. Once Crush is installed, run the command it shows in Terminal. It adds the configuration below to ~/.config/crush/crushrc and has Crush read your key from ~/.capriole-ai/key, so you do not need to export CAPRIOLE_AI_API_KEY. The script lists every change and asks before it writes anything. It backs up the files it changes, sends one test request, and puts every file back if that request fails. To undo it, choose disconnect in the same dialog and run that command. It removes the Capriole AI provider and restores the settings the script changed, except any you have edited since. To set up Crush yourself, follow the steps below.

Configuration

Model validation

Crush 0.98.1 passes a file-read, file-write, and final-answer check through Capriole AI with every model in Supported models, using the configuration below. Create or update ~/.config/crush/crushrc:
What each setting does:
  • --type openai-compat sends every model to Chat Completions. Capriole AI serves all of these models on Chat Completions.
  • --api-key "$CAPRIOLE_AI_API_KEY" reads your key from the environment when Crush loads the file, and Crush sends it as a Bearer token.
  • --discover-models false keeps the list to the models you add.
  • model large is the main coding model. model small is the model for light tasks such as session titles.

Run Crush

Set your API key, then start Crush from your project directory:
Press Ctrl+L to switch models. For a non-interactive run, use crush run:

Supported models

Model references use the form capriole/<model-id>. openai-latest, claude-latest, and google-latest always point to our latest flagship in each family, currently GPT-6.2 Astra, Claude Fable 5.2, and Gemini 4 Carbon.

Troubleshooting

Why does Crush return an authentication error?

Export CAPRIOLE_AI_API_KEY before you start Crush. Crush reads the variable when it loads crushrc.

Why does a Claude model fail with Unsupported chat model_key?

On Chat Completions, use the anthropic/-prefixed Claude IDs, such as anthropic/claude-opus-5-5. The bare IDs, such as claude-opus-5-5, are for Anthropic Messages.

Why don’t config changes apply?

A .crushrc or crushrc file in the project directory takes priority over ~/.config/crush/crushrc. Check for one, then restart Crush.

Notes

  • crushrc runs as a shell script. Do not paste your key into it.
  • To add another Capriole AI model, add one more model add line. GET https://api.caprioletech.com/v1/models lists every model ID.
  • Gemini 4 Carbon thinks longer than Gemini 4 Argon, so its turns can take longer and use more tokens. For quicker turns, use google/gemini-4-argon.
  • To use the same key with your other coding agents, see Use one API key with coding agents.
  • Official references: Crush and Crush configuration.
Last modified on December 4, 2026