2026-01-15 06:12:54 +00:00
|
|
|
|
---
|
2026-01-30 03:15:10 +01:00
|
|
|
|
summary: "CLI reference for `openclaw cron` (schedule and run background jobs)"
|
2026-01-15 06:12:54 +00:00
|
|
|
|
read_when:
|
|
|
|
|
|
- You want scheduled jobs and wakeups
|
|
|
|
|
|
- You’re debugging cron execution and logs
|
2026-01-31 16:04:03 -05:00
|
|
|
|
title: "cron"
|
2026-01-15 06:12:54 +00:00
|
|
|
|
---
|
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
|
# `openclaw cron`
|
2026-01-15 06:12:54 +00:00
|
|
|
|
|
|
|
|
|
|
Manage cron jobs for the Gateway scheduler.
|
|
|
|
|
|
|
|
|
|
|
|
Related:
|
2026-01-31 21:13:13 +09:00
|
|
|
|
|
2026-01-15 06:12:54 +00:00
|
|
|
|
- Cron jobs: [Cron jobs](/automation/cron-jobs)
|
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
|
Tip: run `openclaw cron --help` for the full command surface.
|
2026-01-15 06:12:54 +00:00
|
|
|
|
|
2026-02-03 16:53:46 -08:00
|
|
|
|
Note: isolated `cron add` jobs default to `--announce` delivery. Use `--no-deliver` to keep
|
|
|
|
|
|
output internal. `--deliver` remains as a deprecated alias for `--announce`.
|
2026-02-03 14:21:38 -08:00
|
|
|
|
|
2026-02-03 15:00:03 -08:00
|
|
|
|
Note: one-shot (`--at`) jobs delete after success by default. Use `--keep-after-run` to keep them.
|
|
|
|
|
|
|
2026-01-21 01:12:43 +00:00
|
|
|
|
## Common edits
|
|
|
|
|
|
|
|
|
|
|
|
Update delivery settings without changing the message:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-02-03 13:44:29 -08:00
|
|
|
|
openclaw cron edit <job-id> --announce --channel telegram --to "123456789"
|
2026-01-21 01:12:43 +00:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Disable delivery for an isolated job:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-01-30 03:15:10 +01:00
|
|
|
|
openclaw cron edit <job-id> --no-deliver
|
2026-01-21 01:12:43 +00:00
|
|
|
|
```
|
2026-02-03 13:44:29 -08:00
|
|
|
|
|
2026-02-03 16:53:46 -08:00
|
|
|
|
Announce to a specific channel:
|
2026-02-03 13:44:29 -08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-02-03 16:53:46 -08:00
|
|
|
|
openclaw cron edit <job-id> --announce --channel slack --to "channel:C1234567890"
|
2026-02-03 13:44:29 -08:00
|
|
|
|
```
|