Agent browser
Plugin by vercel-labs
Agent browser gives AI agents a browser they can drive one shell command at a time. It reads pages as accessibility snapshots and acts on elements by ref. It is built for agent-driven web app testing, inspection, and debugging.
Install Agent browser
Built from the published package, never by AI.
/plugin marketplace add dinglebear-ai/dendrite
/plugin install agent-browser@dendriteType both lines inside Claude Code: the first adds the marketplace, the second installs the plugin.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Agent browser is a native Rust CLI from vercel-labs that gives an AI agent a browser it can drive one command at a time. The snapshot command returns a page as compact text, with a ref such as @e1 for each element. The agent acts on a ref, reads the page again to check the result, and repeats.
A background daemon starts on the first command and controls the browser over the Chrome DevTools Protocol. The browser stays open between commands. Chrome for Testing is the default, but the tool can attach to a running Chrome, use other engines, or connect to cloud browser providers. It also ships skills and an MCP server mode, and includes debugging, profiling, and capture commands. It suits developers who want agents to test, inspect, and debug web apps.
Written from the project's README and checked against it.
What it can do
- Page snapshotsReturns a page as compact text with a ref for each interactive element.
- Element actionsClicks, fills, types, hovers, selects, and uploads on elements by ref or selector.
- Result checksReads the URL and page state so the agent can confirm an action worked.
- Debugging toolsProvides console, errors, trace, profiler, vitals, and accessibility commands.
- Screenshots and recordingCaptures screenshots, PDFs, recordings, and downloads from the page.
- Sessions and authManages sessions, saved state, cookies, storage, and auth profiles.
- MCP server modeRuns an MCP server over stdio with the agent-browser mcp command.
- Agent skillsShips CLI-matched skills that teach the agent the core browser workflow.
What you need
- Node.js 24 or later for building from source
- pnpm 11 or later for building from source
- Rust for building from source
- Chrome for Testing, downloaded by agent-browser install
- macOS, Linux, or Windows (x64)
Try asking
- Open example.com and list the interactive elements on the page.
- Fill in the login form on my staging app and click Submit.
- Take a screenshot of the checkout page and check the console for errors.
Good to know
- By default the daemon closes a headless browser after one hour without commands.
- Refs describe the page at snapshot time, so take a new snapshot after navigation or DOM changes.
- A click fails when the target is hidden, disabled, off-screen, or covered by another element.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Agent browser
All alternatives →Chrome DevTools MCP lets coding agents control and inspect a live Chrome browser. It records performance traces, analyzes network requests, and checks console messages. It is for developers who want their assistant to debug and automate web pages.
agent-browser gives AI agents a browser they drive one shell command at a time. The agent reads a page as compact text with element refs, acts on them, and checks the result. It suits AI agents and developers who need browser automation in Chromium.
Gives AI assistants browser automation through Microsoft's Playwright MCP server, using accessibility snapshots instead of screenshots. Suited to exploratory automation, self-healing tests and long-running browser workflows.
Chrome DevTools for agents gives a coding assistant control of a live Chrome browser through an MCP server and a CLI. It suits developers who want browser automation, debugging and performance analysis.
Automates browser interactions and web page tests from the command line, using Playwright. Built for coding agents such as Claude Code and GitHub Copilot, it exposes CLI commands as skills.
Playwright MCP is Microsoft's Model Context Protocol server for browser automation with Playwright. It lets AI assistants control web pages through structured accessibility snapshots, for debugging and test automation.
Compare with Chrome devtools mcp, Agent browser or Playwright mcp
Agent browser: common questions
Which browser does agent browser use?
Chrome for Testing is the default browser. The tool can also attach to a running Chrome with --cdp or --auto-connect, and it supports other engines and cloud providers.
How do agents target elements on a page?
Snapshots assign refs such as @e1 to elements, and agents can act on those refs. CSS selectors, text, XPath, and semantic locators also work.
Can MCP clients use agent browser?
Yes. Running agent-browser mcp starts an MCP server over stdio for MCP clients.
How do I install Agent browser?
Inside Claude Code, add the marketplace with /plugin marketplace add dinglebear-ai/dendrite, then install the plugin with the second command shown above.
Is Agent browser free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Agent browser safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality B. 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 Agent browser?
Similar plugins: Chrome devtools mcp, Agent browser, Playwright mcp, Chrome devtools mcp.
