Skip to main content
The zeroclaw cron command manages scheduled tasks using cron expressions, timestamps, or intervals.

Overview

Schedule recurring or one-time agent tasks:
  • Cron expressions (5-field format)
  • RFC 3339 timestamps
  • Duration-based delays
  • Fixed intervals

Subcommands

list

List all scheduled tasks.
Output:

add

Add recurring task with cron expression.
Parameters:
string
required
Cron expression (5 fields): min hour day month weekday
string
required
Message to send to agent when task runs
string
default:"UTC"
IANA timezone name (e.g., America/New_York)
Examples:

add-at

Schedule one-time task at specific time.
Parameters:
string
required
RFC 3339 timestamp (e.g., 2026-03-15T14:00:00Z)
Examples:

add-every

Repeat task at fixed interval.
Examples:

once

Run task once after delay.
Duration format: <number><unit> where unit is s, m, h, or d Examples:

remove

Remove scheduled task.

pause

Pause task without deleting.

resume

Resume paused task.

Cron Expression Format

Five fields: min hour day month weekday
string
Minutes (0-59)
string
Hours (0-23)
string
Day of month (1-31)
string
Month (1-12)
string
Day of week (0-7, where 0 and 7 = Sunday)

Special Characters

  • * - Any value
  • , - Value list (e.g., 1,15 = 1st and 15th)
  • - - Range (e.g., 1-5 = Monday through Friday)
  • / - Step (e.g., */15 = every 15 minutes)

Examples

Task Storage

Tasks are stored in ~/.zeroclaw/cron.db (SQLite). Backup tasks: