A scheduled task is a prompt plus a time. Wire one up with the local scheduler that ships with Unchained—then let it run against the browser you are already signed in to.
The scheduler does not open a browser itself. It sends a prompt to your running agent, which drives the Chrome session you already have. So:
uc_live_...). The scheduler reads it from UNCHAINED_API_KEY.If either is missing, see the setup reference first. Everything below is a no-op without them.
Start from the example rather than a blank file. The schema is small, but the schedule keys are easy to get subtly wrong:
unchained-scheduled init-example
# Wrote example jobs file: scheduled_jobs.json
Then replace the jobs with your own. A schedule names exactly one of four keys: a daily time, an interval in minutes, an interval in seconds, or a single timestamp.
{
"jobs": [
{
"id": "competitor-scan",
"prompt": "Check Westlake, Skin Laundry, and Ever Clinic for price changes.",
"schedule": { "daily_at": "07:30" },
"use_stable_session": true,
"timeout_seconds": 300,
"retry_seconds": 600
},
{
"id": "status-watch",
"prompt": "Open the status page and report any active incidents.",
"schedule": { "every_minutes": 60 }
},
{
"id": "one-off-export",
"prompt": "Export last week's report as CSV and confirm where it saved.",
"schedule": { "at": "2026-12-01T18:00:00Z" },
"enabled": false
}
]
}
| Field | What it does |
|---|---|
prompt | The instruction handed to the agent. Write it the way you would type it into the chat, including which sites to open. |
schedule.daily_at | UTC wall-clock time, HH:MM. Runs once per day. Not local time—convert before you schedule. |
schedule.every_minutes | Fixed interval in minutes from the previous run. |
schedule.every_seconds | Same, in seconds. Only one schedule key may be present. |
schedule.at | One ISO-8601 UTC timestamp. Pair with enabled: false until you mean it. |
use_stable_session | Reuses one conversation across runs, keyed to the job id, so the agent keeps its context instead of starting cold each time. |
timeout_seconds | Give up on a single run after this long. Default 180. |
retry_seconds | On failure, schedule the next attempt this long later instead of waiting for the normal schedule. 0 keeps the normal schedule. |
enabled | Set false to keep a job in the file but stop it running. |
list parses the file, initialises any missing state, and prints the next run time for each job. This is where a typo in a schedule key shows up as a job that never runs:
UNCHAINED_API_KEY=uc_live_... unchained-scheduled list
job_id enabled next_run_utc last_status runs
competitor-scan True 2026-11-16T07:30:00Z - 0
status-watch True 2026-11-15T14:00:00Z - 0
one-off-export False - - 0
A dash under next_run_utc means the job is disabled. A malformed schedule is not shown as a dash—list fails outright on the offending key, so fix the file and run it again.
Do not hand an unrehearsed prompt to a schedule. run-due triggers every job that is currently due and prints one line per job:
UNCHAINED_API_KEY=uc_live_... unchained-scheduled run-due
[OK] competitor-scan: ...
[OK] status-watch: ...
One line per job: the id, then a short detail from that run. If nothing is due yet it prints No jobs due. rather than running early. To rehearse immediately, set "at" to a minute from now on a temporary copy of the job.
This is the step that earns the schedule. A prompt that returns a vague briefing is obvious when you are watching it and invisible when it lands in a log at 7am.
The daemon polls for due jobs on an interval and keeps going:
UNCHAINED_API_KEY=uc_live_... unchained-scheduled daemon --poll-seconds 60
The state file defaults to scheduled_jobs.state.json in the working directory—--state sets it independently, and it does not follow --jobs. It records the next run, the last status, the last error, and a run count. Delete it to force jobs to re-initialise from scratch.
Keep the daemon alive the same way you keep anything else alive on the machine: a launchd agent on macOS, a systemd unit on Linux, or a terminal multiplexer if you only need it while you work.
| Flag | Default |
|---|---|
--jobs | scheduled_jobs.json |
--state | scheduled_jobs.state.json in the working directory |
--api-url | UNCHAINED_API_URL |
--api-key | UNCHAINED_API_KEY |
--poll-seconds | 30 |
retry_seconds.OK—so read the output, not just the status column.Schedule something you already do by hand every Monday.
Works with your real browser, your real logins, and your real data. No screenshots, no copy-paste—just tell it what to do.