Skip to content
stage

Connections

Stage does not run agents itself. It hands each task to a harness, a service that runs coding agents, and follows the result. A connection is one harness service on one machine.

Harnesses

HarnessHow Stage talks to it
T3 CodeT3's MCP endpoint, with T3's OAuth and upload endpoints
OpenCode V2OpenCode's V2 HTTP API (tested with 2.3.0)
CodexThe Codex app-server daemon on its computer (where Stage runs, or a worker)
Claude CodeThe claude command on its computer (where Stage runs, or a worker; background sessions)

The harness keeps what it owns: models, workspaces and worktrees, conversations and its own UI. Stage keeps tasks, trees, journals, acceptance and handoff.

One service, one machine

Each harness instance is its own connection: a T3 environment, an OpenCode service, a Codex home or a Claude Code config folder. A machine has at most one active connection per harness, so one T3, one OpenCode, one Codex and one Claude Code. With workers, each machine has its own.

Connecting

A new install has no connections. Until one is set up, the Dashboard shows Connect a harness, which leads to Settings > Connections.

  • T3: pair Stage with T3, in one click when T3 runs on the same machine, else with a code from t3 pair. T3 counts as connected only once paired; before that Stage never contacts it.
  • OpenCode: click Connect for the service on the same machine, or paste an opencode pair link from another machine.
  • Codex: click Connect. See Codex.
  • Claude Code: click Connect. Stage checks the claude command and Claude's own login. Only on your computer: where Stage runs (the desktop app, or stage serve --local-harnesses), or on a worker with local harnesses (the worker service, or stage worker run --local-harnesses); never in the Docker image. See the Claude Code guide.

Setup details, addresses and tokens: Connections reference.

Codex

Codex runs on your computer: where Stage runs (the desktop app or Stage's per-user service, or stage serve --local-harnesses), or on a worker with local harnesses (the worker service, or stage worker run --local-harnesses). It is unavailable in the Docker image.

  • Connect: click Connect in Settings > Connections, or run stage harness codex run connect. Stage uses codex on your PATH; set Codex CLI to a path to use another (stage harness codex set binary=PATH).
  • Signed out: the panel shows the command that fixes it. Run codex login, then Connect. Stage stores no Codex credentials.
  • Daemon: Stage starts the Codex app-server daemon on demand when it is down, and never stops, restarts or updates it. Running turns survive a Stage restart, and codex resume and Codex Desktop see the same threads.
  • Workspaces: the projects Codex trusts. Trust a project in Codex, or add a workspace with the Trust folder source (stage workspaces add), which asks Codex to trust the folder through its app server; Stage never edits Codex's config files. Tasks run in the project root, with no Codex worktrees and no Plan mode. Images are sent with the prompt. Permission: Read only, Auto (default) or Full access.
  • Questions and approvals: answer them in Codex. A Codex task offers Copy resume command (cd <dir> && codex resume <id>) on its row and on task detail; run it in a terminal.
  • Tracking a session: paste a thread id or a codex resume <id> command. Threads T3 Code started are refused: track them through T3.
  • Archive: archiving a thread in Codex completes its task while Complete tasks when archived in Codex is on.
  • Disconnect: stage harness codex disconnect, or Disconnect in Settings. Stage stops tracking; the daemon and its threads stay in Codex.

Choosing a connection per task

Choose a connection and an exact workspace for a task or schedule. The default connection can prefill the form. Each connection keeps its own new-task defaults, such as a pinned model. App reference

When a connection is offline

Stage and its harnesses fail independently.

  • Planning works offline for projects, backlog tasks and trees. A new schedule needs an exact workspace on a selected connection.
  • A lost connection preserves each task's state. Launches on it wait or are refused until it is back.
  • A disconnected harness leaves the other harness, and planning, available.
  • Accepted results are saved in Stage, so handoff to the next task works with the earlier task's harness offline.

The status button at the bottom of the sidebar sums up every connection on every machine. Click it for each one's state.

Replacing a connection

Pairing a different T3 or confirming a different OpenCode service retires the old connection. Its tasks and saved destinations stay on record. Select an exact workspace on the replacement for future launches. Reconnecting the original instance can restore its connection and make its exact workspace pins usable again.

Auto-complete

A connection can complete a task for you. When a run succeeds and its T3 thread is settled, its OpenCode session or Codex thread archived, or its Claude Code session removed (claude rm), Stage accepts the task automatically, once per run, with that provenance shown. Failed or interrupted runs never auto-complete, and changing the task's state back undoes it. Auto-complete is on by default; turn it off per connection in its setup in Settings > Connections. See Tasks for completion.

Next steps