Stack Gems
Menu
← Catalog

agent-browser

Vercel Labs Rust CLI with compact a11y refs for agents

AI Agents / Browser Automation · Apache-2.0 · 44.4k

Reviewed 2026-09-03 · last push 2026-10-21 · repo checked 2026-10-21

What's Good

Vercel Labs Rust CLI (Apache-2.0). Native daemon talks CDP to Chrome. `agent-browser snapshot -i` returns an a11y tree with refs (`@e1`, `@e2`); click/fill use those refs. Distinct from Browser Use (Python LLM browser framework), Playwright MCP (MCP control plane), and Chrome DevTools MCP (DevTools traces/Lighthouse). CLI-first for any agent that can run a shell—Claude Code, Cursor, Codex, Gemini. Native binaries for macOS, Linux, Windows.

The Catch

Default idle timeout is about one hour: the headless daemon shuts down and discards transient tabs/state unless you passed `--restore` (or another restore key). Headed, Safari/iOS WebDriver, and user-attached browsers are exempt; cloud-provider browsers are not. Tune with `--idle-timeout` or `AGENT_BROWSER_IDLE_TIMEOUT_MS`; `0` disables. This is CDP Chrome, not stealth—anti-bot pages will still block you.

Verdict

The CLI browser for agents that want refs, not a full DOM dump. Restore or lose the session.

Embed

Maintainer? Add the badge to your README. It is free, links to this review, and there is no paid version.

Reviewed on Stack Gems

Markdown

[![Reviewed on Stack Gems](https://stackgems.com/badge/agent-browser.svg)](https://stackgems.com/gems/agent-browser)

HTML

<a href="https://stackgems.com/gems/agent-browser"><img src="https://stackgems.com/badge/agent-browser.svg" alt="agent-browser reviewed on Stack Gems" height="20"></a>