What cron unlocks
The difference between a chatbot and a digital worker is scheduling. A chatbot answers when you ask. A worker runs the 7am digest, checks the price at market close, and posts the recap while you're asleep. Cron is what turns OpenClaw from the first into the second. Most of the skill market — daily summaries, price monitors, social posting — is just cron plus a task description.
Cron syntax in 30 seconds
A cron expression is five fields. Read it left to right:
minute hour day-of-month month day-of-week
0 9 * * *
That reads "at minute 0 of hour 9, every day, every month, every weekday" — in other words, 9:00am daily. A * means "every". A number means "at that exact value". Commas list values, so 9,18 in the hour field means 9am and 6pm.
Working examples
Here are the patterns I actually use. Substitute your own task name after --task.
# every morning at 9:00
0 9 * * *
# twice a day, 9am and 6pm
0 9,18 * * *
# Monday at 9:00 (0 or 7 both mean Sunday)
0 9 * * 1
# every 30 minutes during market hours, Mon-Fri
*/30 9-16 * * 1-5
For a scheduled task, the general shape is to install the cron capability first, then register the job with a schedule and a task name. The command spelling varies by release, so I'd rather point you at the current cron docs than paste something stale:
# install the cron/scheduler capability (name varies by release)
# then register a job with a schedule and task name, e.g.:
openclaw schedule add --cron "0 9 * * *" --task "morning-digest"
The task itself is usually a natural-language instruction: "Summarize the last 24 hours of messages and send the digest to Telegram." You don't write code for most of this; you describe the job and let the agent do it.
The timezone trap
This one wasted an afternoon for me. The schedule runs in whatever timezone the host is set to, which on a fresh VPS is often UTC. So a "9am" job fires at 5am your time and you sit there confused about why the digest is early and empty.
Check it before you trust a schedule:
date
timedatectl | grep "Time zone"
If it says UTC and you want local time, set it with timedatectl set-timezone. A scheduled job that runs at the wrong hour is worse than one that doesn't run, because it looks like it's working while quietly doing nothing useful.
And a reminder that applies to anything automated: if the job can post or send on your behalf, make sure it's not firing into a public channel without a review step. Once you hand the agent a schedule, you're trusting it to act when you're not looking. Keep the permissions tight.