coding

Vercel's Agent-Browser CLI Cuts AI Token Use vs Playwright

Vercel introduces Agent-Browser CLI, a new tool that significantly reduces AI token consumption compared to traditional browser automation frameworks like

Someone tested Vercel’s new agent-browser CLI with Claude and the token savings are legit compared to Playwright MCP.

The trick: instead of dumping full DOM context into Claude for every browser action, it uses snapshot-based refs. Run agent-browser snapshot and get back tiny accessibility tree references like @e1, @e2, @e3. Then just:

agent-browser click @e2
agent-browser fill @e3 "email@test.com"

Way less context bloat than traditional browser automation tools. Each Playwright MCP action normally pushes massive DOM trees into Claude’s context window - kills your token budget fast on complex workflows.

Setup for Claude Desktop is dead simple:

https://raw.githubusercontent.com/vercel-labs/agent-browser/main/skills/agent-browser/SKILL.md

The 90% token reduction claim seems real based on context size differences. Pretty solid option if browser automation keeps maxing out your Claude sessions.