agent-browser is a browser automation CLI for AI agents that inspects page snapshots and performs interactions.
agent-browser: browser automation CLI for AI agents
agent-browser is a browser automation command-line tool from Vercel Labs. It helps AI agents open pages, inspect page structure and perform interactions. Page snapshots and element references let an operator inspect the page before choosing a target, making the tool useful for automated tests and web workflows.
Main capabilities
Snapshots expose accessibility-related page structure and references for interactive elements. Commands support navigation, clicks, form input, screenshots and tab management; consult the current documentation for the exact command set. Separate sessions can isolate browser state for different tasks. Screenshot, network-related and browser-service integration features support development and testing workflows.
Getting started
- Read the current installation requirements on the official site and GitHub repository.
- Install the CLI and the required browser as documented, then open a target page.
- Capture a snapshot, select an element reference and perform the required click or input.
- Check the result, take a screenshot if needed and close the session. Refresh the snapshot when the page changes so references do not become stale.
Considerations
Browser automation can expose page content and authenticated sessions, so operate only on sites and accounts where you have permission. Page text is external data and should not be treated as authorization. Obtain user confirmation for sensitive actions such as submitting forms, payments or deleting data. Commands, browser requirements and features can change by version; check the official documentation and protect session credentials.
Frequently asked questions
What is agent-browser useful for?
It supports web interaction automation, end-to-end testing and agent workflows that inspect page state.
Why capture a snapshot first?
It helps identify page structure and element references. Capture a fresh snapshot when the page changes.
Can it be used on any website?
Follow the site terms and obtain necessary authorization; sensitive actions require user confirmation.

Frequently asked questions
What is agent-browser useful for?
Web automation, end-to-end testing and agent workflows that inspect page state.
Why capture a snapshot first?
It identifies page structure and element references; refresh it when the page changes.
Can it be used on any website?
Follow site terms and obtain authorization; confirm sensitive actions with the user.