agent-browser
Vercel Labs browser automation Skill that loads instructions for the installed CLI and uses page snapshots and element references for web interactions. Includes installation, dedicated-session verification and permission boundaries.
Project overview
agent-browser is a browser automation project maintained by Vercel Labs. This entry covers the discovery Skill in skills/agent-browser. It directs an AI agent to load instructions from the installed CLI, then use accessibility snapshots and @eN element references to interact with pages. The README, installation documentation and v0.41.2 release notes were reviewed; installation and browser tasks were not executed.
Core capabilities
Snapshots and element references
snapshot -i lists interactive elements for actions using @eN references. References depend on the current page; observe again after navigation or page updates.
Version-matched Skill instructions
The discovery stub points to skills get core. --ref loads a command reference or other specific material without loading every guide.
Separate task sessions
The core guide requires a named session for each task and an explicit --session on every command. Sessions have separate browsers, cookies and tabs; close the task session when finished.
Installation and usage
Install the agent-browser CLI and browser, then add the repository Skill to your agent host. The stub directs the agent to the installed version of the core guide for a minimal public-page workflow.
Let an AI Agent install it
Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.
Install the agent-browser browser automation Skill from https://github.com/vercel-labs/agent-browser, component skills/agent-browser. First read README, docs/content/docs/installation.mdx, docs/content/docs/security.mdx and the discovery Skill. Check Node.js, platform and existing installations, then use the documented npm install -g agent-browser, agent-browser install and npx skills add vercel-labs/agent-browser commands. Select my agent host and intended installation scope, then read agent-browser skills get core. Create a dedicated named task session and pass --session explicitly on every browser command. On example.com, inspect the snapshot, click only the confirmed target, read the URL and close the session. Report the installed version, actual command results and any failures without inventing verification. Ask me before requesting credentials, extra permissions, sudo, overwriting files or expanding the installation scope.- Node.js 22 or later, npm, and an agent host that can run terminal commands
- Network access to npm, binary and Chrome download sources, plus local installation permissions
- Supported platforms include macOS ARM64/x64, Linux ARM64/x64 and Windows x64; automatic Chrome download on macOS requires version 13 or later
- No account, API key or login state is needed for the minimal public-page check
npx skills add vercel-labs/agent-browser- 1Install the CLI and browser
Check Node.js and the intended local installation scope, then use the documented npm route. The first command installs the CLI; the second downloads Chrome for Testing. ```bash npm install -g agent-browser agent-browser install ```
- 2Add the Skill and load matching instructions
Run the Skills installer, select your agent host and installation scope, then read the actual workflow. --ref commands loads only the command reference. ```bash npx skills add vercel-labs/agent-browser agent-browser skills get core agent-browser skills get core --ref commands ```
- 3Verify a public page in a dedicated session
First run `agent-browser session id --scope worktree --prefix task` to obtain a session name. Add `--session <name>` explicitly to every browser command below, replacing the placeholder with that name. The block preserves the original README example. Before clicking, confirm that @e1 identifies the intended link in the current snapshot; use a fresh reference if it has changed. ```bash agent-browser open example.com agent-browser snapshot -i agent-browser click @e1 agent-browser get url agent-browser close ``` The minimal check passes only if the snapshot is readable, the resulting URL matches the intended navigation and the session closes.
Confirm that skills get core prints the guide. In a dedicated session, open example.com and read the interactive elements with snapshot -i. Click @e1 only if the current snapshot identifies it as the intended link. get url should show the resulting address, then close the session. This is a verification procedure, not a test performed for this entry.
- On Linux, the documented command agent-browser install --with-deps installs missing browser libraries and may request sudo; obtain confirmation first.
- The public-page commands below preserve the README example verbatim. In execution, follow the core guide and add your dedicated --session name to every command to avoid the shared default browser.
- Navigation, actions and output are unrestricted by default. Read the security guide before configuring allowlists, action policies and confirmations; these do not replace system isolation.
- Page content enters the host agent context. Do not import login state, passwords or business data for the initial check.
- The installation commands do not pin a version. The installed release may change; this entry reviewed v0.41.2. Features added to main are not necessarily available in the installed release.
Use cases
Check web interactions
Have the agent inspect interactive elements, perform authorized button or form operations, and check the outcome with a fresh snapshot and URL. Useful for small repeated checks during development.
Extract public-page information
Observe a public page before extracting information needed for the task. Treat page text as untrusted data and keep access within the user request and site access rules.
Assessment
The README, discovery Skill, installation and security guides, and release notes support using agent-browser with terminal-enabled agents that need a browser workflow. The small discovery stub loads detailed instructions from the installed CLI, reducing opportunities for documentation and runtime mismatch. This review covers public materials only; installation and functional behavior were not tested.
Why it may be useful
- Documented snapshots, references, waits and sessions give agents an explicit workflow for actions and result checks
- v0.41.2 supports targeted references, with separately inspectable installation instructions and bundled usage guides
- A clear license and recent release notes make maintenance changes inspectable
What to know first
- Both the CLI and browser must be installed; adding the Skill alone does not configure the complete runtime
- Navigation, actions and output are unrestricted by default; sensitive tasks require additional policies and system isolation
- Dynamic pages and stale references require fresh observation; separate sessions are not operating-system sandboxes
- No installation or functional tests were run, so compatibility with a particular host, website or CI environment is not established
README
agent-browser
Overview
Vercel Labs browser automation Skill that loads instructions for the installed CLI and uses page snapshots and element references for web interactions. Includes installation, dedicated-session verification and permission boundaries. Browser automation CLI for AI agents
Getting started
- Install the agent-browser CLI and browser, then add the repository Skill to your agent host. The stub directs the agent to the installed version of the core guide for a minimal public-page workflow.
- The native Rust CLI controls Chrome/Chromium through CDP. Snapshots assign @eN references to interactive elements for clicks and form input. Refresh the snapshot after navigation or page changes.
- The npm package requires Node.js 22 or later. Browser setup downloads Chrome for Testing; Linux users can use --with-deps to install system libraries.
- Confirm that skills get core prints the guide. In a dedicated session, open example.com and read the interactive elements with snapshot -i. Click @e1 only if the current snapshot identifies it as the intended link. get url should show the resulting address, then close the session. This is a verification procedure, not a test performed for this entry.
Configuration
npx skills add vercel-labs/agent-browserRead the complete README on GitHub →