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:
curl -fsSL https://github.com/acosmi/crabcode/releases/latest/download/install.sh | shcurl -fsSL https://github.com/acosmi/crabcode/releases/latest/download/install.sh | shMainland China mirror:
curl -fsSL https://updates.acosmi.com/crabcode/install.sh | shcurl -fsSL https://updates.acosmi.com/crabcode/install.sh | shWindows PowerShell:
irm https://github.com/acosmi/crabcode/releases/latest/download/install.ps1 | iexirm https://github.com/acosmi/crabcode/releases/latest/download/install.ps1 | iexRead 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
wrok --version
wrok doctor
cd /absolute/path/to/project
wrokwrok --version
wrok doctor
cd /absolute/path/to/project
wrokv1.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.