vercel-sandbox
Skill by vercel-labs
Vercel Sandbox runs agent-browser and headless Chrome inside microVMs for browser automation. It is for developers building browser tasks into apps deployed on Vercel.
Install vercel-sandbox
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel-labs/agent-browser /tmp/agent-browser && mkdir -p ~/.claude/skills && cp -r /tmp/agent-browser/skill-data/vercel-sandbox ~/.claude/skills/vercel-sandboxRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel-labs/agent-browser /tmp/agent-browser && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-browser/skill-data/vercel-sandbox ~/.gemini/antigravity-cli/skills/vercel-sandboxAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill runs agent-browser and headless Chrome inside ephemeral Vercel Sandbox microVMs. A Linux VM starts on demand, runs browser commands, and shuts down. It works with any Vercel-deployed framework, including Next.js, SvelteKit, Nuxt, Remix and Astro.
The skill includes code patterns for screenshots, accessibility snapshots, multi-step form workflows and scheduled cron jobs. It also covers an MCP mode that keeps one agent-browser process running over stdin. Sandbox snapshots can cut startup from about 30 seconds to under a second. The sandbox keeps state between commands, so a full session can run in one VM. It suits developers who need browser automation inside a Vercel app.
Written from the project's SKILL.md and checked against it.
What it can do
- ScreenshotsOpens a URL, saves a screenshot and returns it as base64 with the page title.
- Accessibility snapshotReturns an interactive accessibility snapshot of a page using the snapshot command.
- Multi-step workflowsRuns sequences such as opening a page, filling fields, clicking and waiting in one sandbox.
- MCP server over stdinKeeps one agent-browser mcp process running and sends tool calls over stdin, using agent_browser_open and agent_browser_snapshot.
- Sandbox snapshotsBoots sandboxes from a saved image with dependencies and Chromium preinstalled for fast startup.
- Scheduled browser tasksCombines browser runs with Vercel Cron Jobs for recurring checks such as pricing page snapshots.
What you need
- A Vercel account and a Vercel-deployed app
- Vercel personal access token, team ID and project ID for local development
- @vercel/sandbox 3.7 or later for MCP stdin mode
- pnpm to install the dependencies
Try asking
- Take a screenshot of example.com using my Vercel app's browser sandbox
- Get an accessibility snapshot of our pricing page in a Vercel Sandbox
- Fill and submit a contact form on a site using agent-browser in a sandbox
Good to know
- Without a sandbox snapshot, each run takes about 30 seconds to install dependencies and Chromium
- The timeout option in MCP mode applies to each request and to close()
- Pass installSystemDependencies as false only when the image already has Chromium's libraries
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skill-data/vercel-sandbox/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to vercel-sandbox
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
vercel-sandbox: common questions
Does Vercel Sandbox browser automation need a sandbox snapshot?
No, but the source recommends one for production. Without it, each run installs system dependencies, agent-browser and Chromium, which takes about 30 seconds. With AGENT_BROWSER_SNAPSHOT_ID set, startup is sub-second.
How does authentication work for Vercel Sandbox browser runs?
On Vercel deployments the Sandbox SDK authenticates automatically through OIDC. For local development, set VERCEL_TOKEN, VERCEL_TEAM_ID and VERCEL_PROJECT_ID.
Which frameworks does the agent-browser sandbox pattern support?
The source says the pattern works the same across Next.js, SvelteKit, Nuxt, Remix and Astro. Only the location of the server-side code changes.
How do I install vercel-sandbox?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is vercel-sandbox free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is vercel-sandbox safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to vercel-sandbox?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
