What you'll get

agent-browser is a free, open source browser tool for AI agents from Vercel Labs, with over 50,000 stars on GitHub. Your agent drives a real browser one shell command at a time. Instead of the whole page code, snapshot gives it a short list of the buttons, links and fields on the page, each with a ref like @e1. The agent acts on a ref, reads the page again, and repeats.

Their site puts it at about 200-400 tokens per page instead of about 3,000-5,000 for the full page. In our own test on its GitHub page, the list came out about 23 times smaller than the raw page (22,914 vs 530,295 characters).

It works with Claude Code, Cursor, GitHub Copilot, OpenAI Codex, Google Gemini, opencode and any agent that can run shell commands.

Repo: github.com/vercel-labs/agent-browser Docs: agent-browser.dev


What you need


Step 1: Install with one command

npm install -g agent-browser
agent-browser install

The second line downloads Chrome for Testing, only the first time. On a Mac you can use brew install agent-browser instead, then agent-browser install. On Linux, agent-browser install --with-deps also installs the browser's system libraries.

Want to try it without installing? npx agent-browser open example.com


Step 2: Try it yourself

agent-browser open example.com
agent-browser snapshot -i       # the page as a short list, each element with a ref
agent-browser click @e1         # act on a ref from that snapshot
agent-browser get url           # check the result
agent-browser close

Step 3: Hook it to your agent