docs/src/app/page.mdx
Browser automation CLI designed for AI agents. Compact text output minimizes context usage. 100% native Rust.
npm install -g agent-browser # all platforms
brew install agent-browser # macOS
agent-browser install # Download Chrome (first time)
# or try without installing
npx agent-browser open example.com
Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Google Gemini, opencode, and any agent that can run shell commands.
# Navigate and get snapshot
agent-browser open example.com
agent-browser snapshot -i
# Output:
# - heading "Example Domain" [ref=e1]
# - link "More information..." [ref=e2]
# Interact using refs
agent-browser click @e2
agent-browser screenshot page.png
agent-browser close
The snapshot command returns a compact accessibility tree where each element
has a unique ref like @e1, @e2. This provides:
Client-daemon architecture for optimal performance:
Daemon starts automatically and persists between commands.
Native Rust binaries for macOS (ARM64, x64), Linux (ARM64, x64), and Windows (x64).