agent-browser banner
vercel-labs vercel-labs

agent-browser

Development community intermediate

Description

Browser automation CLI for AI agents. Fast native Rust CLI.

Installation

Terminal
claude install-skill https://github.com/vercel-labs/agent-browser

README

agent-browser

Browser automation CLI for AI agents. Fast native Rust CLI.

Installation

Global Installation (recommended)

Installs the native Rust binary:

npm install -g agent-browser
agent-browser install  # Download Chrome from Chrome for Testing (first time only)

Project Installation (local dependency)

For projects that want to pin the version in `package.json`:

npm install agent-browser
agent-browser install

Then use via `package.json` scripts or by invoking `agent-browser` directly.

Homebrew (macOS)

brew install agent-browser
agent-browser install  # Download Chrome from Chrome for Testing (first time only)

Cargo (Rust)

cargo install agent-browser
agent-browser install  # Download Chrome from Chrome for Testing (first time only)

From Source

git clone https://github.com/vercel-labs/agent-browser
cd agent-browser
pnpm install
pnpm build
pnpm build:native   # Requires Rust (https://rustup.rs)
pnpm link --global  # Makes agent-browser available globally
agent-browser install

Linux Dependencies

On Linux, install system dependencies:

agent-browser install --with-deps

Updating

Upgrade to the latest version:

agent-browser upgrade

Detects your installation method (npm, Homebrew, or Cargo) and runs the appropriate update command automatically.

Requirements

    undefined

Quick Start

agent-browser open example.com
agent-browser snapshot                    # Get accessibility tree with refs

...