Skip to main content

Cron API

Create, list, and delete cron jobs directly on the OpenClaw gateway. Cron jobs run recurring tasks on your agent using the gateway’s built-in scheduler.
These endpoints manage cron jobs on the gateway itself via POST /tools/invoke. For application-level scheduled tasks stored in the database, see the scheduled tasks API.
Cron is enabled by default on all new instances. The provisioning template sets a maximum of 2 concurrent runs and 24-hour session retention. You can adjust these limits using the config API.
All cron endpoints require session authentication.

List cron jobs

Returns all cron jobs from the gateway, including disabled jobs.

Response

Job object

Response fields

Gateway errors

When the gateway is unreachable, the endpoint returns HTTP 200 with an empty job list and the error detail:

Example

Create a cron job

Adds a new cron job to the gateway.

Request body

Example request

Response

Errors

Example

Delete a cron job

Removes a cron job from the gateway.

Query parameters

Response

Errors

Example