Coderrr

CLI Reference

Every command, flag, and exit code.

Commands

CommandWhat it does
coderrrStart an interactive session in the current directory
coderrr run "<request>"Plan the request, show the plan, and implement it once approved
coderrr runNo request given — same as a bare coderrr
coderrr configInteractively set provider, model, and API key
coderrr config showPrint the current configuration, key masked
coderrr config clearDelete the config file and any keyring entries
coderrr spec listList specs in this project with task progress
coderrr spec show [id]Print a spec's artifacts. Accepts a name, slug, or number; defaults to the latest.
coderrr skills search "<query>"Search the skill registry
coderrr mcp add <name> <url>Connect an MCP server. After -- the argument is a command run over stdio instead.
coderrr mcp listConfigured MCP servers, and which are signed in
coderrr mcp test <name>Connect to a server and list its tools
coderrr mcp login <name>Sign in to a server that uses OAuth. --no-browser prints the URL instead.
coderrr mcp logout <name>Discard stored credentials for a server
coderrr mcp enable <name>Enable a server, or --off to disable it without removing the config
coderrr mcp reset <name>Forget the "always allow" answers for a server
coderrr mcp remove <name>Remove a server and its remembered approvals
coderrr doctorCheck the local environment
coderrr versionPrint the version

It is coderrr version, not --version. There is no --version flag.

Options

coderrr and coderrr run take all three. The spec and doctor commands take --dir only.

OptionWhat it doesDefault
-d, --dir <path>Workspace root, and the containment boundaryCurrent directory
-m, --model <name>Override the configured model for this runFrom config
-y, --yesSkip the approval prompt. A spec is still written and must contain tasks.Off

Exit codes

CodeMeaning
0The run succeeded
1The run failed, no plan was produced, a provider is misconfigured, or the target directory does not exist
130Interrupted with Ctrl-C. Nothing further was modified.

Declining a plan is not a failure — the exit code reflects whether planning itself succeeded.

Session slash commands

CommandWhat it does
/helpThe command list
/specShow the most recent spec
/specsList every spec in this project
/model [name]Show or switch the model for this session (not saved)
/autoToggle skipping the approval prompt
/mcpList MCP servers, add or remove one
/mcp add <url>Connect a server straight away. In effect from your next request — no restart.
/mcp login <name>Sign in to a server that uses OAuth (/mcp logout to undo)
/configProvider, model, endpoint, masked key, sandbox, verify mode
/doctorEnvironment check
/clearClear the screen
/exitLeave the session (aliases: /quit, /q, or Ctrl-D)

Environment variables

VariableProvider
ANTHROPIC_API_KEYAnthropic
OPENAI_API_KEYOpenAI
GOOGLE_API_KEYGoogle Gemini
OPENROUTER_API_KEYOpenRouter
OLLAMA_API_KEYOllama-hosted models

These are checked before the OS keyring and before ~/.coderrr/config.toml. See Configuration.

Agent tools

The tools the model can call. Which ones exist depends on the mode: the write tools are absent from the tool list during planning and appear only after you approve.

ToolClassWhat it does
read_filereadRead a file, optionally a line range
list_dirreadList a directory
treereadDirectory tree
grepreadSearch file contents
write_filewriteCreate or overwrite a file
edit_filewriteReplace an exact, unique string. No fuzzy fallbacks — the model reads before editing.
move_filewriteMove or rename
delete_filewriteDelete a file
create_specsystemStart a new spec directory
write_specsystemWrite requirements, design, or tasks
read_specsystemRe-read the spec mid-run
update_tasksystemMark a task in_progress, done, or blocked
search_skillssystemQuery the skill registry
load_skillsystemFetch a skill's guidance
run_in_sandboxsystemRun a command in the sandbox — never against your working tree
ask_reviewsystemAsk you a question instead of guessing
finishsystemDeclare the phase complete
mcp__<server>__<tool>mcpOne tool from a connected MCP server. Present in both modes, and asks the first time it is used.

There is no tool that runs commands against your working tree. See Sandbox. Bridged MCP tools are the one class that is present during planning as well as execution — see MCP Servers.

Files on disk

PathWhat it holds
~/.coderrr/config.tomlYour settings. Created mode 0600.
~/.coderrr/credentials.jsonMCP OAuth tokens, when no OS keyring is available. Mode 0600.
~/.coderrr/historyInteractive session history
.coderrr/specs/NNN-slug/requirements.md, design.md, tasks.md — meant to be committed
.coderrr/cache/Transient. Gitignored automatically.
.coderrr/session/Transient. Gitignored automatically.

Examples

# interactive session
coderrr

# one-shot
coderrr run "add user authentication with JWT"

# one-off model override
coderrr run "tidy the imports" -m gpt-4o-mini

# a different project
coderrr run "fix the flaky test" -d ~/code/api

# no approval prompt
coderrr run "bump the changelog" --yes

# inspect what happened
coderrr spec list
coderrr spec show 003

# connect an MCP server, then check it
coderrr mcp add figma http://127.0.0.1:3845/mcp
coderrr mcp test figma

# environment check
coderrr doctor

Removed in v2

v1Now
coderrr startcoderrr
coderrr exec "<request>"coderrr run "<request>"
coderrr analyze "<request>"coderrr run "<request>", then decline the plan
coderrr config --show / --clearcoderrr config show / config clear
coderrr rollbackgit revert — v2 never auto-commits
coderrr market / install / skillscoderrr skills search
-b, --backend <url>Gone. There is no backend.
--auto-commitGone. Version control is yours.
--no-auto-test, --no-auto-retry, --max-retriesGone. See [agent] in the config.

Full detail in Migrating from v1.