Skip to main content
The nullclaw cron command manages scheduled tasks that run periodically in the background. Tasks are defined with cron expressions and can execute any agent prompt.

Subcommands

cron list

List all scheduled tasks:

Example Output

cron add

Add a new scheduled task interactively:
You’ll be prompted for:
  1. Task ID: Unique identifier (e.g., daily_backup)
  2. Cron expression: Schedule (e.g., 0 2 * * *)
  3. Prompt: Agent message to execute
  4. Enabled: Start active or paused

Example

cron remove

Remove a scheduled task:

cron pause / resume

Pause a task without removing it:

cron run

Run a task immediately (outside its schedule):
Useful for testing new tasks before committing to a schedule.

Cron Expression Format

NullClaw uses standard cron syntax:

Examples

Task Storage

Tasks are stored in ~/.nullclaw/cron.json:

Use Cases

Daily Memory Backup

Periodic Summaries

Weather Alerts

Scheduled Notifications

Running Scheduled Tasks

Tasks run automatically when:
  1. Gateway is running: nullclaw gateway
  2. Service is installed: nullclaw service start
The cron scheduler runs in the gateway process and executes tasks at their scheduled times.

Execution Context

Scheduled tasks run with:
  • Full agent context
  • Access to all tools (subject to security policies)
  • Memory persistence
  • Channel access (can send messages to Telegram, Discord, etc.)

Examples

List all tasks

Add a daily backup

Test a task

Remove old tasks

Troubleshooting

Task not running

  1. Check gateway is running:
  2. Verify cron expression:
  3. Check task is enabled:

Invalid cron expression

See Also