CLI Cheatsheet

Complete reference for all openclaw CLI commands, organized by function.

Installation & Setup

CommandDescription
openclaw onboardRun the interactive setup wizard
openclaw onboard --install-daemonSetup wizard + install auto-start daemon
openclaw onboard --skip-channelSkip channel configuration step
openclaw --versionShow current version
openclaw --helpShow help information
openclaw updateUpdate to the latest version

Gateway Management

The Gateway is the core process that connects all channels and agents.

CommandDescription
openclaw gateway startStart the gateway
openclaw gateway stopStop the gateway
openclaw gateway restartRestart the gateway (required after config changes)
openclaw gateway statusShow gateway running status
openclaw gateway --port 19000Start on a specific port (default: 18789)
openclaw dashboardOpen the management dashboard in browser

Model Management

CommandDescription
openclaw models listList currently available models
openclaw models list --allList all models across all providers
openclaw models list --provider aigocodeList models for a specific provider
openclaw models set aigocode/claude-opus-4-6Switch the default model
openclaw models showShow current model details

Channel Management

CommandDescription
openclaw channels listList all configured channels
openclaw channels statusShow connection status for each channel
openclaw pairing list telegramView pending Telegram pairing requests
openclaw pairing approve telegram <code>Approve a Telegram pairing request
openclaw pairing revoke telegram <userId>Revoke a pairing
openclaw pairing list discordView pending Discord pairing requests

Agent Management

CommandDescription
openclaw agents listList all agents
openclaw agents show <name>Show a specific agent's configuration
openclaw agents reloadReload agent config without full restart
openclaw context clear <agentName>Clear a specific agent's context

Diagnostic Tools

CommandDescription
openclaw doctorFull diagnosis (Node version, config, network, etc.)
openclaw doctor --fixDiagnose and attempt auto-repair
openclaw statusSystem status (token usage, uptime, etc.)
openclaw logsShow recent logs
openclaw logs --followStream logs in real time (tail -f mode)
openclaw logs --lines 100Show last 100 lines of logs
openclaw logs --level errorShow error logs only

Configuration Management

CommandDescription
openclaw config showDisplay current effective config (including defaults)
openclaw config editOpen config file in your default editor
openclaw config validateValidate config file syntax
openclaw config resetReset config to factory defaults

Common Workflows

Post-install verification

openclaw --version
openclaw doctor
openclaw gateway status
openclaw dashboard

After changing config

openclaw config validate   # validate first to catch errors
openclaw gateway restart
openclaw status

Diagnose channel issues

openclaw channels status
openclaw logs --follow
openclaw doctor

Full reset (use with caution)

openclaw gateway stop
openclaw config reset
openclaw onboard

Config File Locations

~/.openclaw/openclaw.json    # Main config file
~/.openclaw/agents/          # Agent config directory
~/.openclaw/logs/            # Log directory

Tip: All commands support --help, e.g. openclaw gateway --help.