--- 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. - `--json` (and `--plain` where supported) disables styling for clean output. - Long-running commands show a progress indicator (OSC 9;4 when supported). ## Command tree ``` clawdbot [--dev] [--profile ] setup onboard configure (alias: config) update doctor login logout providers list status add remove send poll agent agents list add delete status health sessions gateway call health status wake send agent stop restart gateway-daemon 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 canvas snapshot present hide navigate eval a2ui push|reset 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 telegram 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. ### `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). ### `update` Audit and modernize the local configuration. ### `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. ## Auth + provider helpers ### `login` Link a WhatsApp Web account via QR. Options: - `--verbose` - `--provider ` (default `whatsapp`) - `--account ` ### `logout` Clear cached WhatsApp Web credentials. Options: - `--provider ` - `--account ` ### `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. Common options: - `--provider `: `whatsapp|telegram|discord|slack|signal|imessage` - `--account `: provider account id (default `default`) - `--name