MCP.so
Sign In
>_

agent-browserOfficial

@vercel-labs

Details

Category

Developer tools

Command

agent-browser

Maintainer

vercel-labs

Type

Developer tool

About agent-browser

Vercel Labs' native Rust CLI that gives AI agents a browser: open pages, read them as an accessibility tree with element refs, and click, fill and screenshot from the shell.

#agent-browser#developer-tools#developer-tool#official#agent-ready#vercel-agent-browser#agent-browser-cli

How to install agent-browser

npm (global)

npm install -g agent-browser

Homebrew

brew install agent-browser

No install

npx agent-browser open example.com

After installing, run agent-browser install once to download Chrome for Testing (on Linux, agent-browser install --with-deps also installs system libraries). Native binaries ship for macOS (ARM64, x64), Linux (ARM64, x64, glibc and musl) and Windows (x64). Apache-2.0 licensed.

Log in and authenticate

  1. 1
    agent-browser install

    Downloads Chrome for Testing the first time. No account or API key is needed for local use.

  2. 2
    agent-browser doctor

    Checks the installation.

Cloud browser providers such as Browserbase, Browserless, Browser Use, Kernel or AgentCore need that provider's own account and key. For logged-in sites, the docs cover an auth vault, domain allowlists and action policies.

What it does

Snapshot pages as compact text with element refs (@e1)

Click, fill, type, upload and find elements by role, text or CSS

Screenshots, PDFs, recordings, network, cookies and tracing

Built-in agent skills and an MCP server (agent-browser mcp)

Common commands

  1. 1
    agent-browser open example.com

    Open a page. A background daemon starts on the first command and keeps the browser open between commands.

  2. 2
    agent-browser snapshot -i

    Return the interactive elements as compact text, each with a ref such as @e1.

  3. 3
    agent-browser click @e1

    Act on a ref from the latest snapshot; take a new snapshot after navigation or DOM changes.

  4. 4
    agent-browser find role button click --name "Submit"

    Use a semantic locator instead of a ref (CSS, text and XPath also work).

  5. 5
    agent-browser get url

    Check the result of the last action.

  6. 6
    agent-browser skills get core

    Print the version-matched skill that teaches an agent the core loop; npx skills add vercel-labs/agent-browser installs the discovery stub.

  7. 7
    agent-browser mcp

    Start an MCP server over stdio for MCP clients.

  8. 8
    agent-browser close

    Close the browser session.

Notes and limits

  • What it is: agent-browser gives an AI agent a browser it can drive one shell command at a time. The agent reads the page with snapshot, acts on an element ref, reads again to check, and repeats; each step is one short command.
  • How it differs from a browser MCP server: it is a CLI first, so any agent that can run shell commands (Claude Code, Codex, Cursor and others) can use it without MCP. It also ships an MCP server (agent-browser mcp) when you want one.
  • Command groups cover navigation and reading, interaction (click, fill, type, upload, drag), waiting, capture (screenshot, pdf, record, diff), cookies, storage and network, tabs and frames, debugging (console, trace, profiler, vitals) and sessions.
  • Browsers: Chrome for Testing by default; attach to a running Chrome with --cdp or --auto-connect, choose the Lightpanda or Obscura engine with --engine, drive Mobile Safari in the iOS Simulator, or use a cloud browser provider.
  • Limits: refs only describe the page at snapshot time, so re-snapshot after a change. A click fails, rather than reporting success, if the target is hidden, disabled, off-screen or covered (for example by a consent banner). Each --session gets its own daemon, and an idle headless browser closes after one hour by default.
  • FAQ: Is it the same as the co-browser Agent Browser MCP server listed on MCP.so? No, that is a different project; this page is Vercel Labs' CLI. Is it free? Yes, it is open source under Apache-2.0; only cloud browser providers cost money.

Sources

Checked against the official documentation on 2026-11-12.

Same project on MCP.so

Other listings built from the same GitHub repository: use it as an MCP server, an agent skill or a command-line tool.

Agent skills

Comments

More Developer tools CLIs