agent-browser

vercel-labs

A native Rust command-line tool that gives AI agents a browser: open pages, read them as an accessibility tree and click or type on elements, one shell command at a time.

RustCreated

What is vercel-labs/agent-browser?

agent-browser is a native Rust command-line tool that gives an AI agent a browser it can drive one command at a time. The agent takes a snapshot of a page, which the tool returns as compact text in which each interactive element has a reference such as @e1. The agent then acts on a reference, reads the page again to check the result, and continues, so the workflow stays visible and inspectable.

The approach keeps the agent's view of a page small and structured instead of sending raw HTML. Automating websites is subject to each site's terms of service and to applicable law, so users should apply it only where they are permitted to.

It suits developers building agents that need to complete web tasks, and testers who want a scriptable, text-based way to inspect and drive pages.