← Unchained

Schedule a Recurring Browser Task

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.

Commands and output below come from the shipping scheduler CLI. The run steps assume an agent is already connected.
Before you start

Two things must already be true

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:

If either is missing, see the setup reference first. Everything below is a no-op without them.

Step 1

Write the jobs file

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
    }
  ]
}
FieldWhat it does
promptThe instruction handed to the agent. Write it the way you would type it into the chat, including which sites to open.
schedule.daily_atUTC wall-clock time, HH:MM. Runs once per day. Not local time—convert before you schedule.
schedule.every_minutesFixed interval in minutes from the previous run.
schedule.every_secondsSame, in seconds. Only one schedule key may be present.
schedule.atOne ISO-8601 UTC timestamp. Pair with enabled: false until you mean it.
use_stable_sessionReuses one conversation across runs, keyed to the job id, so the agent keeps its context instead of starting cold each time.
timeout_secondsGive up on a single run after this long. Default 180.
retry_secondsOn failure, schedule the next attempt this long later instead of waiting for the normal schedule. 0 keeps the normal schedule.
enabledSet false to keep a job in the file but stop it running.
Write the prompt for a reader who was not there. “Check the usual pages” fails silently; naming the sites and the fields makes a failed run obvious instead of plausible.
Step 2

Read it back before trusting it

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.

Step 3

Run it once by hand

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.

🔍
Rehearse once, read the output properly, then schedule it. The failure you catch here is the one you never see later.
Step 4

Let it run

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.

FlagDefault
--jobsscheduled_jobs.json
--statescheduled_jobs.state.json in the working directory
--api-urlUNCHAINED_API_URL
--api-keyUNCHAINED_API_KEY
--poll-seconds30
Limits

What this is not

Next

Schedule something you already do by hand every Monday.

Competitor monitoring Read the MCP setup reference

Your browser agent, ready when you are

Works with your real browser, your real logins, and your real data. No screenshots, no copy-paste—just tell it what to do.

See a Live Run → Connect Your Browser →