Quickstart
Install crabcode, connect a provider, and start your first coding session.
Get from zero to coding
Install crabcode, connect an AI provider, and ask it to help with your project.
- Install crabcode
Choose one installation method:
npm install -g crabcodebun install -g crabcodeInstall a prebuilt binary with cargo-binstall:
cargo binstall crabcodeBuild from source with Cargo:
cargo install crabcodeOn Linux or macOS:
curl -sSL https://raw.githubusercontent.com/Blankeos/crabcode/main/install.sh | shTIP
Already installed? Run
crabcode upgradeto get the latest release, then restart crabcode. It detects your installation method automatically. To install a specific version, usecrabcode upgrade 0.0.13(version pinning is not supported for Homebrew installs). - Open your project
In your terminal, change to your project directory and launch crabcode:
cd /path/to/your/project crabcode - Connect a provider
Run
/connectinside crabcode and follow the prompts to connect a provider, such as OpenAI or Anthropic. Use/modelsto choose a model. - Start your first session
Type a request in the prompt, just as you would ask a teammate:
- Ask questions: "Explain the main function in src/lib.rs"
- Request changes: "Add error handling to this module"
- Plan first:
/planwhen you're not sure how to approach something - Build directly:
/buildwhen you know what you want done
Custom slash commands can live in .opencode/commands/ or .crabcode/commands/. crabcode reads the OpenCode command format.
Skip permission prompts (dangerous)
WARNING
Only use --yolo in a trusted, isolated workspace. It skips permission prompts, including requests to access paths outside your workspace, and does not provide a sandbox.
--yolo is an alias of --dangerously-skip-permissions:
crabcode --yolo # Interactive session
crabcode -p --yolo "Run the test suite" # Non-interactive executionExplicit deny rules, disabled tools, and agent tool restrictions still apply. Normal permission behavior remains the default; this flag only affects the current invocation and does not save a preference.
The flag applies to local interactive and print modes, not remote --attach, serve, or ACP sessions.
Configure crabcode
crabcode uses JSONC (JSON with comments). Create a crabcode.jsonc in your project:
{
"theme": "default",
"model": "openai/gpt-5.2",
"notifications": {
"complete": {
"terminal": "auto",
"soundEnabled": true,
"desktop": true,
},
"error": {
"soundEnabled": true,
},
},
}How config merging works
crabcode reads up to four files (highest priority wins):
- OpenCode global (
~/.config/opencode/opencode.jsonc) - crabcode global (
~/.config/crabcode/crabcode.jsonc) - OpenCode local (
.opencode/opencode.jsoncin your project) - crabcode local (
crabcode.jsoncin your project)
Set your defaults globally, override per-project when needed. See the full configuration reference.
Open files in your editor
Clicked paths, image placeholders, and binary links open in a detected Zed / VS Code / Cursor integrated editor, otherwise in the system default application. Detected editors preserve line and column jumps. See Editor Integration for practical Helix and Neovim recipes, or Editor config for the unified opener reference.
Use an editor through ACP
Start an ACP-compatible editor integration with:
crabcode acpSee ACP Integration for editor configuration and the current capability matrix.
List available models
Print selectable models in provider/model format:
crabcode models
crabcode models openaiThe optional provider argument is an exact provider ID. This command uses the same local credentials, custom providers, free models, and runtime model catalog as crabcode.
Common commands
Once you're in crabcode: