vercel-sandbox
Skill44k starsChanged 2 months agoApache-2.0View on GitHub
Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.
- Installs packages
7 other projects use a version of this, 4 of them edited.
How people change it
All 4 edited versions we compared keep every one of its 2 rules.
Of the 4 edited versions we compared: 4 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- vercel/vercel-plugintheir own version, first seen Aug 12, 2026
- openai/pluginsedited, first seen May 13, 2026
- vercel-labs/workflow-workshopedited, first seen Apr 20, 2026
- ludwighb/claude_skillsedited, first seen Apr 13, 2026
- miketromba/skillstheir own version, first seen Apr 8, 2026
- getsentry/juniortheir own version, first seen Apr 5, 2026
Who's talking about vercel-labs/agent-browser
- @skorfmann.com“agent-browser from Vercel Labs: A Rust-powered CLI that gives AI agents browser superpowers. The snapshot …”Bluesky · Jan 17, 2026 · 27 likes
- @psoheil.bsky.social“Instead of relying on traditional browser automation scripts, Agent Browser gives AI agents a structured …”Bluesky · Nov 8, 2026 · 14 likes
- NixOS/nixpkgs“agent-browser: init at 0.23.3”GitHub · Mar 9, 2026 · 6 reactions
- anomalyco/opencode“How to serve and display images in web UI?”GitHub · Mar 5, 2026 · 5 reactions
- @jmcodes.bsky.social“As someone building AI-native products, Exa + agent-browser has become a core part of my agent's stack. Exa …”Bluesky · Feb 28, 2026 · 5 likes
The biggest 5 of 103 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 103
Talked about on GitHub, Bluesky and Hacker News (103 times).
On GitHub · 50
- Mar 9, 2026agent-browser: init at 0.23.3 — NixOS/nixpkgs6 reactions · 11 comments
- Mar 5, 2026How to serve and display images in web UI? — anomalyco/opencode5 reactions · 3 comments
- Jan 27, 2026Add agent-browser to default trusted dependencies — oven-sh/bun5 reactions · 2 comments
- Jun 28, 2026agent-browser: 0.27.0 -> 0.31.1 — NixOS/nixpkgs2 reactions · 5 comments
- May 18, 2026chore(deps): bump the npm_and_yarn group across 4 directories with 21 updates — HarleyCoops/hermes-agent2 reactions · 3 comments
45 more on GitHub
- Apr 30, 2026Agent fails with `Failed to start CDP` on Linux — `/json/version` returns 404 on default user-data-dir (Chromium 146 regression) — browseros-ai/BrowserOS2 reactions · 4 comments
- Feb 17, 2026Refactor mise skills report task alias — jey3dayo/dotfiles2 reactions · 2 comments
- Nov 21, 2026docs(skills): vendor complete Agent Browser skills and align QA — carterdea/dots1 reaction · 2 comments
- Nov 18, 2026feat: 浏览器基础技能适配与持续优先更新机制 — seaworld008/Commonly-used-high-value-skills1 reaction · 1 comment
- Oct 26, 2026[Feature]: Attach ego-browser to external Electron apps via CDP — citrolabs/ego-lite1 reaction
- Oct 21, 2026feature: better support for headless browser — demigodmode/pi-web-agent1 reaction · 1 comment
- Sep 21, 2026chore(deps): bump the development-minor-patch group across 1 directory with 8 updates — MarcosCamara01/ecommerce-template1 reaction · 2 comments
- Sep 14, 2026chore(deps): bump the development-minor-patch group with 7 updates — MarcosCamara01/ecommerce-template1 reaction · 2 comments
- Sep 8, 2026chore(deps): bump the development-minor-patch group with 9 updates — MarcosCamara01/ecommerce-template1 reaction · 3 comments
- Sep 3, 2026chore(deps): bump the minor-and-patch group with 14 updates — mcowger/plexus1 reaction
- Aug 20, 2026chore(deps): bump the minor-and-patch group across 1 directory with 9 updates — mcowger/plexus1 reaction · 1 comment
- Jul 20, 2026Support CloakBrowser as stealth Chromium backend for agent-browser skill — ahmadrosid/nakama1 reaction
- Jun 25, 2026[next-dev-loop] Fix some papercuts — vercel/next.js1 reaction · 2 comments
- May 11, 2026[BUG] Wrong .metadata.json after `skillshare update --all` — runkids/skillshare1 reaction · 2 comments
- May 6, 2026Split skill installs from hiring with new canManageSkills permission — paperclipai/paperclip1 reaction · 1 comment
- Mar 25, 2026Create a CLI for it check https://github.com/vercel-labs/agent-browser — appclawhq/AppClaw1 reaction · 1 comment
- Mar 23, 2026fix: prevent state commands from starting daemon without session_name (#677) — hyunjinee/agent-browser1 reaction · 1 comment
- Mar 9, 2026✨ feat(agent-browser): add browser automation skill and tool detection — lobehub/lobehub1 reaction · 4 comments
- Mar 9, 2026[security](deps-dev): bump agent-browser from 0.9.0 to 0.17.0 — jscraik/Design-System1 reaction · 2 comments
- Mar 4, 2026Compare with agent-browser — pinchtab/pinchtab1 reaction · 2 comments
- Feb 13, 2026chore(deps)(deps-dev): Bump the development-dependencies group with 18 updates — jscraik/Design-System1 reaction · 4 comments
- Jan 28, 2026chore(deps)(deps-dev): Bump the development-dependencies group across 1 directory with 21 updates — jscraik/Design-System1 reaction · 4 comments
- Jan 28, 2026Add Recommended Skills section with agent-browser — jellydn/my-ai-tools1 reaction · 2 comments
- Jan 28, 2026Add new sections for recommend skill, start with https://github.com/vercel-labs/agent-browser — jellydn/my-ai-tools1 reaction
- Nov 22, 2026Bump agent-browser from 0.27.0 to 0.43.0 in /business-desk — foralishalolz/hrmotorsedit0 reactions · 1 comment
- Nov 22, 2026Bump agent-browser from 0.42.0 to 0.43.0 in the npm group — HatimZafr/screen-relay0 reactions
- Nov 20, 2026chore(deps): bump agent-browser from 0.41.1 to 0.43.0 in /npm/agent-qa — rasmusjosefsson/agent-qa0 reactions · 1 comment
- Nov 19, 2026chore(deps): bump agent-browser from 0.39.2 to 0.43.0 — jaysteel-bit/Exo-AI0 reactions
- Nov 14, 2026agent-browser as a managed tier: not adopted, re-evaluation tracker — openabdev/openab-computer0 reactions · 6 comments
- Nov 12, 2026【总控】T-017 直控 node-3 浏览器自动化 PoC:P0 只读可行性核验(node-1) — xy3293/muse-hub0 reactions
- Nov 12, 2026Github trending [vercel-labs/agent-browser] 4.98万⭐ 给 Agent 的脚本化浏览器:页面读成无障碍树、元素挂 @e1 ref,一步一动作一验证 — web1992/github-trending0 reactions
- Nov 11, 2026Github trending [vercel-labs/agent-browser] 4.92万⭐ Vercel Agent 浏览器 CLI:snapshot + @e1 一步一验证,v0.42.0 出平台原生二进制 — web1992/github-trending0 reactions
- Nov 9, 2026chore(deps): bump agent-browser from 0.27.0 to 0.41.2 in /v3/@claude-flow/browser — clange78/Agents0 reactions · 1 comment
- Nov 8, 2026Github trending [vercel-labs/agent-browser] Vercel 出的 Agent 专用浏览器 CLI:Rust 原生,页面读成紧凑文本+@e1 元素引用,一条命令走一步,4.68万⭐ — web1992/github-trending0 reactions
- Nov 4, 2026nov 2026 — kimtth/azure-openai-llm-notes0 reactions
- Oct 17, 2026Context-aware plugin suggestions: frontend-design, Strix, agent-browser and AAS catalog — ErenTahiroglu/AI-Toolchain-Manager0 reactions
- Oct 10, 2026Research and select DID framework/blockchain platform — p2arthur/team-agent-bond0 reactions
- Oct 5, 2026Can't find Chrome installed in ~/Applications on macOS — 265866/agent-browser0 reactions
- Oct 5, 2026[bug] Windows ARM64 release asset missing — postinstall creates 0-byte placeholder causing "cannot run on this PC" dialog — 265866/agent-browser0 reactions · 1 comment
- Oct 5, 2026Window install failed from source — 265866/agent-browser0 reactions · 1 comment
- Oct 2, 2026Prevent unattended agent-browser sessions from exhausting host RAM and swap — alex-mextner/ha-configs-rs-bg-spomenik0 reactions · 1 comment
- Jul 29, 2026[Feature] 内置工具开关 — OpenMinis/OpenMinis0 reactions
- Jul 12, 2026Known issue: agent-browser clicks can miss wrapped inline links — lklyne/specular0 reactions
- Jul 11, 2026Explore using Vercel-Labs agent-browser to test a web GUI — jtigger/ai-zk0 reactions
- Jun 10, 2026Add 'browse' — jason-riddle/tools0 reactions
On Bluesky · 50
- Jan 17, 2026agent-browser from Vercel Labs: A Rust-powered CLI that gives AI agents browser superpowers. The snapshot command returns an accessibility… — @skorfmann.com27 likes and reposts · 3 replies
- Nov 8, 2026Instead of relying on traditional browser automation scripts, Agent Browser gives AI agents a structured way to navigate websites,… — @psoheil.bsky.social14 likes and reposts · 4 replies
- Feb 28, 2026As someone building AI-native products, Exa + agent-browser has become a core part of my agent's stack. Exa gets them the right docs fast,… — @jmcodes.bsky.social5 likes and reposts
- Jun 20, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 36,529 (+103) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social4 likes and reposts
- Nov 21, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★53194 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social3 likes and reposts
45 more on Bluesky
- Nov 7, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★46623 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social3 likes and reposts
- Aug 19, 2026📦 vercel-labs / agent-browser ⭐ 40,943 (+78) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social3 likes and reposts
- Jul 16, 2026📦 vercel-labs / agent-browser ⭐ 38,578 (+83) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social3 likes and reposts
- Jul 7, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★38008 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social3 likes and reposts
- May 9, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★32340 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social3 likes and reposts
- Nov 11, 2026今日のGitHubトレンド vercel-labs/agent-browser AIエージェント向けのブラウザ自動化ツールです。 Rust製のCLIを通じて、ページの閲覧や要素の操作をコマンド単位で実行できます。… — @dailygithubtrends.bsky.social2 likes and reposts
- Nov 7, 2026agent-browser — Browser automation CLI for AI agents Link: https://github.com/vercel-labs/agent-browser #OpenSource #GitHub #DevTools — @thestackradar.bsky.social2 likes and reposts
- Sep 5, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★41985 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social2 likes and reposts
- Aug 22, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★41098 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social2 likes and reposts
- Jul 22, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★38905 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social2 likes and reposts · 1 reply
- Jul 21, 2026📦 vercel-labs / agent-browser ⭐ 38,893 (+77) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social2 likes and reposts
- Jun 24, 2026📦 vercel-labs / agent-browser ⭐ 37,015 (+96) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social2 likes and reposts
- Jun 4, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 35,194 (+105) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social2 likes and reposts · 1 reply
- Mar 16, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★0 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social2 likes and reposts
- Feb 20, 2026Meet agent-browser, a CLI for automating web tasks for AI agents with a fast Rust binary and various commands for navigation and data… — @ai-linkstream.bsky.social2 likes and reposts
- Feb 2, 2026Today I learned - The agent-browser headless browser automation CLI for AI agents as a replacement for Playwright MCP. Developed by Vercel.… — @dimitristrechas.bsky.social2 likes and reposts
- Jan 14, 2026📢 vercel-labs/agent-browser: Browser automation CLI for AI agents #veille — @camilleroux.com2 likes and reposts
- Nov 10, 2026vercel-labs' agent-browser CLI lets AI agents interact with browsers via commands like open, click, and snapshot, using a background daemon… — @beyond-the-prompt.bsky.social1 likes and repost
- Nov 9, 2026今日のGitHubトレンド vercel-labs/agent-browser AIエージェントがブラウザを操作するためのRust製CLIツールです。 ページをアクセシビリティツリー形式のテキストで取得し、要素ごとの参照番号を用いてシェルから操作できます。… — @dailygithubtrends.bsky.social1 likes and repost · 1 reply
- Nov 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 45,093 (+112) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Oct 28, 2026📦 vercel-labs / agent-browser ⭐ 44,746 (+66) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Oct 24, 2026📦 vercel-labs / agent-browser ⭐ 44,513 (+49) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Oct 8, 2026📦 vercel-labs / agent-browser ⭐ 43,665 (+69) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Sep 23, 2026📦 vercel-labs / agent-browser ⭐ 43,104 (+70) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Sep 17, 2026📦 vercel-labs / agent-browser ⭐ 42,762 (+88) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Sep 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 42,286 (+134) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Sep 2, 2026📦 vercel-labs / agent-browser ⭐ 41,769 (+88) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Aug 11, 2026📦 vercel-labs / agent-browser ⭐ 40,403 (+73) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Aug 7, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★40134 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social1 likes and repost · 1 reply
- Aug 2, 2026📦 vercel-labs / agent-browser ⭐ 39,748 (+74) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Jul 29, 2026📦 vercel-labs / agent-browser ⭐ 39,472 (+89) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Jul 18, 2026🚀 GitHub Intelligence Drop agent-browser (Rust • 🟢) ⭐ 38.7K → https://github.com/vercel-labs/agent-browser lapce (Rust • 🟢) ⭐ 38.7K →… — @githubfeed.bsky.social1 likes and repost
- Jul 7, 2026📦 vercel-labs / agent-browser ⭐ 38,003 (+71) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Jun 1, 2026https://github.com/vercel-labs/agent-browser — @sigmanor.net1 likes and repost
- May 23, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 34,050 (+151) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- May 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 33,446 (+121) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- May 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 vercel-labs / agent-browser ⭐ 32,360 (+196) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost
- Apr 5, 2026これ使ってみよう github.com/vercel-labs/... — @tomoyuki-mikami.bsky.social1 likes and repost
- Apr 4, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / agent-browser ⭐ 26,826 (+421) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost · 1 reply
- Mar 31, 2026vercel-labs / agent-browser: Browser automation CLI for AI agents ★25774 https://github.com/vercel-labs/agent-browser — @rusttrending.bsky.social1 likes and repost
- Mar 24, 2026github.com/vercel-labs/... — @srcaballero.bsky.social1 likes and repost · 1 reply
- Mar 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vercel-labs / agent-browser ⭐ 22,179 (+335) 🗒 Rust Browser automation CLI for AI agents — @github-trending-rs.bsky.social1 likes and repost · 1 reply
- Mar 3, 2026github.com/vercel-labs/... is brilliant — @yejun.dev1 likes and repost
- Feb 22, 2026https://github.com/vercel-labs/agent-browser — @tom-doerr.bsky.social1 likes and repost
- Jan 14, 2026AIエージェント向けのヘッドレスブラウザ自動化CLI。 RustのCLIとNode.jsデーモン(Playwrightを利用)で構成され、クライアント・デーモン構造で動作する。 アクセシビリティツリーからAI向けに最適… ""… — @azu.bsky.social1 likes and repost · 1 reply
On Hacker News · 3
- Jan 25, 2026Agent-Browser by Vercel Labs2 points
- Jan 13, 2026Agent-browser by Vercel: Browser automation CLI for AI agents2 points
- Jan 12, 2026Headless browser automation CLI for AI agents from Vercel2 points
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- openai/plugins★ 7.3k53% same
- vercel-labs/workflow-workshop★ 665% same
- JayAI623/claude-code-config★ 265% same
- ludwighb/claude_skills★ 065% same
Wrote their own version · 3
- getsentry/junior★ 365same name
- vercel/vercel-plugin★ 297same name
- miketromba/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- examples/eve/AGENTS.mdAGENTS.md
- examples/eve/CLAUDE.mdCLAUDE.md
- agentcoreSkill
- coreSkill
- derive-clientSkill
- dogfoodSkill
- electronSkill
- protected-vercel-deploymentsSkill
- slackSkill
- webmcp-genSkill
- agent-browserSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run agent-browser + headless Chrome inside ephemeral Vercel Sandbox microVMs.
- Distinctive: line 146
Run this once, then set the environment variable:
“Common” is measured: kept by at least 6 in 10 of the 7 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.
Files
Browser Automation with Vercel Sandbox
Run agent-browser + headless Chrome inside ephemeral Vercel Sandbox microVMs. A Linux VM spins up on demand, executes browser commands, and shuts down. Works with any Vercel-deployed framework (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.).
Dependencies
pnpm add @agent-browser/sandbox @vercel/sandboxThe sandbox VM needs system dependencies for Chromium plus agent-browser itself. The @agent-browser/sandbox helpers install them by default for fresh sandboxes and use sandbox snapshots (below) for sub-second startup. Pass installSystemDependencies: false only when the sandbox image already provides Chromium's required libraries.
Core Pattern
import {
createAgentBrowserSnapshot,
runAgentBrowserCommand,
withAgentBrowserSandbox,
type VercelSandboxSession,
} from "@agent-browser/sandbox/vercel";
async function withBrowser<T>(
fn: (sandbox: VercelSandboxSession) => Promise<T>,
): Promise<T> {
return withAgentBrowserSandbox(fn);
}Screenshot
The screenshot --json command saves to a file and returns the path. Read the file back as base64:
export async function screenshotUrl(url: string) {
return withBrowser(async (sandbox) => {
await runAgentBrowserCommand(sandbox, ["open", url]);
const titleResult = await runAgentBrowserCommand<{ data?: { title?: string } }>(sandbox, [
"get", "title",
]);
const title = titleResult.json?.data?.title || url;
const ssResult = await runAgentBrowserCommand<{ data?: { path?: string } }>(sandbox, [
"screenshot",
]);
const ssPath = ssResult.json?.data?.path;
if (!ssPath) throw new Error("Screenshot did not return a file path.");
const b64Result = await sandbox.runCommand("base64", ["-w", "0", ssPath]);
const screenshot = (await b64Result.stdout()).trim();
await runAgentBrowserCommand(sandbox, ["close"], { json: false });
return { title, screenshot };
});
}Accessibility Snapshot
export async function snapshotUrl(url: string) {
return withBrowser(async (sandbox) => {
await runAgentBrowserCommand(sandbox, ["open", url]);
const titleResult = await runAgentBrowserCommand<{ data?: { title?: string } }>(sandbox, [
"get", "title",
]);
const title = titleResult.json?.data?.title || url;
const snapResult = await runAgentBrowserCommand(sandbox, ["snapshot", "-i", "-c"], {
json: false,
});
await runAgentBrowserCommand(sandbox, ["close"], { json: false });
return { title, snapshot: snapResult.stdout };
});
}Multi-Step Workflows
The sandbox persists between commands, so you can run full automation sequences:
export async function fillAndSubmitForm(
url: string,
data: Record<string, string>,
postSubmitWaitArgs: string[],
) {
return withBrowser(async (sandbox) => {
await runAgentBrowserCommand(sandbox, ["open", url]);
const snapResult = await runAgentBrowserCommand(sandbox, ["snapshot", "-i"], {
json: false,
});
const snapshot = snapResult.stdout;
// Parse snapshot to find element refs...
for (const [ref, value] of Object.entries(data)) {
await runAgentBrowserCommand(sandbox, ["fill", ref, value]);
}
await runAgentBrowserCommand(sandbox, ["click", "@e5"]);
// Pass an app-specific wait, such as ["--url", "**/checkout/complete"],
// ["--text", "Thanks"], or ["#confirmation"].
await runAgentBrowserCommand(sandbox, ["wait", ...postSubmitWaitArgs]);
const ssResult = await runAgentBrowserCommand<{ data?: { path?: string } }>(sandbox, [
"screenshot",
]);
const ssPath = ssResult.json?.data?.path;
if (!ssPath) throw new Error("Screenshot did not return a file path.");
const b64Result = await sandbox.runCommand("base64", ["-w", "0", ssPath]);
const screenshot = (await b64Result.stdout()).trim();
await runAgentBrowserCommand(sandbox, ["close"], { json: false });
return { screenshot };
});
}Sandbox Snapshots (Fast Startup)
A sandbox snapshot is a saved VM image of a Vercel Sandbox with system dependencies + agent-browser + Chromium already installed. Think of it like a Docker image: instead of installing dependencies from scratch every time, the sandbox boots from the pre-built image.
This is unrelated to agent-browser's accessibility snapshot feature (agent-browser snapshot), which dumps a page's accessibility tree. A sandbox snapshot is a Vercel infrastructure concept for fast VM startup.
Without a sandbox snapshot, each run installs system deps + agent-browser + Chromium (~30s). With one, startup is sub-second.
Creating a sandbox snapshot
The snapshot must include system dependencies (via dnf), agent-browser, and Chromium:
const snapshotId = await createAgentBrowserSnapshot();Run this once, then set the environment variable:
AGENT_BROWSER_SNAPSHOT_ID=snap_xxxxxxxxxxxxA helper script is available in the demo app:
npx tsx examples/environments/scripts/create-snapshot.tsRecommended for any production deployment using the Sandbox pattern.
Authentication
On Vercel deployments, the Sandbox SDK authenticates automatically via OIDC. For local development or explicit control, set:
VERCEL_TOKEN=<personal-access-token>
VERCEL_TEAM_ID=<team-id>
VERCEL_PROJECT_ID=<project-id>These are spread into Sandbox.create() calls. When absent, the SDK falls back to VERCEL_OIDC_TOKEN (automatic on Vercel).
Scheduled Workflows (Cron)
Combine with Vercel Cron Jobs for recurring browser tasks:
// app/api/cron/route.ts (or equivalent in your framework)
export async function GET() {
const result = await withBrowser(async (sandbox) => {
await sandbox.runCommand("agent-browser", ["open", "https://example.com/pricing"]);
const snap = await sandbox.runCommand("agent-browser", ["snapshot", "-i", "-c"]);
await sandbox.runCommand("agent-browser", ["close"]);
return await snap.stdout();
});
// Process results, send alerts, store data...
return Response.json({ ok: true, snapshot: result });
}// vercel.json
{ "crons": [{ "path": "/api/cron", "schedule": "0 9 * * *" }] }Environment Variables
| Variable | Required | Description |
AGENT_BROWSER_SNAPSHOT_ID | No (but recommended) | Pre-built sandbox snapshot ID for sub-second startup (see above) |
VERCEL_TOKEN | No | Vercel personal access token (for local dev; OIDC is automatic on Vercel) |
VERCEL_TEAM_ID | No | Vercel team ID (for local dev) |
VERCEL_PROJECT_ID | No | Vercel project ID (for local dev) |
Framework Examples
The pattern works identically across frameworks. The only difference is where you put the server-side code:
| Framework | Server code location |
| Next.js | Server actions, API routes, route handlers |
| SvelteKit | +page.server.ts, +server.ts |
| Nuxt | server/api/, server/routes/ |
| Remix | loader, action functions |
| Astro | .astro frontmatter, API routes |
Example
See examples/environments/ in the agent-browser repo for a working app with the Vercel Sandbox pattern, including a sandbox snapshot creation script, streaming progress UI, and rate limiting.
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
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.

