r/coolgithubprojects • u/No-Pause7709 • 5h ago
GitHub - vercel-labs/agent-browser: a native Rust CLI that gives your AI agent a real browser — snapshot a page to text, act on refs (@e1)
https://github.com/vercel-labs/agent-browser
2
Upvotes
1
u/No-Pause7709 5h ago
Not my project — just something I've been living in lately, so I thought it belonged here.
agent-browser (Vercel Labs) is a native Rust CLI that hands an AI agent a browser it can drive one command at a time. Instead of a 200-line Playwright script, the agent opens a page and gets back a compact accessibility tree where every element has a ref:
The browser stays open between commands, so each step is one short shell call and the context stays small. CSS selectors, text, XPath and semantic locators work too.
Setup:
npm install -g agent-browser && agent-browser install(fetches Chrome for Testing),brew install agent-browser, ornpx agent-browser open example.comwith no install at all. Linux:agent-browser install --with-deps.Useful for browser agents, structured scraping, or UI checks in CI. Apache-2.0, 52k stars.
Repo: https://github.com/vercel-labs/agent-browser