Docs
Refer a friend. Get a weekly-quota reset.Friend signs up and uses it → +1 reset (valid 30 days) · up to 10% cash back on their spend.
+1 resetGenerate link

Install and start the CLI

Install the wrok Code CLI, verify version/PATH and start your first task.

Choose the correct product

This is the CLI shipped with wrok Code, formerly Crab Code, from the acosmi/crabcode Release. The separately listed open-source wrok Code TUI has different installers and releases.

Install

macOS/Linux:

bash
curl -fsSL https://github.com/acosmi/crabcode/releases/latest/download/install.sh | sh
curl -fsSL https://github.com/acosmi/crabcode/releases/latest/download/install.sh | sh

Mainland China mirror:

bash
curl -fsSL https://updates.acosmi.com/crabcode/install.sh | sh
curl -fsSL https://updates.acosmi.com/crabcode/install.sh | sh

Windows PowerShell:

powershell
irm https://github.com/acosmi/crabcode/releases/latest/download/install.ps1 | iex
irm https://github.com/acosmi/crabcode/releases/latest/download/install.ps1 | iex

Read installation output and verify platform, location and integrity checks. The Unix script uses ${CRABCODE_HOME:-$HOME/.crabcode}/bin; Windows uses CRABCODE_HOME or %LOCALAPPDATA%\CrabCode.

Verify and run

bash
wrok --version
wrok doctor
cd /absolute/path/to/project
wrok
wrok --version
wrok doctor
cd /absolute/path/to/project
wrok

v1.1.32 adds wrok and wrokcode; crabcode remains valid. If aliases are unavailable or another program owns the name, inspect crabcode --version and its path instead of overwriting another executable.

Complete account setup. Start with a read-only request such as “Read the README and explain how to run this project; do not edit files yet.”

Useful commands

Use /help for enabled commands, /model and /effort for model choices, /init and /memory for context, /resume and /rename for sessions, /tasks for background work, /permissions and /sandbox for authorization, and /doctor or /release-notes for maintenance. /exit exits.

Upgrade

macOS CLI 1.1.31 and earlier must rerun the official installer once to reach 1.1.32. Subsequent updates work normally. Use crabcode update or the installed /update command. Legacy-named configuration directories are retained; renaming them is not an upgrade step.

See CLI reference and installation maintenance.