CLI Reference
Complete reference for every Rezos command. All commands accept --help for inline documentation.
rezos init
initInitialize a Rezos project in the current directory. Creates .rezosignore, validates your API key, and optionally runs rezos learn to generate an initial SKILL.md.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --skip-learn | Skip initial skill pack generation | false |
| --provider | Default provider: anthropic | openai | deepseek | anthropic |
Example
rezos chat
chatStart an interactive session. Every file operation goes through SWD. Budget tracking runs in real time. Session state is saved for resumption.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --model | LLM model to use | claude-opus-4-7 |
| --budget | Max token budget for the session | 500000 |
| --turns | Max turns before graceful save | 25 |
| --dry-run | Preview file ops without writing | false |
| --effort | Thinking effort: high | medium | low | high |
| --resume | Resume a previous session by ID | — |
Example
rezos run
runOne-shot prompt with the same SWD verification pipeline as chat. Ideal for scripting and CI use cases.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --model | LLM model to use | claude-opus-4-7 |
| --dry-run | Preview without writing | false |
| --json | Output receipt as JSON | false |
Example
rezos verify
verifyScan MEMORY.md against the actual filesystem to detect drift. CI-safe — exits with code 1 if drift is found. No API key required.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --strict | Exit non-zero on any unlogged file change | false |
| --report | Output a JSON drift report | false |
Example
rezos swd apply
swdRoute an external agent's file operations through SWD. Accepts FILE_ACTION JSON blocks via stdin. Enables any agent (Claude Code, Cursor, etc.) to benefit from Rezos verification.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --stdin | Read FILE_ACTION blocks from stdin | — |
| --json | Parse structured JSON input | false |
| --agent-id | Identity tag for the receipt | external |
Example
rezos mcp
mcpStart the Rezos MCP server, exposing SWD tools over the Model Context Protocol (stdio transport). Any MCP-compatible host can route file actions through Rezos.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --port | TCP port for HTTP transport | stdio |
| --allow-risky | Enable delete and shell-surface operations | false |
Example
rezos learn
learnAnalyze the current repository structure and generate a project-local SKILL.md. The model reads your code, package.json, and git history to infer conventions.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --depth | Analysis depth: shallow | standard | deep | standard |
| --output | Output path for SKILL.md | .rezos/skills/project.md |
rezos stats
statsView token usage, cost breakdown, and drift statistics across all sessions.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --since | Filter from date (YYYY-MM-DD) | — |
| --provider | Filter by provider | all |
rezos receipts
receiptsList and inspect SWD trust receipts. Each receipt contains the session ID, touched files, hashes, provider, and cost.
Usage
Flags
| Flag | Description | Default |
|---|---|---|
| --limit | Number of receipts to show | 20 |
| --json | Output as JSON | false |
| --drift-only | Only show receipts with drift | false |