Skip to content

Crush

Crush is a terminal coding agent from Charm. Add Cloakray as an OpenAI-compatible provider.

Install

npm install -g @charmland/crush

Add the provider

Export your key:

export CLOAKRAY_API_KEY="ckr_..."

Then add the provider to crush.json in your project, or ~/.config/crush/crush.json for every project:

{
  "$schema": "https://charm.land/crush.json",
  "providers": {
    "cloakray": {
      "name": "Cloakray",
      "type": "openai",
      "base_url": "https://api.cloakray.com/v1",
      "api_key": "$CLOAKRAY_API_KEY"
    }
  }
}

$CLOAKRAY_API_KEY is read from the environment, so the file is safe to commit. Without a models list, Crush loads the models from GET /v1/models.

Use it

cd your-project
crush

Pick Cloakray and a model with tool support. Restart Crush after editing the config.