agentleFS
VercelKnown publishervercel-labs/screen-relay/skills/vercel-sandbox/SKILL.md

vercel-sandbox

Skill456 starsChanged 15 days agoApache-2.0View on GitHub

Run and control screen-relay inside a Vercel Sandbox.

  • Installs packages

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run these steps in order. The port must be published before the first up, so that --public can match the sandbox URL.

    line 9
  2. Distinctive:

    Create the sandbox with port 8080 published:

    line 11
  3. Distinctive:

    Start the session behind the public URL:

    line 33
  4. Very specific:

    Run the commands in the sandbox itself.

    line 47
  5. Very specific:

    Stop the desktop with screen-relay down before you stop the sandbox with sandbox stop <name>.

    line 68

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

screen-relay in Vercel Sandbox

Run these steps in order. The port must be published before the first up, so that --public can match the sandbox URL.

  1. Create the sandbox with port 8080 published:

    sandbox create --name <name> --publish-port 8080

    To publish the port on a sandbox that already exists, run sandbox config ports <name> -p 8080. Either command prints an HTTPS URL such as https://<id>.vercel.run. Note it.

  2. In the sandbox, install the CLI:

    npm install -g screen-relay
  3. Install the system packages and build the engine:

    screen-relay install --yes

    On a fresh sandbox this can take several minutes. Run it with a long command timeout or in the background, and wait for it to exit. It is safe to repeat.

  4. Start the session behind the public URL:

    screen-relay up -d --bind 0.0.0.0 --public https://<id>.vercel.run

    --bind 0.0.0.0 lets the Sandbox HTTPS proxy reach the engine. --public creates a token and sets the host the proxy must send. Piped, up -d prints the viewer URL with its #token= fragment. Treat the whole URL as a secret, and share it only through the user's secret channel.

  5. Check the session:

    screen-relay status --json

Run the commands in the sandbox itself. sandbox ssh <name> opens a shell in it.

Extend the sandbox lifetime when needed:

sandbox extend <name> 1h

Control it

The default desktop is X11 with XFCE. Start a terminal with screen-relay run -- xfce4-terminal, then run the control loop from screen-relay skills get core.

Errors

  • unreachable with Connection refused.: the engine is not listening. Run screen-relay up -d.
  • unreachable with The host name did not resolve. or The TLS certificate was rejected.: check the edge URL and certificate, then run screen-relay status --url https://<id>.vercel.run --token-file <FILE>.
  • unauthorized: pass the session's token with --token-file FILE or SCREEN_RELAY_TOKEN_FILE.
  • forbidden: --public does not match the URL you reached, or a proxy rewrote Host or Origin.
  • busy: another controller holds input. See One controller in screen-relay skills get core.
  • component_failed or timeout from up: read data.component, then run screen-relay logs <component> and screen-relay doctor.

Stop the desktop with screen-relay down before you stop the sandbox with sandbox stop <name>. The full workflow is in screen-relay skills get core.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.