Vercel Sandbox Desktop Streaming: Browser Direct Connection, AI Agents Can Take Control

Vercel Labs open-sources screen-relay, streaming sandbox desktops to the browser with AI agent takeover support.
Vercel Labs has open-sourced screen-relay, which streams a full Vercel Sandbox desktop environment to the browser in real time. Users can view and control browsers, Blender, games, or terminals in the sandbox without installing a client. The tool starts with a few Sandbox CLI commands and generates a viewer link with an access token. Only one viewer or AI agent can control input at a time, and users can release control to let an agent take over for supervised automation. The token is the sole permission credential, so link leakage fully exposes the desktop. screen-relay lowers the barrier to remote desktops and sandbox demos and gives AI agents a visual observation window, but it is limited by its single-controller model and experimental status.
Vercel Labs recently open-sourced the screen-relay tool, allowing developers to stream a Vercel Sandbox desktop environment to the browser in real time. Whether it's a browser, Blender, a game, or a terminal, anything displayed on the desktop can be transmitted like a video stream, and users can directly interact with it in the browser. More importantly, you can also use the screen-relay CLI to watch an AI agent take over the same desktop.

Core Features: Real-Time Streaming and Two-Way Control
screen-relay's positioning is very straightforward: turn the full desktop inside the sandbox into an interactive web page. According to Vercel's official introduction, this tool is an open-source project under Vercel Labs. Any application displayed on the desktop—including browsers, 3D modeling software Blender, games, or terminals—can be presented in real time as a stream.
Users do not need to install an additional client. They only need to open the viewer link in a browser to see the live screen of the sandbox desktop, and they can control the mouse and keyboard just like operating a local computer. This design makes remote development, demonstrations, and collaboration extremely lightweight.
For AI agent scenarios, screen-relay provides a CLI interface. You can first watch the agent's operations on the sandbox desktop through the browser, or conversely let the agent take over control, enabling human-machine collaboration or supervised automation. The official documentation emphasizes that only one viewer or agent is allowed to control input at a time to avoid operation conflicts.
Vercel Sandbox is an isolated computing environment provided by Vercel that can run arbitrary code or full operating system images in the cloud. It is commonly used to securely execute untrusted code or host development environments. Compared with traditional virtual machines, it is more ephemeral and created on demand, and its lifecycle can be managed through CLI and API. screen-relay is built on this infrastructure: it captures and encodes the graphical desktop session inside the sandbox (usually based on X11 or Wayland) into a video stream, then transmits it to the browser via WebRTC or a similar protocol, while sending the browser's mouse and keyboard events back to the sandbox, thereby enabling two-way interaction. Understanding the isolation and lifecycle of Sandbox helps clarify the applicable boundaries of screen-relay—it is not a general-purpose remote desktop, but a lightweight streaming layer specifically designed for sandbox scenarios.
Getting Started: Three Commands to Start Streaming
Vercel provides a minimal terminal workflow. First, install and log in to Sandbox CLI 4.12.0 or later, then execute the commands to create a sandbox, start screen-relay, and obtain the viewer link in sequence.
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 prebuilt image already includes screen-relay and the desktop environment, so streaming can begin within seconds after startup. The last command prints a viewer link with an access token; open the full link in a browser. The official documentation warns that anyone who obtains the link can view and control the desktop, so it must be kept secure.
Security and Collaboration: The Token Is the Permission
screen-relay's access control model is based on token links. The access token carried in the link is the only credential; there is no additional account system or permission hierarchy. This means sharing the link is equivalent to sharing control. Vercel explicitly recommends keeping the link private.
In collaboration scenarios, control is exclusive. If you want an AI agent to take over operations while you only observe, you can select "Release control" in the viewer interface. Once the agent connects through the CLI, it gains input permission, and you continue watching the live screen. This design is suitable for automation tasks that require human supervision, such as having an agent perform a series of desktop operations while retaining the ability for human intervention.
Token-based access control is a stateless authentication method: the server issues a link containing a random string, and possession of the link is considered authorization, with no additional login required. Its security depends entirely on the confidentiality of the token. Once leaked, it cannot be traced or revoked at different levels, so it usually needs to be mitigated with short expiration times or reissuance. screen-relay adopting this model means the permission granularity is "all or nothing"—anyone with the link can both view and control the desktop. For scenarios requiring multi-role collaboration or auditing, this model is rather simple. Developers should avoid sharing links on public channels and promptly destroy the sandbox after tasks end to invalidate the token.
Use Cases and Limitations
screen-relay's most direct value lies in lowering the barrier to remote desktops and sandbox demonstrations. Developers can access a full Linux desktop environment directly through a browser without configuring VNC or RDP. For AI agent developers, it provides a visual observation window to see the agent's behavior on the desktop in real time, facilitating debugging and verification.
However, the current solution also has obvious limitations: only one controller is allowed at a time, and multi-person collaboration requires taking turns releasing control; once the access token leaks, the desktop is fully exposed; streaming performance depends on network conditions and sandbox resources. In addition, this tool comes from Vercel Labs and is an experimental project, so stability should be evaluated before use in production environments.
Overall, screen-relay turns a sandbox desktop into a shareable, viewable, and controllable web page, providing a lightweight new approach for remote operation and demonstration of AI agents. As agentic AI becomes more widespread, such visual supervision tools may become a common component in development workflows.
VNC (Virtual Network Computing) and RDP (Remote Desktop Protocol) are two traditional remote desktop protocols: the former is based on the RFB protocol and is cross-platform but limited in performance and image quality; the latter is led by Microsoft and offers a better experience in the Windows ecosystem but is complex to configure. screen-relay's difference is that it is delivered to the browser, requires no client installation, and natively considers AI agents as an input source. However, traditional protocols usually include more mature authentication, encryption, and multi-user session management, while screen-relay currently centers on token links and a single controller and is not yet complete in permission hierarchy and multi-user collaboration. When evaluating adoption, one should weigh the trade-off between "zero client, agent-friendly" and "enterprise-grade security and concurrency."
One-line Summary
Vercel Labs open-sources screen-relay, streaming sandbox desktops to the browser in real time and supporting AI agent takeover.
Paragraph Summary
Vercel Labs has open-sourced the screen-relay tool, which can stream a full Vercel Sandbox desktop environment to the browser in real time. Users can view and control browsers, Blender, games, or terminals in the sandbox without installing a client. The tool can be started with a few Sandbox CLI commands; the prebuilt image includes the desktop environment and streaming components, and after startup it generates a viewer link with an access token. Only one viewer or AI agent is allowed to control input at a time, and users can select "Release control" to let an agent take over, enabling automation under human supervision. The access token is the sole permission credential, and link leakage means the desktop is fully exposed. screen-relay lowers the barrier to remote desktops and sandbox demonstrations and provides a visual observation window for AI agents, but it is limited by its single-controller model and experimental project status.
Related articles

Google Official Course: Single-Agent, Multi-Agent, and Graph Workflow in Practice
Google's official course systematically explains AI Agent design patterns: single agent, sequential agent, parallel agent, graph workflow, loop engineering failure modes, agent evaluation, and multimodal long-term memory architecture, with ADK code examples and selection advice.

OpenAI Launches Dots Agent, ChatGPT Plus Users Get First Access
OpenAI brings its Dots agent to ChatGPT Plus subscribers and updates the mobile app with a dedicated Dots tab. We examine Dots' positioning, the UI changes, and what it means for the agent race.

OpenAI Cuts Dots Price by $80, Opens It to Plus Users
OpenAI opens its Dots AI agent to $20 ChatGPT Plus users, down from the $100 Pro tier—an $80 price cut—and expands availability to the European Economic Area.