Newshot

Stream a Vercel Sandbox desktop to your browser

Summary

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. 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 . Read more

Original text(via Vercel Blog)
题图
题图

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.3sandbox 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.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗