--- summary: "CLI reference for clawdbot commands, subcommands, and options" read_when: - Adding or modifying CLI commands or options - Documenting new command surfaces --- # CLI reference This page mirrors `src/cli/*` and is the source of truth for CLI behavior. If you change the CLI code, update this doc. ## Global flags - `--dev`: isolate state under `~/.clawdbot-dev` and shift default ports. - `--profile `: isolate state under `~/.clawdbot-`. - `-V`, `--version`, `-v`: print version and exit. ## Output styling - ANSI colors and progress indicators only render in TTY sessions. - OSC-8 hyperlinks render as clickable links in supported terminals; otherwise we fall back to plain URLs. - `--json` (and `--plain` where supported) disables styling for clean output. - Long-running commands show a progress indicator (OSC 9;4 when supported). ## Color palette Clawdbot uses a lobster palette for CLI output. Source of truth: `src/terminal/theme.ts`. - `accent` (#FF5A2D): headings, provider labels, primary highlights. - `accentBright` (#FF7A3D): command names, emphasis. - `accentDim` (#D14A22): secondary highlight text. - `info` (#FF8A5B): informational values. - `success` (#2FBF71): success states. - `warn` (#FFB020): warnings, fallbacks, attention. - `error` (#E23D2D): errors, failures. - `muted` (#8B7F77): de-emphasis, metadata. ## Command tree ``` clawdbot [--dev] [--profile ] setup onboard configure (alias: config) doctor providers list status add remove login logout skills list info check send poll agent agents list add delete status health sessions gateway call health status models list status set set-image aliases list|add|remove fallbacks list|add|remove|clear image-fallbacks list|add|remove|clear scan wake cron status list add edit rm enable disable runs run nodes status describe list pending approve reject rename invoke run notify camera list|snap|clip canvas snapshot screen record location get browser status start stop reset-profile tabs open focus close profiles create-profile delete-profile screenshot snapshot navigate resize click type press hover drag select upload fill dialog wait evaluate console pdf hooks gmail setup|run pairing list approve docs dns setup tui ``` ## Setup + onboarding ### `setup` Initialize config + workspace. Options: - `--workspace `: agent workspace path (default `~/clawd`). - `--wizard`: run the onboarding wizard. - `--non-interactive`: run wizard without prompts. - `--mode `: wizard mode. - `--remote-url `: remote Gateway URL. - `--remote-token `: remote Gateway token. Wizard auto-runs when any wizard flags are present (`--non-interactive`, `--mode`, `--remote-url`, `--remote-token`). ### `onboard` Interactive wizard to set up gateway, workspace, and skills. Options: - `--workspace ` - `--non-interactive` - `--mode ` - `--auth-choice ` - `--anthropic-api-key ` - `--gateway-port ` - `--gateway-bind ` - `--gateway-auth ` - `--gateway-token ` - `--gateway-password ` - `--remote-url ` - `--remote-token ` - `--tailscale ` - `--tailscale-reset-on-exit` - `--install-daemon` - `--daemon-runtime ` - `--skip-skills` - `--skip-health` - `--node-manager ` - `--json` ### `configure` / `config` Interactive configuration wizard (models, providers, skills, gateway). ### `doctor` Health checks + quick fixes (config + gateway + legacy services). Options: - `--no-workspace-suggestions`: disable workspace memory hints. - `--yes`: accept defaults without prompting (headless). - `--non-interactive`: skip prompts; apply safe migrations only. - `--deep`: scan system services for extra gateway installs. ## Provider helpers ### `providers` Manage chat provider accounts (WhatsApp/Telegram/Discord/Slack/Signal/iMessage). Subcommands: - `providers list`: show configured chat providers and auth profiles (Claude CLI + Codex CLI sync included). - `providers status`: check gateway reachability and provider health (`--probe` to verify credentials; use `status --deep` for local-only probes). - `providers add`: wizard-style setup when no flags are passed; flags switch to non-interactive mode. - `providers remove`: disable by default; pass `--delete` to remove config entries without prompts. - `providers login`: interactive provider login (WhatsApp Web only). - `providers logout`: log out of a provider session (WhatsApp Web only). Common options: - `--provider `: `whatsapp|telegram|discord|slack|signal|imessage` - `--account `: provider account id (default `default`) - `--name