Browser Layer vs agent-browser, measured.
Browser Layer and Vercel agent-browser are the same kind of tool: a browser an AI agent drives from a terminal. In our benchmark both passed every run. With Claude Code, Browser Layer used about a third fewer tokens (5.80M against 8.80M over ten scenarios, 127 steps against 196). With Cursor’s agent it used 3.4 times fewer. The gap comes from the number of steps, not the cost of each one.
What they have in common
Both are command-line browsers that any agent able to run shell commands can drive. In every test we ran, both solved every task. So the choice is not about whether the agent finishes. It is about how many steps, tokens and minutes it takes to get there.
What is different: what the agent reads
Browser Layer answers with a short numbered map of the page, and after each action it answers with only what changed. In our transcripts, agent-browser re-snapshots, waits and reads again after each action, so the agent makes more calls to reach the same result.
The numbers
Same agent, model, prompt and task for each tool. Only the browser changed. Every answer was checked against ground truth.
- Claude Code on Sonnet, 10 web-agent-bench scenarios, 3 runs each: both 30 of 30. Browser Layer 5.80M tokens, 127 steps, 7.3 minutes, $2.51. agent-browser 0.41.0: 8.80M tokens, 196 steps, 9.3 minutes, $3.28.
- Cursor’s agent on Sonnet, the same 10 scenarios and 3 runs: both 30 of 30. Browser Layer 3.7M tokens, 176 steps, 11 minutes. agent-browser 12.8M tokens, 391 steps, 28 minutes. That is 3.4 times fewer tokens, 2.2 times fewer steps and 2.6 times less time.
- Our own 8 tasks (six local fixture apps, two live sites), one run each: all passed. Browser Layer 1,255k tokens, 56 steps, 258 seconds. agent-browser 1,968k tokens, 64 steps, 348 seconds: 36% fewer tokens.
Why the gap is in steps, not per-step cost
A step costs about the same with either tool: roughly 22k tokens for Browser Layer and 29k for agent-browser in the Cursor runs, and about 90% of that is the agent harness reading its own prompt again at each step. So the saving comes from needing fewer steps. It is also why the lead is smaller under Claude Code, where one step carries about 45k tokens and agent-browser took 196 steps instead of 391.
Where agent-browser did better
On our pagination task (orders), agent-browser clicked Next by name in one command, while Browser Layer needed a reference from a fresh map on every page. In the first run Browser Layer took 388k tokens and 17 steps against 286k and 10. The transcripts also showed an action whose change was a new page of records answering with an unchanged map, and get stopping at 20 of 40 records. We fixed both: such an action now answers with the new records, and click "Next" works by name. The rerun used 219k tokens and 10 steps.
How much to trust this
It is a small benchmark. The sites are fixtures, we wrote some of them, each scenario ran three times and results are medians, and the model and harness change the totals. The scenarios, runner and raw data are public so you can rerun them on your own tasks.
Which one to use
- If tokens, steps or run time matter to you, try Browser Layer on your own task and compare.
- If agent-browser already works for you and cost is not a problem, there is little reason to switch.
- Both are free to try:
npx skills add NAMANIND/browser-layerteaches Claude Code, Codex, Cursor and others the Browser Layer workflow.
Questions
Is Browser Layer better than agent-browser?
On cost and speed in our benchmark, yes: about a third fewer tokens with Claude Code and 3.4 times fewer with Cursor’s agent. On accuracy they were level, since both passed every run. It is our benchmark on small fixture sites, so rerun it on your own tasks.
Why does Browser Layer use fewer tokens?
Mostly because the agent takes fewer steps. A step costs about the same with either tool, and Browser Layer answers each action with what changed, so the agent needs fewer calls to finish.
Does it work with Claude Code and Codex?
Yes. Any agent that can run shell commands can use it. One command, npx skills add NAMANIND/browser-layer, teaches Claude Code, Codex, Cursor and others the workflow.