Run it
It is one file and needs no runtime. Setup is three commands.
curl -fsSL https://vitro.run/tunnel/install.sh | sh
vitro-tunnel login
vitro-tunnel tunnel
The installer puts it on your PATH. Targets are
linux-amd64, linux-arm64 and macos-arm64. login uses the
same OAuth sign-in as claude mcp add: it opens a browser
once and you paste nothing. tunnel with no port finds the
dev server running in your current directory. The fleet picks the port
it answers on, and tunnel prints it. If you named a port,
navigate to that port still reaches it. The script is
served as plain text.
In a sandbox, where there is no browser
Run the same command. With no browser available, login
shows a code to approve on your laptop or phone (RFC 8628). The
credential it returns needs no second host and does not expire
mid‑run.
vitro-tunnel login # picks the right door
vitro-tunnel login --device # or ask for the code
To check what must be reachable, read
/sandbox.json before installing, or run
vitro-tunnel doctor --json inside the box.
tunnel tells you when your platform already publishes the
port and you need no tunnel.
Somewhere a script runs unattended
In CI nobody is there to approve a sign-in. Download the file and pin the version:
V=1.2.3
curl -fsSL "https://vitro.run/tunnel/linux-amd64?version=$V" -o vitro-tunnel
curl -fsSL "https://vitro.run/tunnel/linux-amd64/sha256?version=$V" \
| sed 's| .*| vitro-tunnel|' | shasum -a 256 -c -
chmod +x vitro-tunnel
The credential
login saves an OAuth grant in
~/.vitro/config.json and refreshes it, so a tunnel can
outlive one access token. For CI, a baked image or a secret store, pass a
psk_live_… key. Flags override
VITRO_URL/VITRO_KEY, so an image's settings
can still be changed at run time.
vitro-tunnel --key-file /run/secrets/vitro …
vitro-tunnel --key @/run/secrets/vitro … # one slot to fill
vitro-tunnel --key - … < /run/secrets/vitro
--url defaults to https://vitro.run. Point it
at another vitro instance to use that one.
When the client cannot reach the fleet
The same binary bridges MCP. See the tool reference.
vitro-tunnel mcp
vitro-tunnel serve --port 43218
Bytes on your own disk
MCP cannot write a screenshot or an artifact to your disk. These commands can.
vitro-tunnel screenshot --page "$PAGE" -o broken.png
vitro-tunnel fetch -o shot.png vitro://artifact/9f2c
Behind somebody else's network
HTTPS_PROXY is honoured. doctor exits
non-zero when it cannot reach the fleet, so you can use it as a gate.
vitro-tunnel doctor