How to schedule AI agents: cron that runs with your laptop closed
A schedule wakes an agent deployed on superagnt, on our servers, not your Claude Code session, so it runs with your laptop closed. Give it a cron expression, a timezone and the message to act on, and every firing starts a fresh session of that agent.
What it touches: a schedule only starts sessions of an agent you deployed on superagnt, with the tools you gave that agent. Nothing runs on your computer or inside your Claude session.
updated Nov 3, 2026
Copy the setup prompt.
Your agent does the rest.
Install superagnt for me. It's the superagnt plugin from the github.com/superagnt/plugins marketplace, plus the superagnt MCP server (on Claude it's a connector I add in my browser; elsewhere I sign in through my browser). The setup guide for each kind of agent is at https://www.superagnt.com/install» the schedule tools are on every server, and every plan includes schedules: plans differ only in how many can be enabled at once.
Does a scheduled agent run when my computer is off?
Only if the schedule lives on a server. Claude Code's /loop needs the session open and the machine on, and Claude Desktop's local tasks need the app open and the computer awake. Cloud options keep going with the lid closed, and this is the one you can set every minute from any MCP client. Claude routines has the cloud scheduled tasks' limits next to a weekly run of this one.
| Option | Laptop closed? | Shortest interval | Missed runs | Good to know |
|---|---|---|---|---|
| superagnt schedule | Runs: it wakes an agent on our servers | Every minute | Recorded as skipped with the reason; the schedule rolls on | Works from Claude, ChatGPT, Codex or Cursor; any timezone |
| Claude Code /loop | Stops: needs the session open and the machine on | 1 minute | Not caught up | Recurring tasks expire after 7 days; runs start up to half the interval late (at most 30 minutes) |
| Claude Desktop local task | Stops: needs the app open and the computer awake | 1 hour in the form | One catch-up run on wake | Each task starts a few minutes late by design |
| Claude cloud scheduled task (formerly routines) | Runs, on Anthropic's cloud | 1 hour | Waits when the account limit is hit | Research preview; Pro, Max, Ultra, Team and Enterprise; 100 runs an hour per account; works on a fresh clone of your repo |
| ChatGPT scheduled task | Not stated for personal tasks | Hourly on paid plans, daily on Free | Not stated | 3 to 15 active tasks, by plan |
| Your own cron and a CLI agent | Runs if your server is on | Every minute | Whatever you build | You keep the server, keys, retries and logs |
What can your agent do with cron schedules?
agnt_schedules_write with action create takes a cron expression, an IANA timezone and the message the agent receives each time it fires.
Each run is its own billed agent session, so a run starts clean and reads what it needs from the database or memory.
Change the cron, timezone, message or name with action update; the next run time is recomputed at once.
Create a schedule with enabled false, run it by hand, then turn it on. Turn it off the same way instead of deleting it, which can't be undone here.
agnt_schedules_list shows each schedule's next and last run, and every firing is a trigger run with its status and the session it started.
agnt_schedules_writeaction: create · updateagnt_schedules_listcalled by its own nameagnt_schedules_deletecalled by its own name
per-operation names04older servers list these
agnt_schedules_createagnt_schedules_listagnt_schedules_updateagnt_schedules_deleteWhat does a real call return?
A run we recorded on superagnt, with the result trimmed to fit. Nothing on it is invented: the date, the wall time and the cost are the run's own.
asked Brief me every weekday at 9:00 Berlin time. And to test it, run a probe every 5 minutes.
- → call 1
agnt_schedules_write{ "action": "create", "agent_id": "f624ee4d-…", "name": "weekday 9am Berlin briefing", "cron_expression": "0 9 * * 1-5", "timezone": "Europe/Berlin", "input_text": "Weekday briefing. Reply with one line: the UTC time you started." }← resulttrimmed"cron_expression": "0 9 * * 1-5", "timezone": "Europe/Berlin", "enabled": true, "next_run_at": "2026-11-04T08:00:00+00:00" - → call 2
agnt_schedules_write{ "action": "create", "agent_id": "f624ee4d-…", "name": "probe every 5 minutes", "cron_expression": "*/5 * * * *", "timezone": "UTC", "input_text": "Scheduled run. Reply with one line: the UTC time you started." }← resulttrimmed"enabled": true, "next_run_at": "2026-11-03T16:45:00+00:00" - → call 3
agnt_observability_read{ "action": "list_trigger_runs", "agent_id": "f624ee4d-…" }← resulttrimmed{ "trigger_type": "schedule", "status": "dispatched", "agent_session_id": "8f421ab5-…", "created_at": "2026-11-03T16:45:05.429Z" } { "trigger_type": "schedule", "status": "dispatched", "agent_session_id": "f3868b87-…", "created_at": "2026-11-03T16:50:03.590Z" }
» The calls take 4 seconds and cost nothing; each firing is billed as the agent session it starts. 9:00 in Berlin on November 4 is 08:00 UTC, and the tool did that conversion.
How close to the scheduled minute does it fire?
Within seconds. Due schedules are claimed once a minute, and all 12 fires of our 5-minute probe started 3.6 to 8.0 seconds after their minute, a median of 4.0 seconds. None was skipped.
sample · 12 fires of a */5 schedule on a Claude Haiku 4.5 agent, 16:45 to 17:40 UTC, Nov 3, 2026
How do you write the cron expression?
Five fields: minute, hour, day of month, month, day of week, read in the timezone you name. Every minute is the finest cadence: a six-field expression with seconds is refused with "Sub-minute cron expressions are not supported."
| Expression | Runs |
|---|---|
| 0 9 * * 1-5 | Weekdays at 09:00 |
| */15 * * * * | Every 15 minutes |
| 0 * * * * | At the top of every hour |
| 30 6 * * 1 | Mondays at 06:30 |
| 0 8 1 * * | At 08:00 on the first of each month |
When should an agent wake on a clock and when on a webhook?
Use a clock when nothing will tell you something happened: a morning digest, a check for changes, weekly upkeep. Use a webhook when a system can tell you: a form submitted, a deal moved, a job finished. A clock that polls for an event wastes runs, and an event that never fires leaves a digest unsent. For a list of work items, use a queue.
How does the agent know what it did in the last run?
It reads it. Each firing is a fresh session with only the schedule's message, so the agent writes what it found to the workspace database at the end of a run and reads it back at the start of the next. Facts that should shape every run, such as a standing rule, can live in memory.
What happens when a run is missed or fails?
Every firing is recorded as a trigger run with its status, its error and the session it started, which agnt_observability_read with action list_trigger_runs returns (observability). The next run time moves on before any work starts, so a firing that can't run is marked skipped with the reason, such as an agent that is disabled or still a draft, and missed times are not replayed later.
What do people use it for?
A daily briefing that reads live data
Every weekday at 7am the agent pulls what changed overnight from Reddit, X or your own tables, writes the summary and sends it where your team already looks.
Monitoring on a cadence
Every hour the agent checks a source, compares it with what it stored last run, and speaks up only when something crossed a threshold.
Recurring upkeep
A weekly run re-enriches stale records, retries what failed and reports the rows it couldn't fix.
What does it cost?
The tools carry no per-call price. What you pay for is the agent sessions they start, billed as AI usage from your AI credit, which every run itemizes. Plans are Starter $49 a month ($20 of data credit included), Growth $149 a month ($90) and Scale $399 a month ($300), and the no-card trial gives $3 of data credit with Growth limits.
- Enabled schedules: Starter 10, Growth 50 and Scale 250.
- Deployed agents: Starter 3, Growth 15 and Scale 50.
What do people ask before they wire it up?
01Does a scheduled agent run when my computer is off?
Here, yes: a superagnt schedule wakes an agent deployed on our servers, so your laptop can be closed. Claude Code's /loop needs the session open and the machine on, and Claude Desktop's local tasks need the computer awake.
02What is the best way to schedule agents at scale?
Put the schedule on a server, keep each run short and stateless, store state in a database, and read the run log. Here each run is its own session, every firing is recorded with its status, and plans differ in how many schedules can be enabled at once. Enabled schedules: Starter 10, Growth 50 and Scale 250.
03When should an agent wake on a clock and when on a webhook?
Wake on a clock when nothing will tell you something happened, such as a morning digest or a weekly check. Wake on a webhook when a system can tell you, such as a form submission or a finished job. Polling for an event on a clock wastes runs.
04How does the agent know what it did in the last run?
Each firing starts a fresh session, so the agent writes its results to the workspace database at the end of a run and reads them back at the start of the next. Standing rules can live in memory.
05Is it safe to let an agent act on a schedule?
Start it disabled, run it once by hand and read the session, then enable it. The agent can only use the tools you gave it, and tools you mark "ask" wait for a person's approval even on a schedule. To stop it, set enabled to false.
06What happens when a run is missed or fails?
The next run time moves on as each firing starts, so missed times are not replayed. A firing that can't run is recorded as skipped with its reason, and every run's status and session are in the trigger-run log.