Skip to main content
Create recurring tasks that run on a cron schedule inside a box. You can schedule shell commands or agent prompts. Available on both box.schedule and ephemeralBox.schedule.

API

Schedule a shell command

Run a shell command on a cron schedule.

Schedule an agent prompt

Run an agent prompt on a cron schedule. Requires an agent to be configured on the box.

List schedules

Retrieve all non-deleted schedules for the current box.

Get a schedule

Retrieve a single schedule by ID.

Pause a schedule

Pause an active schedule so it stops running.

Resume a schedule

Resume a paused schedule.

Delete a schedule

Remove a schedule so it no longer runs.

Schedule response

Most schedule methods return a Schedule object:

Cron syntax

Schedules use standard 5-field cron expressions (UTC):

Examples

Periodic health check

Schedule a command that checks whether your service is healthy.

Daily code review agent

Schedule an agent to review recent changes every morning.

Manage schedules

List active schedules, pause, resume, and clean up ones you no longer need.