Agent browser
Plugin by vercel-labs
Agent browser is a native Rust CLI that lets an AI agent open pages, read them as an accessibility tree, and act on elements from the shell. It suits developers building browser automation for AI agents.
Install Agent browser
Built from the published package, never by AI.
/plugin marketplace add LKCY23/claudespace
/plugin install agent-browser@claudespaceType 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 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. The browser stays open between commands, so each step is one short shell call.
The CLI sends commands to a background daemon that controls the browser over the Chrome DevTools Protocol. Chrome for Testing is the default browser, and the CLI can also attach to a running Chrome, use other engines, or connect to cloud browser providers. The project ships skills that match its version, and `agent-browser mcp` starts an MCP server over stdio. It suits developers building agents that need to browse and act on web pages from the command line.
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 again so the agent can confirm an action worked.
- Screenshots and PDFsCaptures the page as an image or PDF, and can record or diff pages.
- Sessions and authKeeps separate sessions with saved state, cookies, storage, and auth profiles.
- Tabs, frames, and dialogsSwitches between tabs and frames and handles browser dialogs.
- Debugging toolsReads console output, errors, network activity, and performance data.
- Cloud and CDP browsersAttaches to a running Chrome or to cloud browser providers.
- Version-matched skillsLoads core instructions and command references that match the installed CLI.
- MCP serverRuns as an MCP server over stdio with the agent-browser mcp command.
What you need
- Node.js for the npm install, or Homebrew
- macOS, Linux, or Windows (x64)
- Chrome for Testing, downloaded by agent-browser install
Try asking
- Open example.com and list the links on the page
- Fill in the login form on this site and submit it
- Take a screenshot of the checkout page and save it
Good to know
- A click fails if the target is hidden, disabled, off-screen, or covered.
- Refs describe the page at snapshot time and must be refreshed after navigation.
- Headless browsers close after one hour without commands by default.
- Linux may need agent-browser install --with-deps for system libraries.
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
What does agent-browser do?
It gives an AI agent a browser it can control from the shell. The agent reads a page snapshot, acts on element refs, and checks the result.
Can agent-browser connect to an existing Chrome?
Yes. The source says the CLI can attach to a running Chrome with --cdp or --auto-connect.
Does agent-browser work with MCP clients?
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 LKCY23/claudespace, 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.
