OpenClaw LogoOpenClaw AI

Cron & Heartbeat

Set precise Cron tasks or periodic Heartbeat checks for a proactive AI assistant.

1

Setup & Installation

Cron: `moltbot cron add --cron '0 7 * * *' --message 'Morning Brief'`

Heartbeat: Add `heartbeat: { every: '30m' }` to config

Checklist: Create `HEARTBEAT.md` in workspace listing checks

Restart: `moltbot gateway restart`

2

Command Examples

Send schedule and weather brief at 7 AM daily

Check email every 30 mins and alert on urgent items

Remind me about the meeting in 2 hours

Important Notes

  • Gateway must stay running (VPS/Mac Mini recommended)
  • Frequent heartbeats consume tokens, 30-60 min interval recommended
  • System stays silent on HEARTBEAT_OK to avoid spam

Want to learn more?

Join the OpenClaw community to share advanced scripts and automation workflows.