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 14:21:38 -08:00
|
|
|
|
Note: isolated `cron add` jobs default to `--announce` delivery. Use `--deliver` for full output
|
|
|
|
|
|
or `--no-deliver` to keep output internal. To opt into the legacy main-summary path, pass
|
|
|
|
|
|
`--post-prefix` (or other `--post-*` options) without delivery flags.
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Deliver full output (instead of announce):
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
openclaw cron edit <job-id> --deliver --channel slack --to "channel:C1234567890"
|
|
|
|
|
|
```
|