Browser Layer vs Browser Use, measured.
Browser Layer and Browser Use 1.0 are close. With Claude Code on Sonnet both passed all 30 runs and used almost the same tokens (5.80M and 5.92M). Browser Layer was 12% faster and 14% cheaper, and Browser Use took slightly fewer steps. On Haiku, over 70 runs each, Browser Layer used 1.7 times fewer tokens and 36% less money. A tie on Sonnet and a lead on Haiku, not a sweep.
Two ways to drive a browser
Browser Layer is a command-line browser: the agent runs commands and reads a numbered text map of each page and what changed after each action. The Browser Use 1.0 CLI is a Python package where the agent pipes small Python scripts that use helper functions and can read the page’s DOM. Both work with any agent that can run shell commands.
Sonnet run: a tie
Claude Code on Sonnet, 10 web-agent-bench scenarios, 3 runs each, same prompt and task for each tool.
- Score: both 30 of 30.
- Tokens: Browser Layer 5.80M, Browser Use 5.92M, within 2%.
- Steps: Browser Layer 127, Browser Use 121, so Browser Use used slightly fewer.
- Time and cost: Browser Layer 7.3 minutes and $2.51, Browser Use 8.3 minutes and $2.91. That is 12% faster and 14% cheaper.
- By task, Browser Use was ahead on paginated-search and load-more, and Browser Layer on wait-for-value and multi-step-form.
Haiku run: head to head
Claude Code on Haiku, 14 tasks (the 10 scenarios plus four listing tasks on our fixture site), 5 runs per tool per task, 70 runs each, tools alternating order.
- Score: both 69 of 70. Each failed one modal-trap run.
- Tokens: Browser Layer 4.02M, Browser Use 6.93M. That is 1.7 times fewer.
- Steps: 342 against 490, or 1.4 times fewer.
- Time: 20.5 against 25.9 minutes, 21% less.
- Cost: $0.19 against $0.29, 36% less.
- Browser Layer had fewer median steps in every scenario but one, where they were level. The gap was widest where the page does the work: multi-step-form 6 steps against 10, todos 3 against 6, poll-status 3 against 6.
Where Browser Use is better
On the four listing tasks (read a whole table or catalog) the two were close: 111 steps against 116, and Browser Layer used 17% fewer tokens. Browser Use’s agent writes a loop in Python that reads every page in one script. Browser Layer does it with get --all in one call. Browser Layer was slower on the catalog tasks, 26 seconds against 15 and 17 against 14. In the transcripts Haiku first tried commands the test guard refuses, then retried. We did not break the time down further.
Method and limits
- Fixture sites, some written by us, and one agent family per run set.
- Both tools ran behind a text filter that blocks bypasses (shell escapes, raw network calls, file reads). It is a filter, not a sandbox, and a refused call counts as a step.
- Each Browser Use run had its own headless Chrome. Browser Use was
browser-harness0.1.13, the Browser Use 1.0 CLI. - Scenarios, runner and raw rows are public so you can rerun them.
Which one to use
If your agent is comfortable writing Python loops and you want scripts, Browser Use fits. If you want short commands and the lowest token use on smaller models, try Browser Layer. On a larger model they are level, so test both on your own task.
Questions
Is Browser Layer better than Browser Use?
On Sonnet they tied on score and tokens, with Browser Layer 12% faster and 14% cheaper. On Haiku, Browser Layer used 1.7 times fewer tokens and 36% less money. Both passed almost every run, so it is about cost and speed, not whether the task finishes.
Is this a fair test?
It is our benchmark on fixture sites, so rerun it on your tasks. We held both tools to the same kind of filter, ran each task alternating order, and published the scenarios and raw data.
Which is a better Browser Use alternative for Claude Code?
Browser Layer is a command-line alternative that answers with a text map and what changed. In our runs it matched Browser Use on Sonnet and used fewer tokens on Haiku.