Usage

April 13, 2026 · View on GitHub

← Back to README


CLI Flags

FlagDescription
-m, --model <name>Set the model
--provider <name>Choose provider: ollama, openai, anthropic, qwen
-u, --ollama-url <url>Ollama server URL
-p, --prompt <text>Run a single prompt and exit
-r, --resume <id>Resume a previous session
-c, --continueResume most recent session for this directory
-t, --team <preset>Run with a multi-agent team (review, fullstack, security)
-e, --effort <level>Set effort level: low, medium, high, max
-i, --image <path>Attach an image to the prompt (base64-encoded)
--fastAlias for --effort low
--browserEnable Playwright browser tools
--no-buddyDisable the buddy companion
--cwd <path>Set working directory
--verbosePrint full tool output
--dangerously-skip-permissionsAuto-approve all tool calls
--max-turns <n>Limit agent tool-call turns
-h, --helpShow help
-v, --versionShow version

Subcommands

cmdr serve

Start an HTTP API server.

cmdr serve --port 3120 --host 127.0.0.1 --model qwen3-coder:latest
FlagDefaultDescription
--port <n>3120Server port
--host <addr>127.0.0.1Bind address
-m, --model <name>Model to use

Endpoints:

MethodPathDescription
POST/v1/chatSend a message, get a JSON response
POST/v1/streamSend a message, get SSE stream
GET/healthHealth check (status, model, uptime)
GET/v1/modelsList available models

cmdr daemon

Background file watcher with command execution.

cmdr daemon start --watch src --on-change "npm test"
cmdr daemon status
cmdr daemon stop

Slash Commands

CommandDescription
/helpShow available commands
/model <name>Switch model
/modelsList available Ollama models
/statusShow session info
/contextShow context window usage
/compactManually trigger compaction
/costShow token usage breakdown
/undoRevert the last file change made by the agent
/diffShow git diff
/review [staged|range|path]AI-powered code review
/effort <level>Set effort level (low, medium, high, max)
/fastAlias for /effort low
/image <path>Attach an image to the next prompt
/checkpoint save|list|restore|deleteManage conversation checkpoints
/fork [name]Fork the conversation into a branch
/branchesList conversation branches
/switch <branch>Switch to a branch
/merge <branch>Merge a branch into current
/index [path]Index a directory for RAG search
/search <query>Semantic search over indexed documents
/team [preset]Switch to a multi-agent team
/agentsShow active agents and status
/tasksShow task queue status
/configView configuration
/plugin listList loaded plugins
/mcp listList MCP server connections
/session saveSave current session
/session resume <id>Resume a session
/sessionsList saved sessions
/permissions [mode]View/set permission mode
/initCreate CMDR.md template
/clearClear conversation
/quitExit

Built-in Tools

ToolDescription
bashExecute shell commands with timeout and error handling
file_readRead file contents with offset/limit support
file_writeCreate or overwrite files (auto-creates directories)
file_editSurgical string replacement in files
grepRegex search (uses ripgrep when available)
globFind files by pattern
git_diffShow working tree, staged, or range changes
git_logRecent commit history
git_commitStage and commit files
git_branchCreate, switch, or list branches
web_fetchFetch a URL (SSRF-protected)
ask_userAsk the user a question
thinkExtended reasoning scratchpad (no side effects)
rag_searchSemantic search over indexed documents
browser_openOpen a URL in a browser (requires --browser)
browser_screenshotTake a screenshot of the current page
browser_clickClick an element by CSS selector
browser_fillFill an input field
browser_textExtract text from the page

Effort Levels

Control how much reasoning the model applies:

LevelThinkingTemperatureDescription
lowOff0.3Fast responses, minimal reasoning
mediumOff0.7Balanced (default)
highOn0.7Extended thinking enabled
maxOn1.0Maximum reasoning with higher token budget
cmdr --effort max "design a caching layer"
cmdr --fast "rename x to count"

Vision

Attach images to prompts for multimodal analysis:

# CLI flag
cmdr --image screenshot.png "what's wrong with this UI?"

# In REPL
/image path/to/diagram.png
> explain this architecture

Supported by Ollama (images field), OpenAI (image_url), and Anthropic (image content blocks).


Next: Multi-Agent Teams →