LIVE · Thursday 3 December

Computer Use Agent Cost Per Task in 2026: Cheaper Alternatives to Screenshots, Step by Step

A 40-step screenshot agent on Claude Sonnet 5.5 costs about $2.70 at list prices. Caching, a smaller model and text snapshots each cut that. Skipping the browser cuts it most.

By Surya10 min read

At Anthropic's list prices on November 17, 2026, a 40-step screenshot-driven computer use task on Claude Sonnet 5.5 costs about $2.70 without prompt caching and about $0.33 with it. The cheaper alternatives, cheapest first, are: skip the browser entirely with web fetch or search (about a quarter of a cent to read ten pages on Haiku 5.5), turn on caching, run the agent on Haiku 5.5, and act from accessibility snapshots instead of screenshots. Routing hard steps up to a frontier model saves money only when escalations are rare, because every escalated step makes the expensive model re-read the whole task history.

Where the money goes in a browser agent

A browser or computer use agent is a loop. The model looks at the page, picks one action, your code performs it, and the result goes back to the model as the next message. The detail that drives the bill is that each request carries the entire conversation so far. Step 40 sends the task, the tool definitions, and every observation and action from steps 1 to 39, then adds one more.

That makes cost grow with the square of the step count rather than in a straight line. In the worked example below, step 1 of a screenshot task on Sonnet 5.5 costs about 1.5 cents and step 40 costs about 12 cents, because step 40's request is about 59,000 tokens long.

Three things fill that request. The first is a fixed charge for the tools themselves. Anthropic's pricing page says declaring computer_toolset_20260801 adds about 4,500 input tokens to every request, and browser_toolset_20260801 about 6,600, covering the tool definitions and the tool-use system prompt. The second is the observations: screenshots are billed as image input, and the browser toolset also bills the accessibility trees and page text it returns. The third is the model's own previous actions.

Screenshots are the biggest share, but they are smaller than often assumed. Anthropic's vision guide prices an image at one token per 28-by-28-pixel patch, so a 1280x720 screenshot, one of the resolutions its computer use docs recommend, is 46 by 26 patches, or 1,196 tokens. The same docs put screenshots at "roughly 1,000–1,800 input tokens each." Resolution matters on the newest models: Claude 4.7 and later use a high-resolution tier, where a full 1920x1080 frame costs 2,691 tokens. In the 40-step example, screenshots are about three quarters of all input tokens, the toolset and prompt about a sixth, and prior actions the rest.

What a single task costs, worked out

The figures in this article are arithmetic on list prices, not measurements of real runs. The assumptions: a 40-step task, a 1,000-token system and task prompt plus the toolset overhead, one observation per step kept in the history, 150 output tokens per step with no thinking tokens, and, in the cached column, 5-minute cache writes for each step's new content and cache reads for everything before it. A 1280x720 screenshot is 1,196 tokens. Anthropic does not publish a typical size for an accessibility tree read, so the text rows assume 600 tokens, roughly what a page read filtered to interactive elements might return; a long page could be several times that. The routed row sends every fifth step to Sonnet 5.5 and the rest to Haiku 5.5, with each model keeping its own cache.

Configuration (40 steps) Input tokens Cost, no caching Cost, with caching
Opus 5.5, screenshots 1,318,520 $5.39 $0.67
Sonnet 5.5, screenshots 1,318,520 $2.70 $0.33
Sonnet 5.5, text snapshots 913,400 $1.89 $0.24
Routed: Haiku 5.5, Sonnet 5.5 every fifth step 913,400 $0.48 $0.135
Haiku 5.5, text snapshots 913,400 $0.094 $0.016

Prices used are Anthropic's per million tokens: Opus 5.5 at $4 input and $20 output, Sonnet 5.5 at $2 and $10, Haiku 5.5 at $0.10 and $0.50 for prompts up to 100,000 tokens. Five-minute cache writes cost 1.25 times the input price on all three. Cache hits on Opus 5.5 and Sonnet 5.5 cost 0.05 times the input price, and on Haiku 5.5 $0.01. Anyone can rerun the arithmetic with their own step count and prices: each step's input is the fixed prompt, plus the step number times the observation size, plus the previous steps' outputs.

Two results stand out. Caching is worth more than any change of technique: it takes the Sonnet screenshot run from $2.70 to $0.33, an eightfold cut, without touching the agent. And model choice is the next biggest lever: the same text-snapshot task costs $0.24 on Sonnet 5.5 and $0.016 on Haiku 5.5 with caching.

The table has no success rate column. How often each configuration completes the same set of browser tasks has not been measured in any published test that uses these models and prices, and a cheap run that fails costs more than an expensive one that succeeds.

The cheapest browser is no browser

Most "browse the web" tasks are really "find and read" tasks, and those don't need an agent that clicks. Anthropic's browser use docs say so directly: for reading pages or finding sources, "the web fetch tool and web search tool are lighter."

Web fetch has no charge beyond tokens. Anthropic's pricing page says an average 10 kB web page is about 2,500 tokens, so reading ten pages is about 25,000 input tokens: a quarter of a cent on Haiku 5.5, five cents on Sonnet 5.5. A max_content_tokens setting caps any one fetch. Web search costs $10 per 1,000 searches plus tokens, and failed searches are not billed. Code execution is free when the 20260209 versions of web search or web fetch are in the request, which lets the model filter results in code before they enter its context.

Pages that only render in JavaScript break plain fetch. A reader service sits in between. Jina's Reader returns a page as Markdown when you prefix its URL with r.jina.ai, and its page says the default engine runs the page in a headless browser so client-side scripts execute first. It is priced on the tokens it returns, every new API key comes with 10 million free tokens, and it allows 20 requests per minute without a key.

If search calls themselves are a large share of the bill, Brave's Search API lists $5 per 1,000 requests, and Exa lists $7 per 1,000 for its default search types and $1 per 1,000 pages for page contents.

Many sites also load their data from JSON endpoints a script can call directly. When a task only needs that data, an API call skips both the browser and most of the tokens, though it depends on an endpoint that stays stable and that the site's terms allow you to use.

When you do need to click: text before pixels

Some tasks require filling forms, logging in or moving through a multi-page flow. For those, the cheaper path is to let the model act from the page's structure rather than from pictures of it.

Playwright's MCP server is built around this. Its documentation says it "uses accessibility snapshots instead of screenshots," rates snapshot token cost as "Low — text only" against "High — image tokens" for screenshots, and its README says "no vision models needed." Each element in a snapshot gets a reference the model clicks by name rather than by pixel coordinates. Anthropic's browser toolset works the same way: read_page returns the accessibility tree with references, and the docs say "a tree read of a typical page often costs fewer input tokens than a screenshot."

There is a trap. Playwright's docs say "most tools return a fresh snapshot automatically after each action," and a full snapshot of a long page is not small. Anthropic caps a read_page result at 50,000 characters. Both tools let you read less: Playwright's browser_snapshot takes a target and depth, browser_find returns only matching nodes, and --snapshot-mode=none stops automatic snapshots; Anthropic's read_page takes filter: "interactive", a depth cap and a subtree reference. Playwright's README also says its command-line interface is "more token-efficient" than the MCP server because it avoids loading large tool schemas and accessibility trees into context.

Snapshot size changes the arithmetic sharply on Haiku 5.5. Anthropic prices Haiku 5.5 by prompt length: a request over 100,000 tokens pays $0.50 input instead of $0.10, and the count includes cache reads. With 3,000-token page reads kept in history, a task crosses that line at step 30, and the same 40-step run costs $0.81 uncached instead of $0.094. Keeping reads small keeps Haiku cheap.

Why a cheap model can make most of the decisions

The steps of a browser task are not equally hard. Many are small decisions: which link in a list of references to click next, which field to type into, whether the page that loaded is the one expected. Others need more: reading a chart, judging a layout, or recovering when the page didn't behave. Anthropic's own pricing page advises choosing "Haiku for simple tasks, Sonnet for most production workloads, and Opus for the most complex reasoning," and the browser and computer toolsets both support Haiku 5.5.

What share of steps in real browser tasks are the easy kind has not been measured in published work. That share decides whether routing pays. The routed row in the table assumes one hard step in five, and it shows the catch: the eight Sonnet steps cost $0.121 of the run's $0.135. Each escalation makes the larger model read the full history, so a routed agent costs roughly what its escalations cost. A router that escalates often ends up near the price of running the larger model throughout.

Where cheaper setups fail

The documentation is specific about where text-based browsing breaks. Anthropic's browser use docs list canvas-rendered interfaces, embedded video, remote-desktop surfaces, heavily virtualized lists and elements inside cross-origin iframes as content that "often" has no useful accessibility node, so the model has to fall back to screenshots and coordinates. Playwright's docs recommend combining snapshots with screenshots "when visual context matters, such as canvas apps or charts." References also go stale when the page changes, and Anthropic notes "the API can't detect a stale or unknown reference," so your code has to.

Screenshots have failure modes too. Anthropic's computer use docs warn that Claude "sometimes acts as if its actions succeeded without explicitly checking their results," and that dropdowns and scrollbars can be hard to work with the mouse; they suggest keyboard shortcuts instead. OpenAI's computer use guide gives similar advice: check "the actual outcome instead of relying only on the model's final answer," and bound runs by step, time or cost. For GPT-6 Astra, OpenAI now recommends code execution over its computer tool, which still works as an alternative.

The practical escalation signals follow from those lists. Move a step to screenshots when the accessibility tree has no node for the thing the task is about. Move it to a larger model when the small model's action failed or the page state is ambiguous.

Pruning old screenshots: check your model first

The standard advice for long screenshot loops is to drop old images, and Anthropic's computer use docs still describe it: keep the last three screenshots and prune in batches every 25 turns, since more than 20 images in one request triggers a stricter size limit. On uncached Sonnet 5.5 pricing, keeping only the last three screenshots cuts the 40-step example from $2.70 to about $1.02.

But the same docs now say to avoid client-side pruning on the newest models, including Opus 5.5, Sonnet 5.5 and Haiku 5.5, because "removing an earlier screenshot from a request invalidates every later thinking block already in the history." They recommend resizing screenshots or using on-demand compaction instead, and if you prune anyway, setting prefix_mismatch_behavior: "drop_block". Pruning also rewrites the cached prefix. In the worked example, caching the full history ($0.33) beat pruning without caching ($1.02).

Parsec, a small language model lab, offers a context layer that does a version of this pruning for coding agents (Claude Code, Codex and opencode), trimming unused tool output and thinking. Its site says a study of its own traces found 67.9% of trim-eligible web content went unused. Its published cost figures come from Parsec's own SWE-bench Verified benchmark, which Parsec ran and which can be re-run from its public repo; no independent re-run has been published, and it covers coding tasks, not browser agents. The same GitHub organisation publishes open-jev, an MIT-licensed kit for fine-tuning small "decision models" including one called TOD, which its README does not describe as part of Parsec's product. Parsec publishes no browser-task results and no price per decision for it.

Bottom line

If the task is finding and reading, use web search and web fetch, or a reader service for JavaScript pages; that is cents per task or less. If the agent has to click, turn on prompt caching first, act from scoped accessibility snapshots, and run it on Haiku 5.5, keeping each request under 100,000 tokens. Escalate individual steps to Sonnet or Opus only when the page has no usable tree or the small model has failed, and count escalations, since they set the bill. Keep full screenshot computer use for canvas apps, remote desktops and visual checks, at the lowest resolution that works.

Sources

More in Chips & Compute

All Chips & Compute →