Skip to content
skillcellar
All skills

agent-browser

Testing

Vercel Labs' browser automation CLI for agents: read pages as accessibility snapshots and act on element refs.

Stars55.4k
Forks3.9k
Watchers111
Open issues432
LicenseApache-2.0
Last pushtoday

Install

install

$ npx skills add vercel-labs/agent-browser

Works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and any other agent that reads SKILL.md.

Update

update

$ agent-browser upgrade

Updates the CLI itself. The installed skill is a thin stub that loads instructions from the CLI, so they stay in sync with it.

When to use it

  • You want the agent to test a web app by clicking through it, filling forms and checking the result.
  • You need the agent to read or operate a live website from the shell with short, repeatable commands.
  • You want to attach to your running Chrome, or use a cloud browser provider, instead of a fresh browser.

Commands & flags

npm install -g agent-browser && agent-browser install
Install the CLI and download Chrome for Testing (first time only).
agent-browser open example.com
Open a page in a browser that stays open between commands.
agent-browser snapshot -i
Read the page as compact text, with a ref such as @e1 for each interactive element.
agent-browser click @e1
Act on a ref from the latest snapshot.
agent-browser skills get core
Print the version-matched instructions the agent should follow.
agent-browser mcp
Start an MCP server over stdio for MCP clients.

How to use it

Install the skill, install the CLI, then ask the agent to use it. The CLI starts a background daemon on the first command and drives Chrome over the DevTools Protocol.

npm install -g agent-browser
agent-browser install
npx skills add vercel-labs/agent-browser

The loop is: open, snapshot -i, act on a ref, snapshot again to verify. Refs describe the page at snapshot time, so take a new snapshot after navigation or a DOM change. A click fails instead of reporting success when the target is hidden, disabled or covered.

There is also a Homebrew install and npx agent-browser open example.com with no install. Skip it for one-off page fetches where a plain HTTP request is enough.

Why it earns its place

Accessibility-tree snapshots are far smaller than screenshots or raw HTML, so the agent spends fewer tokens per step. Because the skill stub loads its instructions from the installed CLI, the guidance never drifts from the version you run. It is maintained under Vercel Labs and ships native binaries for macOS, Linux and Windows.

Try it

claude

> Use agent-browser to open localhost:3000, sign in with the test account, and tell me if the dashboard loads.