agent-browser is a command-line browser for AI agents: an open-source Rust CLI from Vercel Labs that drives a real Chrome session from the shell and hands the agent a text outline of the page instead of a screenshot. It is aimed at developers who already run a coding agent that can call shell commands and want it to use the live web without spending most of its context window on pixels.
What it does
An agent using agent-browser works entirely through shell commands. It runs something like agent-browser open example.com, then agent-browser snapshot -i, and gets back a compact accessibility-tree view of the page in which every interactive element carries a short stable reference such as @e1. From there the agent clicks, types and navigates by naming those references. There is no automation script to write and no screenshot to interpret.
The repository lists 50+ commands covering navigation, element interaction, screenshots, debugging and session management. It also vaults passwords, so the agent can log into a site without the raw credentials passing through the model's context.
The headline figure is about cost. On one benchmark of a real browsing task, the same work took roughly 100,000 tokens when driven through Playwright MCP and roughly 7,000 tokens through agent-browser, about a fifteen times cut. That comparison comes from the project's own materials, which present it as an independent benchmark; this channel did not run it. Treat it as a claim about one measured task, not a guaranteed ratio for your workload.
How it works
Chrome is controlled over the Chrome DevTools Protocol, and a background daemon keeps the session alive between commands, by default for about an hour. That matters in practice: an agent can open a page, think, come back several commands later and still be logged in on the same tab.
Chrome is the default engine, and the project also supports Lightpanda, Obscura and the hosted Browserbase and Browserless backends, so the same commands can run against a remote browser instead of the local one.
The design bet is the accessibility tree. A screenshot is thousands of tokens of pixels a model has to reason about, while the accessibility outline is a short list of roles, labels and references, which is both cheaper and easier to act on precisely.
Getting started
The tool itself is free and Apache-2.0 licensed, and it ships as a native binary, so there is no Python environment to assemble. Note what is not included: agent-browser supplies no intelligence of its own. The model driving it is still yours to pay for, whether that is a local model on your own hardware or a paid API key, and the hosted engines (Browserbase, Browserless) are third-party services with their own accounts.
You need a browser it can drive, which in the default setup means Chrome installed locally. Beyond that, the project does not list operating-system, memory or GPU requirements in the material reviewed here, so check the repository before assuming your machine qualifies.
Installation is a package manager rather than a release download: npm, Homebrew or Cargo, or you can skip installing and run npx agent-browser directly. The source and the full command reference live at github.com/vercel-labs/agent-browser. The README describes it as one of the most-starred Vercel Labs projects, though no verified star count was collected for this entry.
When to use it / when not
Use it instead of Playwright MCP when your agent's browsing is the thing eating your context window or your API bill, and the task is textual: filling forms, reading dashboards, logging in, clicking through flows, pulling structured content off a page.
Don't use it if the work is genuinely visual. The main catch, named by the project and the video alike, is that an accessibility tree cannot see pure visual content: canvas-drawn art, a chart rendered as an image, a layout bug you would only notice by looking. For visual regression testing, a screenshot-based tool is still the right one.
Two smaller things to expect: it is a local command-line tool you wire into an agent, not a point-and-click application, and session persistence has a default time limit, so long jobs must account for it.
Alternatives
- Playwright, and its Playwright MCP server, remain the standard for browser automation and the direct comparison point here. They were built for humans writing test scripts, and they can work from pixels.
- Puppeteer is the older, Chrome-only option in the same family.
- Browserbase and Browserless are hosted browsers rather than rivals: agent-browser can use them as engines.
If you are building or running an agent that touches the web more than occasionally, this deserves a serious look, because the token arithmetic is the whole argument: a large reduction on browsing turns a capability you ration into one you can leave switched on. Teams whose agents visit a page only now and then will not feel the difference, and anyone doing visual QA should stay with Playwright. As an example of tooling rebuilt around what a language model actually reads well, though, agent-browser is one of the clearest, and npx agent-browser is a cheap enough trial to run against your own task first.