OpenClaw Cheat Sheet
Quick reference for installation, core commands, workspace structure & slash commands
Quick Start
Install + First Run
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw onboard --install-daemon
openclaw doctor
openclaw status
openclaw health
openclaw dashboardDaily Operations
openclaw doctor
openclaw status --all
openclaw logs --followMost Used Slash Commands
/status
/new
/compact
/model
/stop
/thinkInstallation
One-line Install (Recommended)
macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bashWindows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iexIf you skipped onboarding
openclaw onboard --install-daemonManual Install (Node.js)
npm or pnpm
npm install -g openclaw@latest
# or
pnpm add -g openclaw@latest
openclaw onboard --install-daemonFix sharp build errors
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latestRequirements
- Node >= 22
- macOS, Linux, or Windows (WSL2)
Gateway
Run Gateway
openclaw gateway --port 18789Manage as System Service
openclaw gateway service status
openclaw gateway service install
openclaw gateway service start
openclaw gateway service stop
openclaw gateway service restartGateway Logs
openclaw logs --follow
openclaw logs --limit 200
openclaw logs --plain
openclaw logs --jsonChannels
WhatsApp Login
openclaw channels login
openclaw channels logoutAdd Channel Account
openclaw channels add --channel telegram --account alerts --name "Alerts Bot" --token $TELEGRAM_BOT_TOKEN
openclaw channels add --channel discord --account work --name "Work Bot" --token $DISCORD_BOT_TOKENChannel Status
openclaw channels status
openclaw channels status --probeDiagnostics
Health Check
openclaw doctor
openclaw status
openclaw health --json
openclaw dashboardDeep Diagnostics
openclaw doctor --deep
openclaw status --all
openclaw status --deepModels & Auth
List & Switch Models
openclaw models list
openclaw models status
openclaw models set <model>Authentication
openclaw models auth add
openclaw models auth setup-token --provider anthropic
openclaw models auth paste-token --provider <provider>Skills & Plugins
Skills
openclaw skills list
openclaw skills info <name>
openclaw skills checkPlugins
openclaw plugins list
openclaw plugins install <path|.tgz|npm-spec>
openclaw plugins enable <id>
openclaw plugins disable <id>
openclaw plugins doctorMemory
openclaw memory status
openclaw memory index
openclaw memory search "<query>"Browser
Browser Automation
openclaw browser status
openclaw browser start
openclaw browser tabs
openclaw browser open https://example.com
openclaw browser snapshot
openclaw browser screenshotSlash Commands
Commands are processed by the Gateway; most should be sent as a standalone message.
Commands
| Show status, provider quota | |
| Show identity (alias: /id) | |
| New session (/new [model]) | |
| Compress context | |
| Switch/list models | |
| Abort current run | |
| Restart (needs commands.restart: true) |
Directives (Session Toggles)
| Thinking intensity | |
| Verbose output | |
| Reasoning messages | |
| Elevated mode | |
| Tool execution routing |
Bash (disabled by default)
| Run host shell (needs commands.bash: true) | |
| View/stop background bash tasks |
Workspace
The workspace is the agent's "home" — read/written as context. The state directory holds config, credentials, sessions, and indexes.
Default Locations
| State root | |
| Default workspace | |
| Multi-profile | |
| Dev isolation |
Key Workspace Files
AGENTS.md | High-level agent directives (behavior/goals) |
SOUL.md | Persona (identity, tone, boundaries) |
USER.md | Your preferences/background |
IDENTITY.md | Identity info (written on first boot) |
TOOLS.md | Environment notes for current machine/skills |
HEARTBEAT.md | Heartbeat task instructions (active mode) |
BOOTSTRAP.md | First-run Q&A; deleted after setup |
memory/YYYY-MM-DD.md | Daily memory (append-only); loads today+yesterday |
MEMORY.md | Long-term memory (optional; private main session only) |
openclaw setupPath Reference
| Main config (state) | |
| Credentials (state) | |
| Sessions (state) | |
| Logs (default) | |
| Memory index (SQLite) | |
| Cron jobs |
Cron Jobs
Jobs stored in ~/.openclaw/cron/jobs.json, persist across Gateway restarts. Runs in 'main' (system event) or 'isolated' (separate session).
Manage Cron Jobs
openclaw cron list
openclaw cron status
openclaw cron add --name "Reminder" --at "20m" --session main --system-event "Reminder: ..." --wake now
openclaw cron run <jobId> --force
openclaw cron runs --id <jobId>Troubleshooting
No private reply?
Usually a pairing/allowlist issue
openclaw pairing list whatsapp
openclaw pairing approve whatsapp <code> --notifySilent in group chat?
Check routing.groupChat.mentionPatterns and requireMention config. Send /status to test.
Gateway down?
Run deep diagnostics
openclaw doctor --deep
openclaw status --deepMemory search broken?
Force reindex
openclaw memory index
openclaw memory status