On this page
Overview
VM Bridge runs T3 Code agents on cloud VMs. You pair an unchanged T3 Code app with VM Bridge once. After that, VM Bridge creates, wakes and sleeps VMs on your sandbox provider, and sends each project and thread to the right one.
- Each project has its own VMs. Projects never share a disk, a process list or a shell. A busy project gets more than one.
- A VM sleeps after it has been idle for a set time, and wakes when you send a message.
- Several providers at once: boxd, Instabox, Daytona, Boat, Railway, E2B, Freestyle, Superserve and Kubi. Pick one per repository, or let new VMs use the default.
- Everything is set up from a web dashboard behind one password: provider keys, GitHub, agent sign-ins and device pairing.
- T3 Code needs no changes. To the app, VM Bridge looks like a single T3 server.
Install
VM Bridge runs on macOS and Linux. You need an account with one of the supported providers, and T3 Code on the devices you want to pair. One command installs the server, the dashboard and the command line, as one file in ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/vkpdeveloper/vmbridge/main/install.sh | sh
Then run vmbridge and open the setup link it prints. Run the same command again to update.
To build from source instead, with Bun 1.4.4 or newer:
git clone https://github.com/vkpdeveloper/vmbridge cd vmbridge bun install bun run compile # dist/vmbridge ./dist/vmbridge
No machine of your own? Run VM Bridge on Cloudflare Workers instead. You need a Cloudflare account, and the free Workers plan is usually enough. The deploy screen asks for a dashboard password and an encryption key.
Deploy to CloudflareThe Cloudflare guide covers the secrets, what gets deployed, limits and cost.
Run
On first start, VM Bridge prints a one-time setup link for each address. It opens onboarding, where you choose a dashboard password of at least 8 characters. On a machine with no terminal, set VMBRIDGE_PASSWORD for the first start, or run vmbridge password.
Data lives in ~/.vmbridge. Set VMBRIDGE_HOME to move it. The background service uses launchd on macOS and systemd on Linux, and writes its log to ~/.vmbridge/vmbridge.log.
$ vmbridge service install --port 3774Open /dashboard on any address VM Bridge printed and log in with your password. Accounts has three tabs.
- Providers. Add one or more providers and paste their keys. VM Bridge checks each key before saving it. The first one you add is the default.
- GitHub. A personal access token so agents can clone, push and open pull requests.
- Agent sign-in. Sign in to Codex with ChatGPT and to Claude with your Claude account, or add a token or an OpenCode key.
Under Settings you choose the VM size (by default the closest each provider has to 2 vCPU and 8 GB), how many idle minutes before a VM sleeps (5 by default), and the T3 version to install on VMs. Under Repositories you can send a repository to a given provider and VM size.
Under Settings, Devices, name the device and create a pairing link. In T3 Code, add a remote environment and paste the link.
- Each link works once and expires after 15 minutes.
- Pairing swaps the link for a token that only that device holds. VM Bridge stores a hash of it.
- Remove a device under Settings, Devices to sign it out right away.
T3 Code keeps one connection to VM Bridge. VM Bridge keeps one connection to the T3 server on each awake VM, and routes each request by its project or thread.
- Answered by the bridge. Config, the project list and threads on sleeping VMs come from VM Bridge in about 1 ms.
- Forwarded to a VM. Messages, file browsing and Git status go to the thread's VM, about 150 to 230 ms away depending on the provider.
- New projects. Opening a repository creates a VM, installs Node, T3 and the agent CLIs, starts T3 and clones the repository. A fresh VM is ready in 16 to 24 seconds, or about a minute on Railway.
- New threads. Each goes to one of its project's VMs with room: fewer than 2 running turns per vCPU, under 80% of memory used and 3 GB of disk free. An awake VM comes first, then a sleeping one. With no room anywhere, VM Bridge adds a VM like the project's first, up to 4. If the provider refuses, the thread runs on the least loaded VM and its setup says it may be slow.
- Running threads stay put. A thread's worktree, branch and unpushed changes live on its VM, so it never moves. Branch lists show branches from all of a project's VMs, and a new thread from a branch only one VM has starts on that VM. Extra VMs sleep like any other and are never deleted on their own.
A VM counts as idle when no device has used it and nothing is waiting on it: no running agent turn, queued work, pending approval or enabled automation. After the idle minutes you set, VM Bridge saves each thread on that VM and puts it to sleep. The threads stay readable in T3 Code while it sleeps.
Send a message in a sleeping thread and T3 Code shows Waking the boxd VM... until the VM answers. Then the message goes through as usual.
Each provider also has its own idle or time limit as a safety net in case VM Bridge is offline. Railway and Kubi have none, so VM Bridge never sets one there.



- boxd wakes a paused VM on any traffic, so VM Bridge closes its connection before it pauses one.
- Daytona uses container sandboxes, which stop rather than pause. Files stay, and T3 starts fresh on wake.
- Boat VMs start in the Boat environment you choose.
- Railway has no pause. Sleep saves a checkpoint and removes the VM. Wake creates a new VM from it. Railway needs an account or workspace API token and an environment ID.
- Instabox uses the agent-browser template.
- E2B fixes CPU and memory per template. VM Bridge builds one template per size in your account the first time you use that size, which takes about 15 s.
- Kubi stops a VM to sleep it, and starting it again reboots it, so T3 starts fresh on wake. VMs are persistent by default. A disposable VM, picked in the Kubi settings, is deleted after 7 days asleep. The API key needs read, exec, power and network.
- Freestyle, Superserve and Kubi have one machine size, so small, medium and large are the same VM.
Agents and git sign in only with what you add in Accounts, never with sign-ins from the VM provider. Each agent sign-in is a profile saved, encrypted, in ~/.vmbridge/main.db. Each agent uses one profile at a time, and VMs get it when they start.
Git on each VM signs in to GitHub with the token and commits as your GitHub account, using GitHub's private noreply email. SSH remotes such as git@github.com:you/app.git go over HTTPS with the token. The GitHub CLI, gh, is installed and signed in, so agents can open pull requests.
VM Bridge refreshes the Codex sign-in before it expires and gives the new tokens to every awake VM, so VMs never sign each other out.
Signing in with your Claude account makes the same one-year token as claude setup-token. Approve on claude.ai, then paste the code it shows into the dashboard.
Under Settings, Environment in the dashboard, add variables every VM gets. T3, the agents and the commands they run see them, and so do login and interactive shells on the VM, such as over SSH.
- An awake VM restarts T3 to apply a change as soon as nothing runs on it. A running turn finishes with the values it started with.
- A sleeping or stopped VM applies it when it wakes, before T3 serves anything.
- A new VM has them before T3 first starts.
- VM cards show Update pending until a VM has the latest values.
Values are kept with VM Bridge's other secrets and are never shown again: to change one, set it anew. On the VM they live in a file only the VM user can read. Names VM Bridge sets itself, or that would break shells, are refused: for example PATH, HOME, CLAUDE_CONFIG_DIR, CODEX_HOME, GH_TOKEN and anything starting with T3CODE_ or VMBRIDGE_.
Skills
Under Skills in the dashboard, press Add skill to install one from skills.sh, or use the This machine tab to install one found in ~/.claude/skills, ~/.agents/skills or ~/.codex/skills. Every VM gets every installed skill:
- Awake VMs get it right away, even during an agent turn, without restarting T3 or the agents.
- A sleeping or stopped VM gets it when it wakes, before T3 starts serving.
- A new VM has every skill before T3 first starts.
- Edits to a skill on this machine reach the VMs within a few seconds. A skills.sh skill changes only when you press Update.
- Removing a skill takes it off every VM. Skills put on a VM some other way, and a skill with the same name already there, are left alone.
Switch on Sync all to install every skill in those folders. New skills there follow within a few seconds, and one deleted here comes off the VMs. When two folders hold the same skill name, the first in the order above wins, and skills over 5 MB are skipped. Turning it off keeps what it installed until you remove it. skills.sh skills are not affected.
Claude Code picks up new skills in a running session. Codex notices changes on its own; if a skill does not show, start a new thread. skills.sh skills download as text files.
The AGENTS.md tab of the Skills page lists each agent's global file found on this machine. Switch one on and every VM gets it, at the path that agent reads, on the same terms as skills: awake VMs right away, sleeping VMs before they serve anything on wake, new VMs at setup, and edits here within a few seconds.
Only files that exist here are copied, so an agent without one gets none. Switching a file off, or deleting it here, takes it off the VMs. VM Bridge only replaces or removes a file it wrote: a file a VM already had, or one edited on the VM, is left alone. The files stay in memory on this machine and are never logged.
VM Bridge listens on 0.0.0.0 by default, so phones and laptops on your network can reach it. Pass --host 127.0.0.1 to keep it on this machine.
Turn on Tailscale HTTPS under Settings to reach VM Bridge from anywhere on your tailnet with a certificate.
Cloudflare Tunnel gives VM Bridge an HTTPS address on the public internet, so you can reach it from anywhere without opening a port. It runs through cloudflared, Cloudflare's free tool. Install it, and the switch shows up under Settings, Addresses:
brew install cloudflared
The tunnel is off until you turn it on, because anyone on the internet can then reach your login page. Your dashboard password, pairing links and the one-time setup link still protect everything behind it. Once it is on, its address appears with the others: in Settings, in the links vmbridge run prints and in pairing links.
- With your own domain, VM Bridge makes a tunnel named
vmbridge-plus the first 8 characters of its ID, and adds the DNS record for your hostname. It never replaces a record you already have. - Its config and the tunnel's credentials live in
~/.vmbridge/cloudflared. A dashboard tunnel's token is kept with your other secrets. - cloudflared connects to VM Bridge on a port of its own on this machine, picked the first time you turn the tunnel on and kept after that. Settings shows it: point a dashboard tunnel's hostname at
http://localhost:plus that port. If another app takes the port, VM Bridge picks a new one, and you update the dashboard tunnel to match. - Free addresses cannot stream live updates, so the dashboard refreshes every 5 seconds there. Your own domain and dashboard tunnels update live.
- VM Bridge only believes the visitor address and HTTPS details Cloudflare adds when they arrive on the tunnel's port from this machine. Failed logins are counted per visitor, so one person cannot lock everyone out.
- While it is on, the tunnel starts and stops with VM Bridge, including when you close its terminal. If cloudflared stops on its own, VM Bridge starts it again after a second, waiting longer after each failure, up to a minute. Its warnings and errors go to the VM Bridge log with tokens hidden.
- Everything is in
~/.vmbridge/main.db, readable only by your user. On Cloudflare it is in the Durable Object's storage instead. - The dashboard API never returns a saved secret. You can replace a key, not read it back.
- Logs record which call went where and how long it took. They never hold message contents or tokens.
- Each T3 server on a VM requires its own session token on every request, and only VM Bridge holds it. Public preview URLs show nothing without it.
- Requests to VMs refuse redirects, so a token can never be sent to another site.
VM Bridge encrypts everything sensitive it saves, by default, with AES-256-GCM and a key that only your install has.
- Encrypted: provider keys, the GitHub token, environment variables for VMs, each VM's T3 token, installed skill files and agent sign-ins.
- Not encrypted: chat history, queued messages, logs and settings. They stay in files only your user can read.
On first start VM Bridge makes a random key and saves it in ~/.vmbridge/encryption.key, readable only by your user. To use your own key, set VMBRIDGE_ENCRYPTION_KEY to 32 random bytes in base64. It takes the place of the file.
$ openssl rand -base64 32The key file sits next to your data, so a copy of the whole folder holds both. Keeping the key outside the folder, in VMBRIDGE_ENCRYPTION_KEY, is stronger.
Back up the key somewhere apart from your data, such as a password manager: the contents of encryption.key, or the value you set. To restore it, put the file back or set the variable again.
VM Bridge will not start with the wrong key or without its key, so it never overwrites what you saved. If the key is lost, no one can read those values again, you included: start with a new data folder and add your provider keys, agent sign-ins, environment variables and GitHub token again.
Updating from a version without encryption encrypts your saved data on first start. After that, older versions can't read it, so don't go back to one.
Develop
bun run dev # server and dashboard, restarted on change bun run check # typecheck and tests
apps/server: the T3 gateway, the fleet of VMs, providers and the dashboard API.apps/web: the dashboard.apps/cli: thevmbridgecommand.apps/landing: this site.packages/contracts: types shared by the server and the dashboard.
Still stuck?
The FAQ answers the common questions. Anything else, open an issue on GitHub.