Agent Browser: Browser automation CLI for AI agents

A fast native Rust CLI for browser automation, designed for AI agents to navigate, interact, and extract data.

Stars
★ 55k
Last updated
today v0.45.0
FARS reviewed
Nov 07, 2026 +4 new
License
Apache-2.0
Primary language
Rust

At a glance

How it runs
CLIMCP server
Works with
Universal · cross-platform
Cost
Free software; you pay for model usage
OS / editors
Linux per README
Integrations
Headless CLI / CI/CD mode per README
Setup effort
Low · running in minutes
You'll need
Node.js 24+ (only for build from source)Rust (only for build from source)Shell / CLINetwork accessLocal filesystem
Typical use
AI agents that need to automate web interactions, such as filling forms, clicking through flows, and scraping data, in a deterministic way.
Not a fit if
  • Teams needing Safari or iOS automation support
  • Anyone unwilling to install Node.js 24+ and Rust to build from source
Website
agent-browser.dev ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-12-02latest release v0.45.0 (2026-11-25)+169.7 ★/day over 7 days
Source review
66/100 · Some gaps

What does this agent do, and when should you use it?

Agent Browser is a native Rust CLI from Vercel Labs for browser automation, tailored for AI agents. It runs a background daemon that maintains a browser session and exposes a deterministic ref system (e.g., @e1) derived from accessibility snapshots, enabling AI to interact reliably. It goes beyond basic clicks and fills: it supports network interception and HAR recording, cookie and storage management, session persistence with profiles and state files, React introspection, Web Vitals metrics, accessibility audits via embedded axe-core, and an MCP server. It works headless by default and can automatically download Chrome from Chrome for Testing.

The agent-browser CLI provides comprehensive browser automation commands. It launches Chrome or Lightpanda via CDP, keeps the session alive with a daemon, and generates snapshots as accessibility trees with refs. Users can click, fill, type, hover, select, drag, and upload files using these refs or traditional CSS selectors. It extracts text from URLs or the rendered DOM (read), evaluates JavaScript (eval), and manages cookies, storage, and network routes. For React apps, it offers component tree inspection, renders profiling, and Web Vitals (LCP, CLS, TTFB, FCP, INP) when launched with --enable react-devtools. It also includes a diff command for snapshot and screenshot comparisons, and an a11y command using embedded axe-core. Security features include domain allowlisting, content boundary markers, action policies, and confirmation prompts.

  1. AI agents that need to automate web interactions, such as filling forms, clicking through flows, and scraping data, in a deterministic way.
  2. Developers who want to reuse existing Chrome login state (via --profile) to automate authenticated workflows.
  3. QA engineers running accessibility audits with built-in axe-core and visual regression with diff screenshot.
  4. Frontend developers inspecting React component trees, suspense states, and Web Vitals for performance analysis.
  5. AI coding assistants that need to verify UI changes, fill forms, or inspect page state during development.
  6. MCP-compatible clients that want to control a browser through the standard MCP protocol (agent-browser mcp).

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm install -g agent-browser
  • brew install agent-browser
  • cargo install agent-browser
Runtime
Node.js 24+
Install notes cover
macOS · Linux

How do you install or deploy this agent?

Global installation: npm install -g agent-browser, then run agent-browser install to download Chrome from Chrome for Testing. Alternative methods: Homebrew (brew install agent-browser), Cargo (cargo install agent-browser), or build from source requiring Node.js 24+, pnpm 11+, and Rust: clone the repo, run pnpm install, pnpm build, pnpm build:native, pnpm link --global, then agent-browser install. On Linux, use agent-browser install --with-deps to install system dependencies.

How do you use this agent?

First, install Chrome: agent-browser install. Then open a page and get a snapshot: agent-browser open example.com and agent-browser snapshot -i. Use the refs from the snapshot to interact: agent-browser click @e2, agent-browser fill @e3 "text". Get text: agent-browser get text @e1. Take a screenshot: agent-browser screenshot page.png. Close: agent-browser close. You can also use traditional selectors: agent-browser click "#submit". For MCP, configure your client to spawn agent-browser mcp.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

README-backed isolation & workflow protocols

Protocols & surfaces
Headless CLI / CI/CD mode

What are this agent's strengths and limitations?

Pros
  • Native Rust CLI offers high performance, and the daemon enables command chaining without startup overhead.
  • Ref system provides deterministic element selection, avoiding the fragility of CSS selectors on dynamic pages.
  • Built-in Chrome download (Chrome for Testing) simplifies setup; also detects existing Chrome/Playwright/Puppeteer installs.
  • MCP server support allows integration with any MCP-compatible AI client.
  • Security features like domain allowlists, action confirmation, and content boundaries enhance safe AI deployment.
Limitations
  • Core functionality depends on Chrome (or Lightpanda); Safari and iOS support is limited.
  • Advanced features (React introspection, WebGPU) require specific launch flags, and WebGPU screenshots have caveats.
  • Building from source requires Node.js 24+, pnpm 11+, and Rust, which may be a high barrier for some.
  • The AI chat feature relies on Vercel AI Gateway, requiring an API key; without it, chat is unavailable.
  • The extensive documentation can be overwhelming for new users.

How does this agent compare with similar options?

Compared to Playwright or Puppeteer, agent-browser is specifically designed for AI agents, offering a ref-based snapshot system, background daemon, and MCP integration, whereas Playwright/Puppeteer are more general-purpose libraries requiring more coding.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Agent Browser: Browser automation CLI for AI agents This agent 66 · Some gaps CLIFree + model costs ★ 55k today Rust —
goose 57 · Major gaps Desktop appFree + model costs ★ 57k today Rust —
Grok Build (grok CLI) 46 · Major gaps CLIFree + model costs ★ 28k 2mo ago Rust —
Amazon Q CLI (deprecated, migrate to Kiro CLI) 44 · Major gaps CLIFree + model costs ★ 2k 7mo ago Rust —

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
66/ 100 5-point scale 3.3 / 5
This review covers the source as of Nov 07, 2026. The project has shipped 4 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 11/29
Reliability 9/14
Adaptability 15/18
Convention 14/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The README and source show broad access to browser sessions, CDP, network/HAR data, cookies, persistent authentication state, cloud credentials, and page interaction. Least privilege, external effects, and rollback score 1 because the packet does not fully establish permission boundaries, confirmation for every consequential action, or recovery guarantees. The derive-client skill advises logging in before recording, avoiding credentials in HAR, and not hardcoding cookies; the AgentCore skill also demonstrates entering passwords, exporting auth state, and persistent profiles, so sensitive-data handling and confirmation remain partial. The README and main source outline local daemon/CDP operation and optional cloud providers, supporting a 2 for data-flow transparency. Dependency security lacks audit or mitigation evidence, scoring 1. Repository, npm, and release-process references provide some attribution and update-path evidence, but publisher identity is unknown by instruction, so source attribution scores 1.

Reliability9 / 14 · 3.2/5

The README explains that refs can become stale after DOM changes and that clicks fail for hidden, disabled, covered, or off-viewport targets; the skill also says saved flows may fail when sites change. This supports ordinary-use consistency and limitation handling, scoring 2. Installation depends on downloading Chrome, while multiple engines and cloud services are alternatives; the basic dependency path is clear but availability still relies on external components, scoring 2. The README and AgentCore skill identify several failure causes and recovery steps, but the sample does not establish coverage of all error paths, so failure messages score 2.

Adaptability15 / 18 · 4.2/5

The README, core skill, and specialized skills explicitly target AI agents and describe concrete interaction, extraction, testing, cloud-browser, and API-client scenarios, earning 3 for audience and scenarios. Chrome, CDP, Lightpanda, Obscura, iOS Simulator, cloud providers, and platform-specific installation notes show thorough environment fit, scoring 3. Core and AgentCore trigger descriptions are concrete, and derive-client and dogfood name recognizable tasks; however, the sample is limited and some triggers may overlap, so capability boundaries and trigger precision score 2.

Convention14 / 18 · 3.9/5

The README is organized into installation, quick start, operation, command groups, platforms, development, and documentation; skills use routing and task-specific guides, earning 3 for information architecture. Installation, quick-start, command, troubleshooting, and boundary examples are substantial, supporting 3 for examples and FAQ and known limitations. Full installation details are delegated to linked documentation and involve Node, package-manager, and browser dependencies, so install notes score 2. Command and skill names are broadly stable, but the sample provides no complete index or compatibility matrix, scoring 2. Apache-2.0 metadata and license text are present, scoring 3. Version metadata, changelog, and manual release instructions exist, but the packet cannot establish maintenance recency for this revision; versioning and maintenance responsibility score 2.

Effectiveness12 / 13 · 4.6/5

The compact accessibility tree and element refs support stepwise actions, with URL checks and fresh snapshots available afterward; outputs are directly actionable, scoring 3. The CLI, MCP, skills, and multiple browser modes provide agent workflow value beyond basic scripting, scoring 3. A native binary and browser must be installed, while authentication, persistence, and cloud services add setup cost; simplified installation paths are documented, so cost-benefit scores 2.

Verifiability5 / 8 · 3.1/5

The README's core workflow is partly corroborated by the core skill and Rust entry-point structure, and CI configuration shows test setup; this static review does not claim those tests were run. The packet omits full implementation and documentation bodies, so claim traceability and cross-source corroboration score 2. The materials distinguish examples, guidance, and implementation descriptions, but not every workflow or behavior claim in the skills can be matched to the supplied source excerpts, so fact-inference separation scores 2.

Risks and how to mitigate them
  • Browser automation can access page content, cookies, authentication state, and network recordings, and may submit forms or cause other external effects; check the target site, session, and storage path before use.
  • The AgentCore examples involve AWS credentials, password entry, and persistent browser profiles; avoid placing credentials or auth state in shared or unprotected files.
  • The packet is a repository sample and does not include the full implementation, dependency audit, or linked documentation; this is a low-confidence static assessment.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision 370d41db67a1 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/agent-browser.svg)](https://followagents.com/en/agents/agent-browser)
<a href="https://followagents.com/en/agents/agent-browser"><img src="https://followagents.com/badge/agent-browser.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.45.0
    Release notes excerpt
    New Features - Added a Firefox engine driven over WebDriver BiDi: pass --engine firefox (or set AGENT_BROWSER_ENGINE=firefox) with Firefox 150 or newer to drive a local Firefox install with snapshots and @eN refs across open and closed shadow roots and iframes, find locators, shared form preconditions and error codes (fill, type, check, uncheck, select --by), right-click, middle-click, and modifier keys (--button, --modifiers), network routes and HAR capture, --allowed-domains, downloads, viewport, media, geolocation, header, and offline emulation, isolated win …
    View on GitHub ↗
  2. v0.44.0
    Release notes excerpt
    New Features - Added a Ladybird provider: -p ladybird drives Ladybird over WebDriver, headless by default or with --headed. Safari and Ladybird share one local driver launcher, and the WebDriver client now honors Content-Length, so it no longer hangs on drivers that keep the connection open. Snapshots and refs stay Chrome-only, as with Safari (#2721) …
    View on GitHub ↗
  3. v0.43.0
    Release notes excerpt
    New Features - Added snapshot hints for controls whose accessible name is empty or shared with another ref in the same snapshot. The hint follows the ref and lists the control's icon, image file, data-testid, name or id, and the text of the nearest row or list item (#2578) - Added a Modern Web Guidance skill that retrieves Chrome's guidance for a task and checks the built page in agent-browser (#2577) Bug Fixes …
    View on GitHub ↗

FAQ

Does it require a separate browser?
Yes. First run agent-browser install to download Chrome from Chrome for Testing. It also auto-detects existing Chrome, Brave, Playwright, or Puppeteer installations.
How does it handle login state?
It supports multiple methods: Chrome profile reuse via --profile <name>, persistent profile via --profile <path>, session persistence with --session and --restore, importing auth from a running Chrome with --auto-connect, and state files with --state.
Is the AI chat feature free?
The chat command uses the Vercel AI Gateway, requiring AI_GATEWAY_API_KEY. Without a key, chat is not available, but all other automation features work without one.
Does it support headless mode?
Yes, headless is the default. Use --headed to show a browser window for debugging. On Linux without a display, it auto-starts Xvfb for headed mode.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts

Head-to-head comparisons

Workflow stacks using this agent

See how to wire this project safely alongside worktree managers, memory layers and guardrails: