
Headless browser automation for AI.
Free

agent-browser is a CLI tool for headless browser automation, specifically designed for AI agents. Built with native Rust, it offers fast and efficient command parsing and execution. The tool focuses on compact text output to minimize token usage, making it ideal for AI context efficiency. It provides a comprehensive set of over 50 commands for navigation, form interaction, screenshots, network control, and storage management. Features include sessions for isolated browser instances, cross-platform support (macOS, Linux, Windows), and compatibility with various AI agents like Claude Code, Cursor, and OpenAI Codex. The tool's ref-based snapshot feature provides a deterministic element selection using accessibility trees.
Compact text output optimizes token usage for AI agents.
Uses accessibility trees with refs for deterministic interaction.
Native Rust CLI ensures instant command parsing and execution.
Offers 50+ commands for various browser automation tasks.
Supports multiple isolated browser instances with separate auth.
Works on macOS, Linux, and Windows with native binaries.
Install agent-browser using your preferred package manager (e.g., brew, npm).,Download Chrome (if not already installed) using agent-browser install.,Open a website using agent-browser open <url>.,Get a snapshot of the page using agent-browser snapshot.,Interact with elements using refs (e.g., agent-browser click <ref>).
Automate data extraction from websites for AI training or analysis.
Test web applications and ensure functionality using AI agents.
Enable AI agents to interact with websites for various tasks.
Developers building AI agents that require web interaction.
Engineers looking for a fast and efficient headless browser automation tool.
agent-browser is available for free and open-source.