CLI ToolsMay 14, 2026·2 min read

agent-browser — AI Agent Browser Automation CLI (2026)

agent-browser is a Rust CLI for AI agent browser automation; verified 32,919★ with snapshot refs, click/fill commands, and Chrome-for-Testing install.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
CLI Tool
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 1b3e0801-33ca-5386-83de-abc45a55e979 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

agent-browser is a Rust CLI for AI agent browser automation; verified 32,919★ with snapshot refs, click/fill commands, and Chrome-for-Testing install.

Best for: Agent builders who want a fast, scriptable browser CLI without wiring Playwright into every project

Works with: macOS/Linux/Windows, Chrome (or Chrome for Testing), and CI scripts

Setup time: 2-5 minutes

Main

  • The core ergonomic win is snapshot refs (like @e2) so agents can click/fill by stable accessibility-derived handles instead of brittle CSS selectors.
  • Installation stays pragmatic: npm/Homebrew/Cargo paths are documented, and agent-browser install can fetch Chrome from the official Chrome-for-Testing channel when needed.
  • The command surface is intentionally CLI-first (open/click/fill/find/screenshot/pdf/stream), which makes it easy to wrap into scripts, task runners, or agent toolchains.
  • For traditional automation, it still supports CSS selectors and role-based find commands; you can start with refs and drop to selectors when you need precision.

FAQ

  • Do I need Playwright in my project?: Not necessarily. The README positions agent-browser as a standalone CLI; you install it and drive Chrome via the CLI commands and refs.
  • Why run agent-browser install?: It can download Chrome from the official Chrome for Testing channel (first run) and helps standardize automation environments across machines.
  • What should I verify first?: Open a URL, run snapshot, then click @e... and take a screenshot so you validate the ref-based interaction loop end-to-end.
🙏

Source & Thanks

Source: https://github.com/vercel-labs/agent-browser > License: Apache-2.0 > GitHub stars: 32921 · forks: 2035

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets