Ports.
Start a server on the box and open it on your laptop as localhost, with no flags or config. Mirroring is on by default and takes a few seconds.
How it works
The agent on the box watches for listening TCP ports. When one appears, the daemon on your machine opens the same port on 127.0.0.1 and tunnels it to the box. Servers that bind only to the box's loopback (Vite, most dev servers) are relayed by the agent, and websockets work. On Windows the daemon runs while you are signed in.
npm run dev
# ready on http://localhost:3000
# two seconds later, localhost:3000 works on your machineInspect and toggle
| Command | What it does |
|---|---|
prized ports ls | Every box listener with its process and mirror state. |
prized ports toggle 3000 | Flip a port off or back on. The preference persists across restarts. |
prized proxy box-3fa9 5432 | Forward one port from any box to 127.0.0.1:5432 until Ctrl-C. |
An interactive prized ssh session to a non-default box forwards that box's ports for the life of the session.
Limits
- TCP only. UDP is not forwarded.
- Ports 3000 through 9999 are auto-mirrored. The range and per-port allow and never lists live in the config's
[ports]section. - Never mirrored: ports below 1024, port 22, and the agent's port 7377; 5900 is off by default. Anything else outside the range needs an allow-list entry or a manual
prized proxy. - A mirrored port is open to your whole machine, like
ssh -Lordocker -p 127.0.0.1:; on a machine you share with other accounts, treat it as if the service were running there unprotected. - Local wins. If something on your machine already listens on a port, the mirror waits,
prized proxyrefuses it, and ansshsession skips it; nothing binds underneath your own server. - Every request crosses the network. An app that makes hundreds of database round trips per page should run next to its database on the box, with only the app port mirrored.
A second box
Each box's daemon mirrors that box's ports: a box connected with prized setup --box mango gets prized --box mango ports ls and prized --box mango ports toggle 3000, automatic mirroring included (Several boxes).
Two boxes listening on the same port collide on your machine, so the second mirror shows as conflicted in ports ls; toggle the port off on one box, or add it to [ports].never in that box's config.
Something unclear or out of date?
Mount
See the whole box in Finder as a local volume, served live over the tunnel. Nothing is copied; the mount uses no disk space on your Mac.
Sessions
Your shell runs on the box. A network drop or a closed lid ends the connection but not the session; reconnect and you are where you left off, running processes included.