Docs
Refer friends. Keep the rewards coming!Your friend can unlock up to 10M tokens · earn up to 30% revenue share.
+500K TokensGenerate link

Automations

Create one-time, recurring, and manually triggered CrabCode jobs through the CLI cron daemon or the desktop Automations page.

What it is

CrabCode automations are executed by the local crabcode-cron daemon. The CLI and desktop GUI share the same local backend. Jobs can run once at a fixed time, run on a cron schedule, or be triggered immediately.

The desktop Automations page is wired to real App Server cron/* methods: it reads daemon status, lists jobs, shows recent runs, creates jobs, updates jobs, removes jobs, and triggers jobs.

GUI

Open Automations from the left sidebar.

AreaPurpose
Daemon statusAvailability, version, total jobs, enabled jobs
Create formName, action text, one-time schedule or cron expression
Job listView, enable/disable, run now, remove
Recent runsExpand a job and inspect recent fire-log entries

The action text should be self-contained, for example:

shell
Every weekday, inspect /Users/me/project CI status and summarize failures with suggested fixes.
Every weekday, inspect /Users/me/project CI status and summarize failures with suggested fixes.

CLI

bash
crabcode cron status
crabcode cron list
crabcode cron add --name "Daily check" --schedule "0 9 * * *" --message "Inspect project health and summarize risk"
crabcode cron add --name "Release reminder" --at "2026-05-27T15:00:00-07:00" --message "Remind me to review the release checklist"
crabcode cron add --name "Short interval test" --every-ms 60000 --message "Check the task queue once"
crabcode cron edit <id> --name "New name"
crabcode cron disable <id>
crabcode cron enable <id>
crabcode cron run <id>
crabcode cron runs <id> --limit 20
crabcode cron rm <id>
crabcode cron status
crabcode cron list
crabcode cron add --name "Daily check" --schedule "0 9 * * *" --message "Inspect project health and summarize risk"
crabcode cron add --name "Release reminder" --at "2026-05-27T15:00:00-07:00" --message "Remind me to review the release checklist"
crabcode cron add --name "Short interval test" --every-ms 60000 --message "Check the task queue once"
crabcode cron edit <id> --name "New name"
crabcode cron disable <id>
crabcode cron enable <id>
crabcode cron run <id>
crabcode cron runs <id> --limit 20
crabcode cron rm <id>

--schedule, --at, and --every-ms are mutually exclusive.

App Server methods

MethodPurpose
cron/statusDaemon health and metadata
cron/listList jobs
cron/runsRecent runs for a job
cron/addCreate a job
cron/updateUpdate enabled state, name, description, or schedule
cron/removeRemove a job
cron/runTrigger now

Troubleshooting

SymptomFix
cron/status is unavailableCheck CRABCODE_DISABLE_CRON, restart the desktop app, or rerun the CLI
GUI shows no jobsRun crabcode cron list to confirm daemon access
Job does not fireCheck cron expression, timezone, and enabled state
Run-now failsRun crabcode cron run <id> in the CLI and inspect the error