BASE

Agent Browser

Agent Browser

CLI for developers and coding agents · Free

A Vercel Labs CLI for browser automation by AI agents: page snapshots, element references, actions, screenshots, and isolated sessions.

Also known as: vercel-labs/agent-browser

Resource illustration: Agent Browser

Open resource ↗

What you can use for free

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

Paid features and costs

Cloud browsers and AI models are billed separately.

Access and limitations

You can use the code under the stated license; servers, APIs, and compute must be provided separately. Cloud browsers and AI models are billed separately.

Use cases

  • Open a page and get a snapshot with identifiers for available elements.
  • Run a scenario using snapshot references, then save a screenshot and verification results.

Example workflow

A possible workflow; this is not a report of hands-on testing.

A Vercel Labs CLI for browser automation by AI agents

Before you start

  • A test URL, a browser, and an interaction scenario.

Steps

  1. Open a page and get a snapshot with identifiers for available elements.
  2. Run a scenario using snapshot references, then save a screenshot and verification results.
  3. Compare the result with the workflow's goal; after changing the project, run its standard checks.

Check your result

  • Target elements are found; the final screen and state match the scenario.
  • Check connection permissions and dependency terms; confirm external service costs if the workflow requires them.

Choosing Agent Browser

Open a page and get a snapshot with identifiers for available elements.

Choose this when

  • Open a page and get a snapshot with identifiers for available elements.
  • Run a scenario using snapshot references, then save a screenshot and verification results.

Requirements

  • Install the browser and Linux system libraries according to the instructions for the selected platform.

Things to consider

  • Costs and limits of free use: Cloud browsers and AI models are billed separately.
  • Terms of use: Apache-2.0 for this repository; connected services, models, and data have separate terms.
  • Automation can read authorized pages and change their state; access is determined by the browser session and the permitted task.

Frequently asked questions

What can you use for free in Agent Browser?

You can use the code under the stated license; servers, APIs, and compute must be provided separately.

What additional costs might arise with Agent Browser?

Cloud browsers and AI models are billed separately.

What terms of use matter for Agent Browser?

Apache-2.0 for this repository; connected services, models, and data have separate terms.

How do you get started with Agent Browser?

Open a page and get a snapshot with identifiers for available elements. Run a scenario using snapshot references, then save a screenshot and verification results. Compare the result with the workflow's goal; after changing the project, run its standard checks.

Does the agent-browser daemon require Node.js, and what is needed for a build?

The CLI uses a native Rust daemon and Chrome: Chrome for Testing is downloaded separately, and a suitable existing browser may be detected. The daemon does not require Playwright or Node.js; Node.js 24+, pnpm 11+, and Rust are specifically required for a source build. Snapshots provide refs, and commands work with elements, screenshots, input, and browser state; read can also retrieve readable text without starting Chrome.

License

Apache-2.0 for this repository; connected services, models, and data have separate terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • Agent Browser
  • vercel-labs
  • Developer tools

Sources

Other resources