OpenClaw CLI & Automation
This chapter rounds up OpenClaw's CLI commands, the Dashboard console, and its signature autonomous operation — the Heartbeat, Webhooks, and Cron.
CLI Cheat Sheet
Commands evolve across versions; defer to
openclaw --helpand the official repo.
The Dashboard Console
The Dashboard lets you chat directly, view sessions, manage channels and skills, adjust tool policies, and more.
The control plane listens on WebSocket :18789. Again: bind local only, never expose it publicly, and keep it updated (see Security).
OpenClaw can also be accessed via the CLI, a macOS desktop app, and iOS/Android nodes.
Heartbeat: Autonomous Operation
This is OpenClaw's signature capability. The Heartbeat scheduler "wakes" the agent at a configurable interval so it can work on its own without you prompting.
- Default interval ~30 minutes; with Anthropic OAuth it's roughly hourly
HEARTBEAT.mdis the "recurring checklist" you write for the agent
A HEARTBEAT.md Example
Other Triggers: Webhooks & Cron
Beyond the heartbeat, OpenClaw's agent loop can be invoked by external events:
Balancing Cost and Frequency
Autonomy is powerful, but more frequent heartbeats and pricier models grow the bill faster:
Recommendations:
- Set the heartbeat interval to what tasks actually need — don't crank it too short
- Use cheap/local models for routine light tasks, falling back to a strong model when complex (see Model Configuration)
- Set spending alerts at the provider level to catch abnormal growth early
Practical Tips
- Keep
HEARTBEAT.mdshort and focused — list only what truly needs watching - Use Webhooks for real-time triggers, Cron for fixed times, Heartbeat for routine self-checks
- Autonomous tasks are still bound by tool policies — high-risk actions still need approval, so it can't cause trouble unattended
- Before going autonomous, manually walk through the whole flow in the Dashboard
Next Steps
- Use Cases — real-world plays for autonomy
- Model Configuration — control autonomy cost
- Permissions & Security — safety under unattended operation