agentuse serve. Configure schedules in agent frontmatter with cron expressions or intervals.
Quick Start
- Add a
scheduleconfig to your agent:
- Start the server:
Pause or resume a schedule
Pause a declared schedule without editing the agent file:schedule frontmatter remains unchanged and visible. Pause state is
stored for the current deployment, so another deployment of the same project can
run the schedule independently. You can use the same controls from the agent
page or the Schedules page in the dashboard. Newly suggested schedules created
through guided project discovery start paused until you test and enable them.
Schedule Formats
Theschedule field accepts a single string value. The format is auto-detected:
Intervals
Simple duration format for recurring tasks:For daily or longer schedules, use cron expressions.
Cron Expressions
Standard cron syntax for precise control:Timezone
Cron expressions and intervals are evaluated in the local timezone of the machine runningagentuse serve, not UTC. The times you write are literal wall-clock times for that server. Daylight saving transitions are handled automatically, so 0 9 * * 1-5 stays at 9am local across the year.
To pin a schedule to a specific zone, run the server with TZ set (for example TZ=UTC agentuse serve or TZ=America/New_York agentuse serve).
Example
A scheduled agent for daily reports:Server Options
See CLI Commands - agentuse serve for all server options including port, host, and authentication configuration.Monitoring
The server logs each scheduled execution:Scheduler Ownership and Recovery
Only oneagentuse serve process arms schedules for a project. The daemon
records that ownership in .agentuse/scheduler.lock; other daemons keep serving
the project but skip its schedules to prevent duplicate side effects.
Lock and filesystem errors fail closed: AgentUse skips schedules rather than
risking two daemons running them. A stale daemon lock is reclaimed
automatically. Reclamation itself uses the short-lived
.agentuse/scheduler.lock.reclaim guard. If a process is killed during that
critical section, the guard can be left behind and scheduling stays disabled.
After confirming no daemon is currently reclaiming the lock, remove
.agentuse/scheduler.lock.reclaim, then touch an agent file or restart
agentuse serve. The warning prints the exact file path to remove.
Next Steps
Webhooks
Trigger agents via HTTP
Self-Hosting
Deploy in production