CLI Reference
OpenClaw provides a comprehensive command-line interface for managing your AI assistant.
Basic Usage
bash
openclaw <command> [options]Global Options
| Option | Description |
|---|---|
--help, -h | Show help for a command |
--version, -v | Show version number |
--config | Specify config file path |
--verbose | Enable verbose output |
Command Categories
Setup & Configuration
| Command | Description |
|---|---|
| setup | Initial setup wizard |
| onboard | Guided onboarding process |
| doctor | Diagnose configuration issues |
Gateway Management
| Command | Description |
|---|---|
| gateway | Start/stop the gateway |
| status | Show system status |
| health | Health check endpoint |
| logs | View gateway logs |
Model Configuration
| Command | Description |
|---|---|
| models | Manage AI models and API keys |
Channel Management
| Command | Description |
|---|---|
| channels | Manage messaging channels |
Session & Agent Management
| Command | Description |
|---|---|
| sessions | Manage conversation sessions |
| agent | Configure default agent |
| agents | Manage multiple agents |
Tools & Features
| Command | Description |
|---|---|
| browser | Browser automation |
| cron | Scheduled tasks |
| memory | Memory management |
| skills | Agent skills |
| nodes | Companion nodes |
System Management
| Command | Description |
|---|---|
| update | Update OpenClaw |
| reset | Reset configuration |
| uninstall | Uninstall OpenClaw |
Quick Examples
bash
# Start the gateway
openclaw gateway start
# Check status
openclaw status
# Add a new model
openclaw models add anthropic
# Set up WhatsApp
openclaw channels setup whatsapp
# View logs
openclaw logs -f