Complete command reference for OpenClaw - all commands, options, and usage examples
Note: The primary CLI command is openclaw. Both moltbot and clawdbot remain available as compatibility shims for backward compatibility.
Run the onboarding wizard to set up OpenClaw:
openclaw onboard [--install-daemon]
--install-daemon - Install Gateway as system service (systemd on Linux, launchd on macOS)Documentation: The --install-daemon flag installs OpenClaw Gateway as a background service that starts automatically on system boot. This is recommended for production deployments.
Example: openclaw onboard --install-daemon will guide you through initial setup and install the Gateway as a system service.
Start the Gateway:
openclaw gateway [--port PORT] [--bind ADDRESS] [--verbose] [--token TOKEN]
--port - Gateway port (default: 18789)--bind - Bind address (default: 127.0.0.1)--verbose - Verbose logging--token - Authentication tokenSend a message to the agent:
openclaw agent --message "your message" [--thinking LEVEL]
--message - Message to send--thinking - Thinking level (low, medium, high)Link a channel device (shows QR for WhatsApp):
openclaw channels login [channel]
List configured channels:
openclaw channels list
Send a message via a channel:
openclaw message send --target +1234567890 --message "Hello"
List active sessions:
openclaw sessions list
View session conversation history:
openclaw sessions history [session-id]
Interactive configuration:
openclaw configure
Check configuration and diagnose issues:
openclaw doctor [--fix]
--fix - Automatically fix common issues found during diagnosisExample: openclaw doctor --fix will check your configuration and automatically fix issues like permission problems, missing directories, and configuration errors.
Restart the Gateway service:
openclaw gateway restart
This command stops the current Gateway instance and starts it again. Useful when you need to reload configuration or recover from errors.
Check Gateway status and connection:
openclaw gateway status
Shows whether the Gateway is running, the port it's listening on, and connection status.
View Gateway logs:
openclaw gateway logs
Displays recent Gateway log entries for debugging.
List all installed skills:
openclaw skills list
Shows all skills installed in your workspace (~/clawd/skills/).
Check Gateway status:
openclaw status
Check system health:
openclaw health
Update OpenClaw:
openclaw update [--channel CHANNEL]
--channel - Release channel (stable, beta, dev)Restart OpenClaw Gateway (convenience command):
openclaw restart
Shortcut for openclaw gateway restart. Stops and restarts the Gateway service.
Approve a pairing request:
openclaw pairing approve <channel> <code>
List installed skills:
openclaw skills list
Get help for any command:
openclaw --help
openclaw <command> --help