# CLI Reference
| `whetstone` | Start Claude Code through Headroom (waits for proxy, then `headroom wrap claude`) |
| `whetstone setup [--full] [--headroom-extras EXTRAS]` | Install/configure all components (auto-detects v2 and hands off to `migrate`) |
| `whetstone uninstall` | Interactive removal of components |
| `whetstone claude [args...]` | Run Claude Code through Headroom |
| `whetstone code [args...]` | Alias for `claude` |
| `whetstone proxy [args...]` | Run `headroom proxy` |
| `whetstone rtk [args...]` | Run RTK |
| `whetstone doctor` | Inspect installed tool versions, `~/.claude/settings.json` hooks, and the per-project manifest |
| `whetstone dashboard` | TUI dashboard for installed tool versions vs. pinned floors |
| `whetstone migrate [--dry-run] [-y] [--rollback ID]` | Migrate a v2 install to v3 (or roll back) — see [Migration Guide](migration.md) |
| `whetstone version` | Print version |
| `whetstone stats` | Token-savings summary from RTK + Headroom stats endpoints |
| `whetstone update [--full]` | Check for newer release; `--full` force-refreshes Headroom/RTK and bundled assets |
| `whetstone release patch\|minor\|major\|set X.Y.Z` | Verify, bump version, and open a release PR |
| `whetstone release-publish ...` | **Deprecated** — use `whetstone release` |
| `whetstone db <subcommand>` | Session database operations (init / add-session / add-insight / search / get-sessions / get-insights / stats) |
## Headroom Extras
`--headroom-extras` controls which Headroom optional packages are installed:
| `all` (default) | `headroom-ai[proxy,code,mcp]` |
| `none` | `headroom-ai` (base only) |
| `proxy,code` | `headroom-ai[proxy,code]` (custom) |
## Versioning & Updates
Whetstone uses a single `VERSION` file as the source of truth.
```bash
whetstone version # Current version
whetstone update # Check for newer release
whetstone update --full # Force-upgrade Headroom/RTK
```
For contributors:
```bash
just release-check # Release verification gate
just release patch # Verify, bump version, and open release PR
```
## Headroom Proxy Flags
```
headroom proxy [OPTIONS]
--host HOST Network interface (default: 127.0.0.1)
--port PORT Listen port (default: 8787)
--budget AMOUNT Daily USD spending limit
--log-file PATH JSONL request log
--no-optimize Passthrough mode (no compression)
--no-cache Disable response caching
--llmlingua Enable ML-based compression (~2GB download)
--backend bedrock|vertex_ai|azure|openrouter (default: anthropic)
--region Cloud region (for bedrock/vertex_ai)
```
## RTK Quick Reference
> **Heads up — RTK is not always a net win.** The PreToolUse hook only fires on
> **Bash** tool calls; Claude Code's native `Read`, `Grep`, `Glob`, and file-edit
> tools bypass it. Compression can also strip context the model needed — RTK's own
> tracker has logged a ~18% net cost-increase case. Run `rtk gain` for cumulative
> savings, `rtk discover` for missed opportunities, and consider RTK's audit mode
> when a particular rewrite feels suspect.
```bash
rtk gain rtk gain --graph rtk gain --history rtk gain --daily rtk discover rtk session
rtk ls . rtk read file.rs rtk grep "pattern" . rtk find "*.rs" .
rtk git status rtk git log -n 10 rtk git diff
rtk test cargo test rtk pytest rtk vitest run rtk go test
rtk cargo build rtk tsc rtk lint ```