Skip to content
CrawlfolioSourced research on web data for AI
Menu

Explainer

Browser agent or computer use: which does your task need?

A browser agent works inside web pages; computer use drives a whole desktop. What each reads, what a step costs in tokens, and which your task needs.

A tiny vermilion window frame beside a tall arched navy window frame
AI-generated image · Made for this page

If your agent only has to work inside web pages, start with a browser agent that reads page structure and keeps screenshots as the fallback. Reach for computer use when the task leaves the browser: a desktop app, a native dialog, a page drawn on a canvas. And when a documented API already holds the data, skip both.

The tidy rule you will see repeated, that browser agents read the DOM while computer use reads pixels, no longer matches the docs. Anthropic, OpenAI, Browser Use and Playwright MCP each now offer both ways of seeing in some form, and Google’s computer use has a browser environment of its own, so I would ask two other questions: how much of the machine does the agent control, and does it read structure or pixels first?

This post has no agent runs or benchmarks of my own. Every capability below is what the vendor’s docs said when I read them on November 24, 2026. It belongs to my agent browsers hub, next to Browser Use vs Stagehand.

Short on time?

Short on time? Here's my pick

The task lives in web pages
A structure-first browser agent, with screenshots as the fallback
Anthropic's own computer-use page points web-only work to its browser tool, and page snapshots are text. Medium-high confidence: documented, not benchmarked.
The task leaves the browser, or the page is a canvas
Computer use, ideally inside a VM or container
Desktop apps, native dialogs and canvas-drawn pages are where page structure runs out. High confidence on scope, medium on reliability.
A documented API holds the data
Skip both and call the API
Nothing has to read a screen or choose a click, so there is less to go wrong and less to pay for.
You are choosing on cost
Don't yet: count tokens per step on your own task first
Claude's browser toolset adds about 2,090 more fixed input tokens per request than its computer toolset (my arithmetic), and no vendor publishes a snapshot token count.

Prices verified . Sponsors cannot buy a verdict or a position.

What is the real difference between the two? #

Scope and perception. A browser agent acts inside a browser, and computer use acts on a whole display with a mouse and keyboard.

Anthropic describes its computer use as screenshot, mouse and keyboard control for desktop interaction. It ships as one toolset entry with 17 member tools, including screenshot, left_click, type and zoom, and screenshot captures the full display. For tasks inside web pages, the same page sends you to Anthropic’s browser tool, which it says doesn’t need a full desktop environment. Claude computer use docs.

Three other differences matter once you build:

  • Who runs the environment. Both Anthropic tools are client-side. Claude doesn’t connect to the machine itself, your application executes each action, and screenshots stay in your environment. Computer use, browser use. OpenAI offers SDK toolsets for browser or desktop use plus an OpenAI-hosted browser, and lists hosted partners including Browserbase, Browser Use, Daytona and E2B Desktop. OpenAI guide.
  • What the loop returns. In OpenAI’s guide the model emits computer_call actions, your code answers with a computer_call_output screenshot, and screenshots count as image input. OpenAI guide.
  • What people call each thing. Easton Dev and Taskade both treat computer use as the broad desktop category and a browser agent as the browser-only subset. Easton Dev adds that “browser agent” isn’t a universal industry term, and neither gives costs or success rates. Easton Dev, Taskade.

Does the old DOM-versus-screenshots line still hold? #

Not cleanly. Most of the products I read offer both ways of seeing, in one toolset or in two siblings, and the vendors blur the labels themselves.

Product Reads page structure Reads screenshots
Claude browser toolset Yes: accessibility tree, elements, forms and tabs Yes: screenshots and viewport coordinates, also the fallback on dynamic pages
Claude computer toolset Not described on the page I read Yes: the full display, with mouse and keyboard
OpenAI ComputerToolset Not described Yes: screenshots, mouse and keyboard
OpenAI BrowserToolset Page reading and controls Not specified on the page
Gemini computer use Not described Image input with x/y coordinates from 0 to 999, in browser, mobile or desktop environments
Browser Use Its ultrafast mode acts on accessibility-tree ids Optional: its README mentions a use_vision=False setting
Playwright MCP Accessibility snapshots, by default Opt-in with --caps vision for coordinate-based actions

Claude’s browser toolset is the clearest case. Its docs say Claude works with the page “both through its structure (the accessibility tree, elements, forms, and tabs) and through screenshots and viewport coordinates.” Claude browser use docs.

Highly dynamic pages are where structure runs out. The docs call element references best-effort, and say virtualized lists, canvas-rendered interfaces and pages that re-render on scroll might not expose stable references, so Claude falls back to screenshots and coordinate clicks. Claude browser use docs.

Playwright says the same from the other side. For canvas apps, charts and image-heavy layouts, its snapshots page recommends combining a snapshot with a screenshot. Playwright snapshots.

One unreviewed preprint from November 2025 (one author, and I read only the abstract) proposes exactly that hybrid: accessibility-tree snapshots plus selective vision. I leave its benchmark numbers out because they are self-reported. arXiv 2511.19477.

So a product name tells you little. What you can check is whether the tool reads structure by default, whether screenshots are a fallback or the main input, and whether the environment is a page or a display.

What does a step cost in tokens? #

Claude’s browser toolset carries more fixed overhead than its computer toolset, and no vendor publishes what a page-structure snapshot costs. So I can’t tell you which approach is cheaper per step.

Product Perceives Fixed tool overhead per request Image or snapshot cost
Claude computer toolset Pixels About 4,520 input tokens (about 4,590 on Sonnet 5); about 410 fewer with zoom off A screenshot is roughly 1,000 to 1,800 input tokens, per the computer use docs
Claude browser toolset Structure and screenshots About 6,610 (about 6,670 on Sonnet 5); the four optional members add about 880 Same image rule; snapshot size not published
Gemini computer use Images with coordinates Not stated on the pages I read 1,120 tokens per image by default, 2,240 at ultra_high
OpenAI computer use Screenshots Not on the page Counted as image input; rates not on the page
Playwright MCP Structure No number Snapshots rated low (text only), screenshots high (image tokens); no counts

Google’s page says the ultra_high setting is “required for specific use cases such as computer use”, so the higher figure is the one to plan around for Gemini. Gemini media resolution. Both Claude toolsets follow standard tool use pricing, and the page lists no per-action fee. Claude pricing.

Google’s changelog lists the Computer Use tool as generally available on October 30, 2026, after a public preview for Gemini 3.5 Flash on June 24, 2026. Gemini changelog.

A leaf lit from behind, showing a fine net of pale veins across glowing green tissue
The fixed tokens each toolset adds before any screenshot is taken Photo: Ash Edmonds / Unsplash · Unsplash License

Here is my arithmetic from those published figures, in USD as Anthropic’s page states them. It is arithmetic only, and nothing in it was observed.

  • Fixed overhead. 6,610 minus 4,520 is about 2,090 more input tokens per request for the browser toolset. At Sonnet 5.5’s $2 per million input tokens that is about $0.0042 per request uncached, and at Haiku 5.5’s $0.10 per million (for prompts up to 100,000 tokens) about $0.0002. Claude pricing.
  • One screenshot. The docs’ formula is ⌈width / 28⌉ × ⌈height / 28⌉. For a 1280 by 800 image, a size I picked for the example, that is 46 × 29 = 1,334 tokens, about $0.0027 at $2 per million. Claude computer use docs.
  • The comparison. The browser toolset’s extra fixed overhead is worth roughly 1.6 screenshots on every request.

So structure-first isn’t automatically cheaper. Any saving has to come from text reads replacing screenshots, and I found no page that gives a token count for a snapshot.

Anthropic’s browser docs do say that a tree read of a typical page often costs fewer input tokens than a screenshot, and that screenshots remain the right observation when layout, images or rendering state matter. That is a direction and not a number. Claude browser use docs.

Browserbase argues that computer use pays for a vision inference on every step, while browser use spends inference only where judgement is needed. It gives no numbers, and it sells cloud browsers. Browserbase. I won’t write “X times cheaper” for either approach, because nobody has published the figure that would support it. For a priced 20-step run on two vendors’ computer-use tools, see Gemini vs Claude computer use.

Which tasks need which? #

Use the lightest tool that can reach the data: an API if one exists, a browser agent if everything you need is in the page, computer use if it isn’t. This table is my read of the vendor docs above, not a test result.

Task Plain API or fetch Browser agent (structure first) Computer use (pixels first) Why
Data behind a documented API Best Overkill Overkill No UI has to be read at all
Logged-in web app with forms Only if an API exists Best fit Works, heavier Everything sits in the page, and Anthropic points web-only work to its browser tool
Canvas, chart or map UI Rarely Falls back to screenshots Fits Claude’s element references are best-effort on canvas pages
Native desktop app or file dialog No Outside its scope Needed A browser toolset acts on the page; a native dialog is outside it (my reading)
Mobile app No No Gemini lists a mobile environment The only documented mobile option I read
One-off research across sites Search or fetch API first Good fit Heavier than needed Read-only reads rarely need a mouse
A teal leaf with pale yellow veins fanning out from the centre and soft light blotches
What a structure-first agent trades away: visual context Photo: Sebastian Schuster / Unsplash · Unsplash License

Two rows deserve a second look. The “native dialog” row is my inference from the docs’ scope, not a line any vendor wrote, so test it before you design around it.

The canvas row cuts both ways: Claude’s browser toolset can still act on those pages through screenshots and coordinates, which is a reason to keep screenshots in your design even when structure is your default. Claude browser use docs.

If the API-versus-browser question is the real one, my search vs fetch vs browser guide goes through it. Where the browser runs is a separate decision, covered in picking a cloud browser for AI agents.

What can go wrong, and what do the docs tell you to do? #

Both modes share one risk: the agent reads content you don’t control and then acts on it. Anthropic’s docs warn that Claude can follow commands found in content even when they conflict with your instructions, and say classifiers scan what the tool returns, such as screenshots. Claude computer use docs.

Anthropic’s own November 2025 research says no browser agent is immune to prompt injection. Its figures come from an internal attacker and older models, and even with its safeguards on, attacks still succeeded at a low single-digit rate. That is vendor-run data, so read it as a direction and not a guarantee. Anthropic research.

Control Claude computer use Claude browser use OpenAI Gemini
Isolation Dedicated VM or container with minimal privileges Dedicated container or VM with a fresh profile; host allowlist enforced at the network layer, re-checked after redirects Isolated browser or VM, fresh profile, allow lists Sandboxed VM, container or a dedicated browser profile with limited permissions
Injection scanning Classifiers scan tool output; opt out only through support Classifiers scan page text and screenshots Guidance only: treat screen content as untrusted enable_prompt_injection_detection, opt-in, default false
Human confirmation For consequential actions Human confirms consequential actions, checked in your executor before each call Confirm purchases and data transmission; typing sensitive data into a form counts as transmission safety_decision with require_confirmation
Data handling Screenshots stored in your environment, not by Anthropic Zero-data-retention eligible; not covered under HIPAA readiness The SDK sends returned page text or screenshots to OpenAI Not recorded in my notes

Sources: Claude computer use, Claude browser use, OpenAI guide, Gemini computer use. Gemini’s injection detection applies to Gemini 3.5 Flash-Lite or later, according to that page.

Structure-first isn’t automatically safer. Anthropic’s browser docs tell you to build page reads from the accessibility tree or visible text and not raw DOM source, so hidden text doesn’t reach Claude. Claude browser use docs.

Credentials are the other trap. Browser Use’s docs warn that screenshots are not redacted, so a value typed into a visible field reaches the model as an image, and that its secrets feature is not a sandbox. Browser Use docs. My guide to which prompt injection defenses work for browser agents covers the defenses in detail.

What do builders say, and what has nobody published? #

The community evidence I found is two Hacker News threads from 2024, written about older models, so I treat it as where the arguments began and not as a 2026 survey. My search tool would not return Reddit, so I read none.

In a thread of 103 comments on Anthropic’s first computer use release (October 25, 2024), one commenter wrote “it is prohibitively expensive today” and another “By the time I got a list of flight recommendations it was already $5.” A third argued that “If the LLM gets even one pixel value wrong, then at best the whole process breaks down.” Hacker News, Oct 2024.

A smaller thread (November 5, 2024) argued the other way: one commenter said the screenshot approach is often cheaper than cleaned-up HTML and that browser use works quite well with vision turned off, while another called screenshots worse, but only marginally. Hacker News, Nov 2024.

Those two views conflict with Playwright’s current docs, which rate snapshots as low token cost and screenshots as high. They come from different eras and measure different things, so I leave the question open.

What nobody has published, in the pages I opened, is a third-party comparison of success rate or cost per task for the two approaches on current models. WorkOS compared Anthropic’s and OpenAI’s agents in July 2025, built around Claude 3.5 Sonnet and GPT-4o, so I don’t repeat its numbers. WorkOS. And Browserbase calls its own claim about how much real work happens on the web illustrative and not a benchmark. Browserbase.

To measure on your own tasks, my guide to telling whether a browser agent really works is the place to start.

Which one should you pick? #

Match the tool to where the task lives, then confirm on your own steps.

  • Everything happens in web pages: a structure-first browser agent, such as Claude’s browser toolset, OpenAI’s BrowserToolset, Playwright MCP or Browser Use, with screenshots on as the fallback. Put a domain allowlist in front of it. Confidence is medium-high: it is documented and not benchmarked.
  • The task leaves the page: computer use, in a VM or container. Confidence is high on scope, medium on reliability, since I found no current success-rate data.
  • A documented API has the data: call it. No agent is the safest agent.
  • You are deciding on cost: don’t, yet. Count tokens per step on your own task with each vendor’s token-count endpoint, because the published figures can’t answer it.

What I would do #

I’d start with a structure-first browser agent behind a domain allowlist and keep screenshots as the fallback. I’d add computer use only for the steps that leave the page, and run those in a VM.

Before committing, I’d count the tokens of one real task with each vendor’s token-count endpoint, since the published figures can’t tell you whether text reads actually replace screenshots. For a wider look at the browser-agent hosting and framework choices, see the agent browsers hub and Gemini vs Claude computer use.

FAQ

Is a browser agent the same as computer use?

No. A browser agent acts inside a browser, while computer use acts on a whole display with a mouse and keyboard. The vendors now blur the line: Anthropic's browser toolset reads page structure and screenshots, and Gemini's computer use has a browser environment.

Does computer use only work with screenshots?

Claude's and Gemini's computer use are screenshot-driven in the docs I read. OpenAI's guide also offers a BrowserToolset for page reading and controls, so one vendor can offer both under the same heading.

Is a browser agent cheaper than computer use?

The direction is plausible, because text is lighter than images, and Anthropic says a tree read often costs fewer tokens than a screenshot, but no vendor publishes a snapshot token count. Claude's browser toolset also adds about 2,090 more fixed input tokens per request than its computer toolset (my arithmetic), so any saving has to come from text reads replacing screenshots.

Can computer use run in a browser only?

Gemini's computer use lists a browser environment next to mobile and desktop ones. Claude's computer use controls a full display, and Anthropic points web-only tasks to its separate browser tool.

Do I need a VM or container?

Anthropic's docs recommend a dedicated VM or container with minimal privileges for computer use. Browser Use's docs say to run untrusted tasks in a container or VM, and OpenAI's guide recommends an isolated browser or VM with a fresh profile.

Are my passwords safe if the agent reads screenshots?

Not automatically. Browser Use's docs say screenshots are not redacted, so a value typed into a visible field reaches the model as an image. Keep credentials off the screen and scope secrets to the domains that need them.

Which Claude models support these tools?

On November 24, 2026 Anthropic's computer use docs listed the toolset on Fable 5.2, Mythos 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, and the browser tool page lists it as stable on the Claude API, Bedrock, Google Cloud and Foundry. Lists like this drift, so check the page before you build.

Is there a third-party benchmark of the two approaches?

I found none on current models. The comparisons I opened are vendor posts, a 2025 post built on older models and an unreviewed preprint, so measure on your own tasks.

Sources

19 sources, accessed .

Official pricing, docs, changelogs and status pages 10

  1. Claude computer use tool docs platform.claude.com · accessed
  2. Claude browser use tool docs platform.claude.com · accessed
  3. Claude API pricing, including computer and browser tool overhead platform.claude.com · accessed
  4. OpenAI computer use guide developers.openai.com · accessed
  5. Gemini computer use docs aistudio.google.com · accessed
  6. Gemini media resolution and image token counts aistudio.google.com · accessed
  7. Gemini API changelog aistudio.google.com · accessed
  8. Playwright MCP snapshots page playwright.dev · accessed
  9. Browser Use sensitive data docs docs.browser-use.com · accessed
  10. Anthropic research: prompt injection defenses (Nov 24, 2025) anthropic.com · accessed

GitHub code, issues and releases 2

  1. Browser Use repository github.com · accessed
  2. Playwright MCP repository github.com · accessed

Independent benchmarks and published studies 1

  1. arXiv 2511.19477 preprint abstract (Nov 22, 2025) arxiv.org · accessed

Community discussions 2

  1. Hacker News: Notes on Anthropic's Computer Use Ability (Oct 25, 2024) news.ycombinator.com · accessed
  2. Hacker News: screenshots vs HTML as input for LLMs (Nov 5, 2024) news.ycombinator.com · accessed

Other blogs 4

  1. Browserbase: computer use vs browser use (Oct 13, 2026) browserbase.com · accessed
  2. WorkOS: Anthropic computer use vs OpenAI CUA (Jul 30, 2025) workos.com · accessed
  3. Easton Dev: what is a browser agent (Sept 4, 2026) eastondev.com · accessed
  4. Taskade wiki: browser agents taskade.com · accessed

Last updated November 24, 2026. Researched and drafted with AI tools; editorial review by the site owner is pending.