Vercel Sandbox screen-relay: Stream Desktops & Share Control
How Vercel's open-source screen-relay streams Sandbox desktops to your browser over H.264 and hands input control between humans and AI agents.

Q. Can I watch a browser or GUI app running inside Vercel Sandbox in my own browser and hand control back and forth with an AI agent? Yes. With
screen-relay, an open-source tool announced by Vercel on November 30, 2026, you can stream a Vercel Sandbox desktop to your browser over H.264 in real time and pass input control between humans and AI agents usingTake controlandRelease control.
⚠️ Accuracy guardrail: This article is based on the official Vercel Changelog (November 30, 2026), the
vercel-labs/screen-relayGitHub repository (467 stars, v0.1.5), and Vercel Sandbox documentation as of December 1, 2026. The "up to 120 fps" figure comes from the repository description; measured frame rates across real-world networks and any maximum concurrent viewer limits are not published in the official docs and could not be verified.
30-second summary
- What launched: On November 30, 2026, Vercel introduced live browser streaming for Vercel Sandbox desktops powered by its open-source tool
screen-relay. - Core architecture: Captures a virtual display (such as Linux X11 XFCE) inside a Firecracker microVM, encodes it as H.264 for WebCodecs, and enforces a single input owner at a time.
- Agent integration: Supports the
screen-relayCLI (with--jsonoutput andskills get core), a Node SDK, and HTTP/WebSocket APIs for ascreenshot→click/type→screenshotloop. - Security note: Passing
--publicgenerates a viewer URL containing an access token; anyone with that link can view and control the desktop, so keep it private.

Why sandbox desktop streaming matters now
As AI coding agents move beyond terminal commands into browser testing, Blender rendering, and desktop app verification, seeing what the agent actually sees on screen has become a bottleneck. Previously, teams had to pull static screenshot files or wire up their own VNC or remote desktop stack.
Vercel Sandbox already addressed persistent storage with Vercel Drives CLI and Standalone SDK, while mobile workflows are opening cloud devices to agents like Expo Simulators. Adding screen-relay brings that same shared visibility and handoff pattern to Linux desktop GUIs.
How screen-relay works
screen-relay starts a virtual display (X11 with XFCE or headless Wayland with sway on Linux), captures frames, encodes them as H.264, and serves the web viewer, stream, and input API on a single port (127.0.0.1:8080 by default). Any modern browser with H.264 WebCodecs—Chrome, Edge, or Safari—can open the viewer without plugins.

Input ownership strictly follows a Single Input Owner model.
| Session state | Who controls input | Screenshots | How to switch |
|---|---|---|---|
| First viewer opens an idle session | Browser viewer (human) | Available | Granted automatically |
| Viewer opens while agent holds input | AI agent (viewer is view-only) | Available | Click Take control in the viewer |
| Human finishes and hands back to agent | AI agent | Available | Click Release control in the viewer |
One important detail: a successful input command only confirms that the engine applied the input, not that the target app reacted. Agents should always follow an action with screen-relay screenshot to verify the updated state.
Launching a Sandbox desktop in seconds
With Sandbox CLI 4.12.0 or later, you can launch the prebuilt desktop image (vercel-labs/screen-relay/sandbox-desktop:0.1.3) in two commands.
sandbox create --name desktop --timeout 30m -p 8080 \
--image vercel-labs/screen-relay/sandbox-desktop:0.1.3
sandbox exec desktop -- screen-relay up -d --public $(sandbox domain desktop 8080)
The second command prints a viewer link with an embedded access token. Opening it streams the XFCE desktop directly in your browser. When an agent hits a login screen or 2FA prompt, a human can click Take control, complete the step, and click Release control so the agent resumes.
| Item | Prebuilt Vercel Sandbox image | Self-hosted Linux · macOS · Windows |
|---|---|---|
| Installation | --image vercel-labs/screen-relay/sandbox-desktop:0.1.3 |
npm install -g screen-relay && screen-relay install |
| Requirements | Sandbox CLI 4.12.0+ |
Node.js 22+, Linux (X11/Wayland) · macOS 12.3+ · Windows 10+ x64 |
| License | GPL-3.0 (prebuilt image links x264) | Apache-2.0 (system x264 build uses GPL-2.0-or-later) |
| Remote access | --public generates a tokenized URL |
127.0.0.1:8080 default (SSH tunnel or --public) |

Pricing and operational caveats
Vercel Sandbox uses Active CPU pricing, meaning you are not billed for CPU while your agent waits on LLM calls or external APIs. In the iad1 example (1 vCPU, 2 GB memory), an idle sandbox (1% CPU) costs $1.05 per day ($31.45 per 30 days), a busy sandbox all day costs $4.09 per day ($122.69 per 30 days), and a stopped sandbox costs $0.00.
Two operational points deserve attention. First, the --public viewer URL carries an access token that grants full desktop control to anyone who holds it, so avoid pasting it into shared logs or public chats. Second, because the prebuilt Vercel Sandbox desktop image links x264, it is distributed under GPL-3.0 (LICENSES/GPL-3.0.txt), which teams with strict license policies should review before redistribution.
Toris's take
For solo developers building GUI or browser-heavy agent workflows, this is worth adopting right away. Debugging headless browser runs that stall on visual states used to be painful; screen-relay lets you watch the live desktop and step in with one click whenever the agent gets stuck.
If your task only needs DOM scraping or pure API calls, a lightweight headless sandbox remains faster and cheaper. Reserve --image vercel-labs/screen-relay/sandbox-desktop:0.1.3 for workflows that genuinely need a screen—such as manual sign-in handoffs or desktop app testing—and stop the sandbox as soon as the run finishes so memory charges drop to zero.
Sources
Advertisement