Machines
A machine is a computer that runs harnesses for Stage. Every connection belongs to one machine.
One install, one machine
By default one Stage install is one machine: the server runs your harnesses on the computer it runs on, named after that computer. The desktop app and a self-hosted server both start this way.
Main server and workers
You can also run one main server on a host every device can reach (a VM, a home server, a cluster) and join your laptops and desktops to it as workers.
| Main server | Worker | |
|---|---|---|
| Database, backlog, journals, scheduling | Yes | No |
The UI, /api and /mcp | Yes | No (agents reach the main server through it) |
| Hosts that machine's T3 and OpenCode connections | Its own, if any | Yes |
| Runs Claude Code and Codex | Yes, on your computer (not in Docker) | Yes, with local harnesses (the worker service, or stage worker run --local-harnesses) |
| Harness credentials | For its own connections | Kept on the worker |
| Observes sessions | Its local connections and external bridge pushes | Its own connections, with bounded offline replay |
| Read-only evidence from local workspace directories | For itself | Yes |
The main server keeps each worker connection's status and non-secret settings. Credentials never leave the worker.
Workers dial out
A worker always connects out to the main server. Laptops need no open ports and can sleep or change networks.
An offline worker is an offline harness: its tasks keep their state, a new launch on it is refused, and a launch already sent waits until the worker is back.
A worker and the main server need the same API version, so update them together.
One role per install
A machine runs either its own Stage server or a worker, not both. The desktop app switches roles for you: joining as a worker turns its own server off, keeping its data, until you leave.
Agents on a worker
Agents on a worker's machine use Stage as usual: the stage CLI, stage mcp and HTTP MCP. The worker runs a local agent gateway that forwards their requests to the main server with its own machine token, so agents need no credentials or proxy access. Launch instructions for sessions on that machine name the gateway. The main server records which machine each agent write came from. The gateway cannot manage machines or change any machine's harness setup.
Managing machines
Settings > Connections lists every machine, this server first, with online or offline, last seen, its build (flagged when it differs from the server's) and its harness connections.
- Add machine creates a one-time pairing link, valid for 10 minutes, with the
stage worker joincommand to run on the new machine. - Each machine's connections are set up from the same place, run on that machine through its worker.
- Rename a machine inline. Removing one revokes its token at once: its worker stops, its connections become history, and its tasks stay.
With more than one machine, connection pickers (task and schedule harness, tracking a session, project workspaces) tag each harness with its machine. Workspaces on different machines can join one project when their repository origin and checkout subpath match.
Next steps
- Main server and workers: set up a main server and join workers.
- Connections: what each machine runs.
- Security: exposing a main server safely.