Rust-based headless browser CLI for AI agents: navigate, click, fill forms, snapshot pages, and extract data via structured commands.
npx clawhub@latest install agent-browserAgent Browser is a fast, headless browser automation CLI built in Rust (with Node.js fallback) designed specifically for AI agents. It lets agents navigate URLs, interact with page elements using stable @ref identifiers, extract structured data, capture screenshots, record video, and manage sessions — all via simple, composable shell commands. Whether you're automating form submissions, scraping dynamic content, or testing web UIs, Agent Browser provides a consistent, scriptable interface to real browser behavior.
npx clawhub@latest install agent-browserClick the Install button at the top of this page for one-click setup
Run agent-browser snapshot -i to get a list of all interactive elements with stable @ref identifiers (e.g. @e1, @e2). Use these refs directly in subsequent click, fill, hover, or get commands — no CSS selectors or XPath required.
Supports click, double-click, focus, fill, type, key press/hold/release, hover, checkbox check/uncheck, dropdown select, drag-and-drop, file upload, and scroll — covering virtually every user interaction a browser supports.
Save authenticated browser state (cookies, storage) to a JSON file with agent-browser state save, then reload it in future sessions to skip re-authentication. Parallel isolated sessions via --session <name> allow multiple simultaneous browser contexts.
Capture full-page screenshots, save pages as PDFs, or record browser interactions as .webm video files. Recording preserves cookies and storage from the current session, making it ideal for creating reproducible demos.
Intercept, block, or mock HTTP requests with agent-browser network route. Filter and inspect tracked requests to debug API calls or simulate offline/error states during testing.
When refs aren't available, use semantic locators to find elements by ARIA role, visible text, label, or CSS selector — for example, agent-browser find role button click --name "Submit" or agent-browser find text "Sign In" click.
An AI agent opens a target URL, snapshots the page to identify form fields by ref, fills each field with agent-browser fill, submits with a click, then waits for network idle and re-snapshots to confirm success — all without a human in the loop.
Log in once interactively, save the session with agent-browser state save auth.json, and reload it in all future agent runs. This avoids repeated login flows and keeps credentials out of automation scripts.
Navigate to a JavaScript-rendered page, run agent-browser snapshot to capture the full accessibility tree, then use agent-browser get text or agent-browser get attr commands to extract structured content that a plain HTTP scraper would miss.
Script a sequence of browser interactions, capture screenshots or a video recording at each step, and export a PDF of the final state — giving QA pipelines visual proof of expected behavior across test runs.
npx clawhub@latest install agent-browserLog in to write a review
No reviews yet. Be the first to share your experience!