Self-hosted server
Pick the self-hosted server when Stage should run on a machine without the desktop app: a home server, a VM, a box on your LAN, or a Mac (until the Mac desktop app ships). You install the CLI/server, run it as a per-user service, and open the UI in a browser. To run harnesses on several machines against one server, see Multiple machines.
Browser / PWA (phone, laptop)
|
v
HTTPS proxy
|
v
Stage server (127.0.0.1:7380) ---> T3 / OpenCode
For personal access on the Stage machine,
open http://127.0.0.1:7380 directly.Set up
curl -fsSL https://raw.githubusercontent.com/flexdinesh/stage/main/scripts/install.sh | sh -s -- --headlessThe headless install is a static binary and needs nothing else. It installs per user, without root. Details: Install reference.
Start the service
stage service start # register and start; waits until the server answers
stage service enable # optional: start at loginThe service runs as you (a systemd user unit on Linux, a launchd agent on macOS) and restarts on failure. By default it listens only on a private Unix socket.
Add a TCP listener
Browsers need TCP. Edit service.env (~/.config/stage/service.env on Linux, ~/Library/Application Support/stage/service.env on macOS):
STAGE_LISTEN=unix,127.0.0.1:7380Keep unix in the list; the CLI uses it. Use 0.0.0.0:7380 instead of 127.0.0.1:7380 only to listen on every interface, and read Reach it from other devices first. Then apply it:
stage service restartAll settings: Configuration reference.
Connect a harness
Open Settings > Connections and pair T3, or connect OpenCode or Codex, or from a terminal:
stage harness t3 run auto-pair # T3 on this machine
stage harness opencode run connect-local # OpenCode on this machine
stage harness codex run connect # Codex on this machineOther machines, codes and tokens: Connections reference.
Open it in a browser
On the same machine, open http://127.0.0.1:7380. From other devices, set up HTTPS first (HTTPS and push notifications).
Run in the foreground
To try Stage or run it under your own supervisor, skip the service:
stage serve # or just `stage`; listens on 127.0.0.1:7380
stage serve --listen unix,127.0.0.1:7380 # the private socket and TCP in one processA foreground server reads its config from the environment, not service.env, and stops with its terminal. Only one server can own a data dir, so stop the service first (stage service stop). stage status shows which server the CLI reaches.
Reach it from other devices
- To give trusted people their own accounts, enable shared access.
- For personal access outside a trusted network, use an authenticating HTTPS reverse proxy as the only way to reach Stage. Set
STAGE_PUBLIC_URLto the proxy's origin. - Stage also checks which Host and browser Origin it receives. See the Security reference.
Enable shared access
Shared access gives each person their own sign-in and inbox. Everyone works in the same projects and can run tasks through the same workers and harnesses. Invite people you trust to manage the workspace and run code wherever those harnesses permit.
-
Back up existing data. Set up an HTTPS proxy that forwards to a Stage loopback TCP listener or a protected product Unix socket. Preserve the public Host, browser Origin, cookies and Authorization headers.
-
For a per-user service, add these settings to
service.env, then runstage service restart. For a foreground server, export the same settings or pass--multi-usertostage servein place ofSTAGE_MULTI_USER=1.STAGE_LISTEN=unix,127.0.0.1:7380 STAGE_PUBLIC_URL=https://stage.example.com STAGE_MULTI_USER=1 -
Open the first-admin setup link privately. Interactive foreground Stage prints it to the terminal. Managed and redirected runs write it to
<data dir>/owner/bootstrap.txtwith mode0600. The link expires after 30 minutes. Claiming an existing installation keeps its work and paired workers and makes the existing default user the first admin. -
In Admin > Invitations, enter the person's email and choose Create invitation, then Copy invitation link. Send it privately to the recipient. They open it and choose a name and password to join. Each invite works once and expires after seven days.
Shared mode persists across restarts. Keep the HTTPS origin and private listener configured. Setting STAGE_MULTI_USER=0 on shared data causes startup to fail.
Recover access
While Stage is running, use a terminal on the server as the OS user that runs it. Set STAGE_DATA_DIR to the server's data directory when it differs from the default.
stage owner reissue-setup
stage owner recover-admin --email admin@example.comUse the first command before claim to replace the setup link. Use the second to issue a password reset link for an active admin. Both links expire in 30 minutes. Share a reset link privately with its recipient. Admins can issue member reset links from Admin > People.
Shared access in a container
The bundled Compose setup uses personal access and a wildcard listener inside the container. To run shared Stage, place the HTTPS proxy in Stage's network namespace. For Docker, run the proxy with its HTTPS port published and start Stage with --network container:<proxy-container>, a private data volume at /data, and these environment values:
STAGE_LISTEN=127.0.0.1:7380
STAGE_PUBLIC_URL=https://stage.example.com
STAGE_MULTI_USER=1Point the proxy at 127.0.0.1:7380. Alternatively, give your proxy access to a protected Stage product socket. If reusing a volume or bind mount, make sure the data directory is owned by the Stage container user (UID 65532 in the image) and has mode 0700. Keep the owner control socket private. With the distroless image, get the links directly through the Stage binary:
docker exec <stage-container> /stage owner reissue-setup
docker exec <stage-container> /stage owner recover-admin --email admin@example.comTest shared access locally
Use STAGE_PUBLIC_URL=http://127.0.0.1:7380 with a matching loopback listener for local HTTP testing. For other devices use the HTTPS origin they can actually reach.
HTTPS and push notifications
Push notifications and installing the web app need a secure context. http://localhost is one, so both work in a browser on the same machine with no setup. Other devices need HTTPS with a certificate they trust. Settings > Notifications says "needs https" when a page is opened over plain HTTP from another address.
The server only makes outbound requests to the browser push services (Apple, Google, Mozilla), so its URL can stay private (LAN or tailnet). Devices need internet to receive pushes.
Options, easiest first. Each needs the TCP listener on 127.0.0.1:7380.
-
Tailscale serve: a real certificate for your tailnet name, nothing to install on devices. Easiest for iOS. Enable HTTPS certificates for the tailnet, then on the Stage host:
tailscale serve --bg http://127.0.0.1:7380Stage is then at
https://<machine>.<tailnet>.ts.net, reachable only from your tailnet. Add that origin toSTAGE_ALLOWED_ORIGINS(or set it asSTAGE_PUBLIC_URL) and restart. Walkthrough: Answer from your phone. -
Caddy: with a real domain, Caddy gets a certificate automatically:
stage.example.com { reverse_proxy 127.0.0.1:7380 } -
mkcert: for a LAN-only name, issue a certificate with mkcert (
mkcert stage.lan) and usetls stage.lan.pem stage.lan-key.pemin Caddy. Every device must trust the mkcert root CA. On iOS, install it as a profile, then enable it under Settings > General > About > Certificate Trust Settings. -
Any reverse proxy that terminates TLS and forwards to Stage, with the streaming settings below.
Whichever you pick, add its origin to STAGE_ALLOWED_ORIGINS or STAGE_PUBLIC_URL, then stage service restart.
Reverse proxy and SSE
The notifications inbox uses a Server-Sent Events stream (/api/notifications/stream).
- Caddy's
reverse_proxyflushes it immediately. If your config usesencode, exclude that path so events are not buffered. - Other proxies: disable response buffering (the server sends
X-Accel-Buffering: no) and allow long-lived responses (a ping every 15s).
Shared Stage serves HTTP MCP at the canonical origin with a scoped agent credential. A personal proxy forwarding to loopback uses stdio MCP or the CLI with STAGE_URL set to the proxy URL. MCP reference
Install as an app (PWA)
Over HTTPS (or localhost), install Stage as an app to get push notifications:
- iOS and iPadOS 16.4+: open the HTTPS URL in Safari, tap Share > Add to Home Screen, open Stage from the Home Screen, then Settings > Notifications > Enable notifications.
- macOS: Safari > File > Add to Dock (or use the site in Safari or Chrome), then Settings > Notifications > Enable notifications.
- Send test in Settings > Notifications checks the device.
The event filter in Settings applies to all of your devices. On a shared server, each account has its own filter and unread badge.
Logs, status and updates
stage service status # state, Stage health and harnesses, log location, problems with fixes
stage service logs -f # follow the log
stage update # latest release; restarts the service if it was running- Logs go to journald on Linux and
~/Library/Logs/stage/stage.logon macOS. - On Linux the user manager stops at your last logout unless lingering is on (
loginctl enable-linger). With lingering, an enabled service also starts at boot. Stage never changes lingering. On macOS the service runs in your GUI session. - An update drains in-flight requests for up to 100s, relaunches no task and never touches T3 or its agents. A foreground
stage serveis left alone, with a note to restart it.
Every stage service command: CLI reference.
Next steps
- Answer from your phone: Tailscale, the PWA and push notifications.
- Multiple machines: one main server, harnesses on your laptops.
- Your first tree: plan and run dependent tasks.