Agent Browser

•
7
•

Controls browser navigation, scraping, and testing using a fast, context-efficient Rust CLI tailored for AI agents.

Agent Browser is a native Rust browser automation CLI built specifically for AI agents, optimizing context consumption by generating compact, ref-based accessibility tree snapshots (200-400 tokens) instead of verbose DOM dumps. Powered by a persistent daemon driving Chrome via CDP, it provides over 50 commands for robust web navigation, element interaction without fragile selectors, session persistence, screenshots, video recording, and network control. It is ideal for developers and AI agents executing shell-driven scraping, end-to-end web testing, or multi-step automated browsing workflows with minimal token overhead.

Key Features

01Comprehensive suite of 50+ commands for navigation, auth state, network, and media
02Context-efficient ref-based snapshots using 200-400 tokens instead of full DOM trees
03Deterministic interaction with elements via accessible reference IDs (@refs)
04Native Rust client-daemon architecture driving Chrome directly over CDP
057 GitHub stars
06Stateful session, cookie, and proxy management tailored for long-running workflows

Use Cases

01Automating web scraping and data extraction with minimal token overhead in AI loops
02Executing automated end-to-end browser testing and screenshot captures from shell environments
03Filling dynamic multi-step web forms and interacting with authenticated portals