Skip to content
Dashboard

Stream a Vercel Sandbox desktop to your browser

Product, Sandbox

You can now stream the desktop of a Vercel Sandbox to your browser with screen-relay, an open-source tool from Vercel Labs. Anything displayed on the desktop streams live, like a browser, Blender, a game, or a terminal. You can control it in your browser, or watch your agent control the same desktop with the screen-relay CLI.

To try it from your terminal, install and sign in to Sandbox CLI 4.12.0 or later.

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)

Start a Sandbox desktop and get its viewer link.

The prebuilt image includes screen-relay and a desktop, so you can start streaming in seconds. The last command prints a viewer link with an access token. Open the full link in your browser. Anyone with it can view and control the desktop, so keep it private.

Only one viewer or agent can control input at a time. To let your agent take over while you watch, select Release control in the viewer.

Learn more in the screen-relay for Vercel Sandbox documentation.

Contributors