agentuse serve. Configure schedules in agent frontmatter with cron expressions or intervals.
Quick Start
- Add a
scheduleconfig to your agent:
- Start the server:
Schedule Formats
Theschedule field accepts a single string value. The format is auto-detected:
Intervals
Simple duration format for recurring tasks:| Unit | Example | Max | Description |
|---|---|---|---|
s | 30s | 59 | Seconds |
m | 10m | 59 | Minutes |
h | 2h | 23 | Hours |
For daily or longer schedules, use cron expressions.
Cron Expressions
Standard cron syntax for precise control:| Pattern | Description |
|---|---|
0 * * * * | Every hour |
*/15 * * * * | Every 15 minutes |
0 9 * * * | Daily at 9am |
0 0 * * 0 | Weekly on Sunday |
0 0 1 * * | Monthly on the 1st |
0 9 * * 1-5 | Weekdays at 9am |
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:Next Steps
Webhooks
Trigger agents via HTTP
Self-Hosting
Deploy in production
