Installation
Global installation (recommended)
Installs the native Rust binary for maximum performance:
npm install -g agent-browser
agent-browser install # Download Chrome from Chrome for Testing (first time)This is the fastest option - commands run through the native Rust CLI directly with sub-millisecond parsing overhead.
Quick start (no install)
npx agent-browser install # Download Chrome (first time only)
npx agent-browser open example.comProject installation (local dependency)
For projects that want to pin the version in package.json:
npm install agent-browser
npx agent-browser install # Download Chrome (first time)Homebrew (macOS)
brew install agent-browser
agent-browser install # Download Chrome (first time)Cargo (Rust)
cargo install agent-browser
agent-browser install # Download Chrome (first time)Compiles from source (~2-3 min). Requires Node.js 24+, pnpm 11+, and the Rust toolchain from rustup.rs.
From source
Download the latest release tarball from the changelog page, then build:
tar -xzf agent-browser-latest.tar.gz
cd agent-browser
pnpm install
pnpm build
pnpm build:native
./bin/agent-browser install
pnpm link --globalLinux dependencies
On Linux, install system dependencies:
agent-browser install --with-depsThis exits nonzero if the package manager cannot install every required browser library.
Updating
Upgrade to the latest version:
agent-browser upgradeDetects your installation method (npm, Homebrew, or Cargo) and runs the appropriate update command automatically.
Doctor
doctor diagnoses your install and auto-cleans stale daemon files:
agent-browser doctor # Full diagnosis
agent-browser doctor --offline --quick # Local-only, fastest (~1s)
agent-browser doctor --fix # Also run destructive repairs
agent-browser doctor --json # Structured outputRequirements
- Chrome - Run
agent-browser installto download Chrome from Chrome for Testing. - Node.js 24+ and pnpm 11+ - Only needed when building from source.
- Rust - Only needed when building from source.
Next: Command reference