01 / Run

Run

oh-router claude and oh-router codex start the official CLI in the current folder, inside a holder that outlives your terminal. spawn lets routing pick the provider.

Start a session

Three ways in
$ oh-router claude --tier opus "Audit the error handling"
$ oh-router codex --tier astra --cwd ~/src/app "Review the open diff"
$ oh-router spawn --project app "Fix the flaky test"

Each command prints the new session’s ID. Name it with --title, tag it with --project or --workspace, choose the account with --profile and the machine with --device (see Reach). oh-router spawn --kind shell opens a plain shell under the same supervisor.

Models and effort

--tier (or --model, -m) picks one of seven tiers. Without one, the default is Opus, then Sol when no Claude profile has room. --class frontier asks for the frontier tier instead: Fable, then Astra.

TierModelCLIClass
opusclaude-opus-5-5Claude Codestandard (default)
solgpt-6.2-solCodexstandard
fableclaude-fable-5-2Claude Codefrontier
astragpt-6.2-astraCodexfrontier
sonnetclaude-sonnet-5-5Claude Codelower tier
terragpt-6.1-terraCodexlower tier
lunagpt-6-lunaCodexlower tier

Every session runs at Max effort until you run oh-router policy set --max-effort-only false. After that, --effort low, medium, high or max applies per session.

Sessions outlive the supervisor

Each session’s terminal lives in its own oh-holder process with a private 0600 socket. Stopping, restarting or upgrading ohd leaves running sessions alone; the new supervisor reconnects to them. To upgrade, install the new binaries, then oh-router daemon stop and oh-router daemon start.

Run the supervisor as a service

oh-router daemon install registers ohd as a LaunchAgent on macOS or a systemd user service on Linux, as the account that runs your agents. --print shows the definition without writing it, and --listen also opens the loopback bridge on port 7842 for a paired workstation.

The service always comes back after a crash or an out-of-memory stop, with sessions running throughout, and records each failure in failures.log in the state folder. Running daemon install again updates an older definition; a definition you wrote yourself stays unless you pass --replace.

Install and check the service
$ oh-router daemon install
$ oh-router daemon status

Free disk space

Agents leave build output in every worktree. When the volume holding your home folder drops below 120 GiB or 15% free, whichever is lower, the Router checks every 15 minutes and removes two kinds of files: build output (node_modules, target, .next, .turbo, .venv, .build) at the top of a linked git worktree under ~/src that git ignores, no process uses and nothing changed in for 12 hours; and package download cache entries untouched for a day.

It never touches a main checkout, anything git tracks, a folder holding keys, secrets, model weights or media, or anything behind a symlink. Each pass is capped and recorded in reclaim/status.json.

Preview, apply or turn it off
$ oh-router reclaim
$ oh-router reclaim --apply
$ oh-router reclaim status
$ oh-router reclaim settings --mode dry_run

oh-router reclaim lists what a pass would remove and why the rest stays, and deletes nothing. --mode off stops the automatic pass; then reclaim --apply also needs --force.