Skip to content

OpenClaw Commands

Comprehensive OpenClaw commands for managing your personal AI agent across multiple messaging channels and platforms.

PlatformCommand
macOS/Linuxcurl -fsSL https://openclaw.ai/install.sh | bash
npm (global)npm install -g openclaw
Updateopenclaw update
Verifyopenclaw --version
CommandDescription
openclaw onboardInteractive setup wizard for gateway, workspace, channels, and skills
openclaw onboard --install-daemonSetup and install gateway as background service
openclaw onboard --flow quickstartQuick setup with sensible defaults
openclaw onboard --flow advancedFull setup with all configuration options
openclaw onboard --non-interactiveHeadless setup (requires explicit flags)
openclaw setup --workspace ~/my-agentInitialize config and workspace directory
openclaw configureInteractive wizard for models, channels, skills, and gateway
openclaw doctorHealth checks and quick fixes for config and gateway
openclaw doctor --deepDeep scan including system services
openclaw reset --scope configReset configuration only
openclaw reset --scope full --yesFull reset of config, credentials, and sessions
CommandDescription
openclaw config get <path>Print a config value
openclaw config set <path> <value>Set a config value (JSON5 or raw string)
openclaw config unset <path>Remove a config value
openclaw configureLaunch interactive configuration wizard
VariablePurpose
OPENCLAW_HOMEOverride default home directory
OPENCLAW_STATE_DIRCustom state directory
OPENCLAW_CONFIG_PATHCustom config file path
CommandDescription
openclaw gateway runRun WebSocket Gateway in foreground
openclaw gateway run --port 18789Run gateway on specific port
openclaw gateway run --bind lanBind to LAN interface
openclaw gateway run --bind tailnetBind via Tailscale
openclaw gateway statusCheck gateway status via RPC
openclaw gateway healthFetch health from running gateway
openclaw gateway installInstall gateway as system service
openclaw gateway startStart installed service
openclaw gateway stopStop running service
openclaw gateway restartRestart service
openclaw gateway uninstallRemove service
openclaw gateway discoverDiscover gateways on network
openclaw logs --followTail gateway logs in real-time
openclaw logs --limit 100 --jsonLast 100 log entries as JSON
CommandDescription
openclaw channels listShow all configured channels and auth profiles
openclaw channels statusCheck gateway reachability and channel health
openclaw channels add --channel telegramAdd Telegram channel
openclaw channels add --channel whatsappAdd WhatsApp channel
openclaw channels add --channel discordAdd Discord channel
openclaw channels add --channel slackAdd Slack channel
openclaw channels add --channel signalAdd Signal channel
openclaw channels add --channel imessageAdd iMessage channel
openclaw channels add --channel msteamsAdd Microsoft Teams channel
openclaw channels remove --channel telegramRemove a channel
openclaw channels login --channel discordInteractive channel login
openclaw channels logout --channel telegramLog out of channel
openclaw channels logs --channel whatsappShow recent channel logs
CommandDescription
openclaw message send --text "Hello"Send a message
openclaw message send --to user123 --text "Hi"Send to specific destination
openclaw message pollPoll for new messages
openclaw message readMark messages as read
openclaw message edit --text "Updated"Edit a sent message
openclaw message deleteDelete a message
openclaw message react --emoji "👍"React to a message
openclaw message reactionsList reactions on a message
openclaw message search --text "query"Search messages
openclaw message pinPin a message
openclaw message unpinUnpin a message
openclaw message pinsList pinned messages
openclaw message thread createCreate a message thread
openclaw message thread listList threads
openclaw message thread replyReply in a thread
CommandDescription
openclaw agent --message "Research this topic"Run single agent turn via gateway
openclaw agent --message "Hello" --thinking highAgent turn with extended thinking
openclaw agent --message "task" --localRun agent locally (embedded)
openclaw agent --message "task" --deliverDeliver response to channel
openclaw agents listList configured agents
openclaw agents add myagent --workspace ~/workAdd isolated agent with workspace
openclaw agents add myagent --model claude-sonnetAdd agent with specific model
openclaw agents delete myagent --forceDelete an agent
CommandDescription
openclaw models listList available models
openclaw models list --allList all models including unavailable
openclaw models list --localList local models only
openclaw models list --provider anthropicFilter by provider
openclaw models statusShow token and auth status
openclaw models status --probeLive probe auth profiles
openclaw models set claude-sonnetSet primary model
openclaw models set-image dall-e-3Set primary image model
openclaw models scanScan and discover available models
openclaw models auth addInteractive auth helper
openclaw models auth setup-token --provider openaiSetup provider token
openclaw models fallbacks add gpt-4oAdd fallback model
openclaw models fallbacks listList fallback models
openclaw models aliases add sonnet claude-sonnetCreate model alias
CommandDescription
openclaw browser startLaunch controlled browser
openclaw browser stopClose browser
openclaw browser statusCheck browser status
openclaw browser open "https://example.com"Open URL in browser
openclaw browser tabsList open tabs
openclaw browser focus <targetId>Focus a specific tab
openclaw browser close <targetId>Close a specific tab
openclaw browser screenshotTake viewport screenshot
openclaw browser screenshot --full-pageFull page screenshot
openclaw browser snapshot --format ariaGet accessibility tree
openclaw browser navigate "https://url"Navigate to URL
openclaw browser click <ref>Click an element
openclaw browser type <ref> "text"Type text into element
openclaw browser press EnterPress a keyboard key
openclaw browser evaluate --fn "document.title"Execute JavaScript
openclaw browser pdfGenerate PDF of current page
openclaw browser profilesList browser profiles
openclaw browser create-profile --name workCreate browser profile
CommandDescription
openclaw node run --host gateway.local --port 18789Run headless node
openclaw node install --host gw.localInstall node as service
openclaw node statusCheck node status
openclaw nodes listList all nodes
openclaw nodes status --connectedShow connected nodes only
openclaw nodes pendingShow pending approval requests
openclaw nodes approve <requestId>Approve node request
openclaw nodes run --node mypc "ls -la"Run command on remote node
openclaw nodes camera snap --node phoneCapture camera image
openclaw nodes screen record --node desktopRecord screen
openclaw nodes location get --node mobileGet device location
CommandDescription
openclaw cron listList all scheduled jobs
openclaw cron statusShow cron system status
openclaw cron add --name "Daily report" --every 24h --message "Generate daily report"Add recurring job
openclaw cron add --name "Morning brief" --at "08:00" --message "Brief me"Add time-based job
openclaw cron add --name "Backup" --cron "0 2 * * *" --system-event "run backup"Add cron expression job
openclaw cron enable <id>Enable a job
openclaw cron disable <id>Disable a job
openclaw cron run <id>Execute job immediately
openclaw cron runs --id <id>Show job run history
openclaw cron edit <id>Modify existing job
openclaw cron rm <id>Delete a job
CommandDescription
openclaw plugins listDiscover available plugins
openclaw plugins info <id>Show plugin details
openclaw plugins install <path>Install plugin from path or npm
openclaw plugins enable <id>Enable a plugin
openclaw plugins disable <id>Disable a plugin
openclaw plugins doctorReport plugin load errors
openclaw skills listList available skills
openclaw skills list --eligibleShow only ready skills
openclaw skills info <name>Show skill details
openclaw skills checkReadiness summary for all skills
CommandDescription
openclaw security auditAudit config and local state
openclaw security audit --deepLive gateway security probe
openclaw security audit --fixAuto-tighten safe defaults
openclaw approvals getView current approval settings
openclaw approvals setConfigure approval workflows
openclaw approvals allowlist addAdd to approval allowlist
openclaw pairing list telegramList pending pairing requests
openclaw pairing approve telegram <code>Approve DM pairing
CommandDescription
openclaw memory statusShow memory index stats
openclaw memory indexReindex memory files
openclaw memory search "query"Semantic search over memory
openclaw sessionsList stored conversation sessions
openclaw sessions --active 60Show sessions active in last 60 min
openclaw statusShow linked session health
openclaw status --all --deepFull diagnosis with channel probes
# Install and onboard
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon

# Add Telegram channel
openclaw channels add --channel telegram

# Verify everything works
openclaw doctor
openclaw status --all
# Set preferred model
openclaw models set claude-sonnet

# Add fallback
openclaw models fallbacks add gpt-4o

# Run agent turn
openclaw agent --message "Summarize my emails" --thinking high
# Create daily job at 8 AM
openclaw cron add \
  --name "Morning briefing" \
  --at "08:00" \
  --message "Give me a summary of today's tasks and any urgent notifications"

# Verify it's scheduled
openclaw cron list
# List connected nodes
openclaw nodes status --connected

# Run command on remote machine
openclaw nodes run --node "desktop" "df -h"

# Take screenshot of remote screen
openclaw nodes screen record --node "desktop" --duration 5s
  • Use --install-daemon during onboarding to run gateway as a background service
  • Run openclaw doctor regularly to catch configuration issues early
  • Set model fallbacks to ensure availability when primary model is rate-limited
  • Use --thinking high for complex agent tasks requiring deep reasoning
  • Create browser profiles to isolate browsing contexts for different tasks
  • Use --json flag when scripting or piping output to other tools
  • Run security audits with --deep flag before exposing gateway to network
IssueSolution
Gateway won’t startRun openclaw doctor --deep to diagnose
Channel disconnectedCheck with openclaw channels status then re-login
Model auth failedRun openclaw models status --probe to test tokens
Plugin load errorRun openclaw plugins doctor for diagnostics
Node not connectingVerify with openclaw nodes pending and approve if needed
Slow responsesCheck openclaw status --usage for rate limits
Config corruptionUse openclaw reset --scope config to reset safely