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:- Task ID: Unique identifier (e.g.,
daily_backup) - Cron expression: Schedule (e.g.,
0 2 * * *) - Prompt: Agent message to execute
- 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):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:- Gateway is running:
nullclaw gateway - Service is installed:
nullclaw service start
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
-
Check gateway is running:
-
Verify cron expression:
-
Check task is enabled: