05 / Later

Later

The Router has no clock of its own. Something else decides when; the Router runs the session, routes it and keeps it answerable.

Headless runs from your scheduler

--headless marks a session as background work: routing prefers Codex and the profile’s work sign-in. Give each run a --request-key. Starting the same key again returns the session it already started, so a retried timer never starts a second run.

A nightly run from cron
$ oh-router codex --headless --request-key nightly-2026-11-24 --cwd ~/src/app "Run the test suite and summarize failures"

In the morning, oh-router ps --project app shows how it went, and its questions wait in the usual Answer states.

Recurring tasks from OH for Mac

OH for Mac keeps recurring tasks: instructions, a folder and a cadence. It starts each run through the Router on the same Mac. With OH Pro it can schedule them on a paired Mac, which keeps the clock, folder and history.

The Router carries those tasks between paired Macs once both grant Manage recurring tasks with oh-router fleet trust --peer ID --host UUID --schedules.

For your own scheduler

A scheduler on the same machine can use attempts on the local socket: session.spawn_attempt starts a session bound to a key and never reruns it, session.inspect_attempt reads it, and session.close_attempt ends it. The bridge refuses them. See the CLI reference.