Optimize
Computer Use / Browser Agents: Token and Time Cost
Claude computer use cost is not a separate sticker — it is Messages API tokens plus image tokens in a screenshot-and-action loop. Every step pays vision, tool schemas, and growing history, while wall-clock stacks separately. Measure both, then cut the tax.
This page is part of the Optimize hub, which covers the whole topic end to end.
Last updated 20 September 2026. Searchers for claude computer use cost usually want a sticker — dollars per click, or a special computer-use plan. Anthropic’s published computer-use pricing is clearer than that rumor: computer use follows standard tool-use pricing on the Messages API. Screenshots and zoom images bill as image (vision) input; tool definitions and results bill as ordinary input text; model replies bill as output. There is no separate “per click” line item on the public rate card. What makes the bill large is the loop: many steps, each carrying images and growing history, plus wall-clock while the environment reacts. Figures and overhead estimates below were checked against Anthropic’s computer-use tool docs and Claude API pricing on this date. Product surfaces and image-token formulas evolve — confirm on platform.claude.com. [VERIFY: 2026-09-20]
Not affiliated with Anthropic. Claude Token Optimization is an independent site and audit service. Claude® and related product names are trademarks of Anthropic PBC. Plan prices, model rates, toolset overhead, and image token rules change; always confirm on Anthropic’s own docs. [VERIFY: 2026-09-20]
This spoke sits under the Optimize hub. It specializes the general agent tax on tool-use costs for UI automation — Claude computer use and browser-style agents that see the screen and click. Pair it with Cowork, MCP costs, extended thinking, and cut token usage. Soft CTA to a written review at the end — no dollar price on this page.
What computer use and browser agents are
Claude computer use is an Anthropic-defined client toolset on the Messages API. You declare a toolset entry (as of this VERIFY date, commonly computer_toolset_20260801 on supported models; earlier computer_20251124 / computer_20250124 betas remain for some models and platforms). Claude returns member tool calls such as screenshot, left_click, type, scroll, and zoom. Your application runs those actions in an environment you control — typically a sandboxed desktop or container — then returns results (images for screenshots/zoom; short acknowledgments for clicks and keystrokes). Claude observes, plans the next step, and the loop continues until the task finishes or you hit a max-iteration cap. [VERIFY: 2026-09-20]
Browser agents are the same shape with a narrower surface: navigate pages, read the DOM or a viewport, click, type, and screenshot inside a browser. Anthropic also documents a dedicated browser use toolset for tasks that stay inside webpages — often a closer fit than a full desktop when you do not need LibreOffice or system UI. Third-party “browser agent” products wrap similar screenshot-and-action loops around Claude or other models. The cost physics below apply to all of them: vision in, actions out, history grows.
Computer use is not the same as structured tool use or MCP. A weather API returns a short JSON blob. A computer-use step often returns a full screenshot — hundreds to thousands of image tokens — plus whatever text you also dump into the result. That is why claude computer use cost feels mysterious until you count steps.
Why cost is token AND wall-clock
Two clocks run at once. The token clock is what the API meters: input (tool defs + history + screenshots + text results) and output (reasoning text + tool_use blocks). The wall-clock is what your users and infra feel: screenshot capture, UI animation delays, page loads, retries after a missed click, and human approval gates for consequential actions. You can burn money fast on tokens with a short wall time, or burn minutes of infra and attention on a loop that is “only” moderate on tokens. Good ops measure both.
Every successful step tends to add:
- Vision / screenshot tokens — the image Claude sees (and any
zoomcrop). Anthropic’s computer-use docs note that long loops accumulate screenshots quickly — roughly on the order of about 1,000–1,800 input tokens each at typical sizes, with stricter per-image limits once a single request carries more than about 20 images. Exact token counts depend on resolution and model image tiers; usecount_tokensor responseusagefor the billable number. [VERIFY: 2026-09-20] - Action tool schemas — declaring the computer-use toolset adds on the order of about 4,500 input tokens of definition overhead on current Messages pricing docs (roughly 4,520 on several Opus-class / Fable / Mythos ids; about 4,590 on Claude Sonnet 5). Disabling
zoomvia configs removes about 410 of those. Cache stable tool defs when prefixes match so you are not re-paying the full overhead at list rates every turn. [VERIFY: 2026-09-20] - Growing history — prior screenshots, click acknowledgments, failed attempts, and assistant text stay in the window unless you prune, summarize, or clear old tool results.
Retries are the silent multiplier. A missed click is not free: you often pay another screenshot, another model turn, and more wall time while the UI settles. That is the same retry tax described on tool-use costs, amplified by vision.
Cost drivers (what actually moves the bill)
| Driver | What happens | Why it hurts |
|---|---|---|
| Screenshot resolution / frequency | Full-display PNGs every step, or zoom regions on top | Image tokens dominate input; >~20 images/request tightens limits |
| Tool schema re-injection | Computer toolset (~4.5k tokens) + bash/editor companions | Uncached defs re-bill every Messages call |
| Full DOM / page dumps | Paste entire HTML or accessibility trees into tool_result | Text tokens stack on top of screenshots |
| Retries on failed clicks | Miss → screenshot → replan → click again | Extra rounds × (image + history) |
| Multi-tab exploration | Open many sites; keep all viewports in history | More screenshots, more confusion, more repairs |
| No summarization between steps | Keep every prior image byte-identical in context | Context window fills; cache churn if you prune badly |
Extended thinking / reasoning, if enabled on the same loop, adds another output-token layer. Anthropic’s computer-use guidance for earlier tool versions notes effort settings that trade accuracy vs cost on UI tasks — avoid “max” thinking when it does not improve click success. Details on the thinking meter live on extended thinking costs. [VERIFY: 2026-09-20]
Illustrative cost bands (not case studies)
The bands below are illustrative planning ranges for API-shaped computer-use loops on mid-tier Sonnet-class rates. They are not benchmarks, customer case studies, or Anthropic quotes. Your step count, image sizes, caching hit rate, and model id will move the result. Always meter with usage and your own logs.
| Scenario shape | Rough step / image profile | What to expect |
|---|---|---|
| Short form-fill | ~8–20 steps; few screenshots; mostly typed fields on one page | Lower token spend if images are resized and history stays short; wall-clock often minutes, not hours |
| Guided multi-page checkout / admin task | ~25–60 steps; screenshot each navigation; some retries | Screenshot tokens + retries usually dominate; cache tool defs or overhead repeats |
| Long multi-site research agent | ~80–200+ steps; many tabs; little summarization | Highest risk of context bloat and wall-clock drag; prefer MCP/API extraction when possible |
Seat products (Cowork-style desks, consumer chat with computer features) may hide the Messages meter behind a usage bar. The physics are the same: more screenshots and more steps empty the bar faster. See Claude Cowork costs for that product surface.
A useful mental model: treat each screenshot as a “page load” on the token bill, and each retry as a wasted page load. Short form-fills stay cheap when the agent types into a known layout without re-capturing the whole desktop after every character. Long research runs get expensive when the agent opens tab after tab, keeps every viewport in history, and never collapses what it already learned into a short note. If your logs show more than a handful of full-resolution images per finished task, fix capture policy before you renegotiate model tiers.
How to measure
A practical formula for API loops:
Steps × (image tokens + text tokens per step) × model $/MTok, plus output tokens for planning and tool_use JSON — then add time cost separately (infra minutes × your cost of latency, or simply wall-clock SLOs).
- Log each step: member tool names, whether a screenshot/zoom returned, input/output tokens from
usage, and elapsed ms. - Attribute image vs text vs tool-def share. If images are > half of input, resolution and prune policy matter more than prompt wordsmithing.
- Track retry rate (failed clicks / total clicks) and average steps per successful outcome — your true unit cost is per finished task, not per API call. Pair with cost per task thinking.
- Estimate ahead with Anthropic’s token-counting endpoint on a representative message array that includes tool defs and a sample screenshot. [VERIFY: 2026-09-20]
For budgets and alerts once you have a baseline, see LLM budgets and spend alerts.
Cut the tax
Same order of operations as general agent hygiene — shrink what enters the window before you shop models:
| Lever | What to change | Watch-out |
|---|---|---|
| Fewer screenshots | Screenshot after batches of actions, not after every keystroke | Blind steps miss errors; prompt Claude to verify at milestones |
| Crop / resize | Downscale to fit model image limits; crop to the active window | Scale click coordinates back to real display pixels |
| Summarize observations | Replace old screenshots with short text summaries of state | Prune in batches so prompt cache prefixes stay stable |
| Cap max steps | Hard iteration limit in the agent loop (Anthropic samples use caps) | Fail closed with a clear error instead of infinite spend |
| Prefer API / MCP over UI | Call the vendor API or an MCP server when one exists | UI remains for apps with no API — see MCP costs |
| Route models | Haiku/Sonnet for planning and triage; stronger models for hard UI | Routing a huge screenshot dump to Haiku still burns the dump |
| Cache tool defs | cache_control on the computer toolset entry when prefixes match | Changing tool configs every turn busts the cache |
Anthropic’s own computer-use docs recommend keeping screenshot history bounded (for example, retaining recent screenshots and pruning on an interval rather than every turn), resizing so requests stay within image limits, and implementing zoom so Claude can inspect small controls without keeping a 4K full desktop in context every step. Batch actions (several clicks then one screenshot) cut round trips versus one action per Messages call. [VERIFY: 2026-09-20]
Model routing details: model routing. Broader cut list: cut token usage. Coding-loop hygiene: Claude Code tokens.
When computer use is worth it vs structured tools
Choose computer use / browser agents when the work is genuinely UI-bound: legacy admin consoles, vendor portals with no API, visual QA, or workflows that only exist as buttons and forms. Prefer structured tools, MCP servers, or direct HTTP APIs when the same data or action is available without pixels — those paths usually win on tokens, latency, and reliability. See MCP servers and Claude cost and the general tool-use tax.
Hybrid patterns work well: MCP or API for the data plane, computer use only for the awkward UI edge. Subagents can isolate a browser worker so the parent context stays text-heavy — with caps, so fan-out does not multiply spend (see subagents).
Security and oversight are cost factors too. Computer use on the open web raises prompt-injection and irreversible-action risk; Anthropic documents classifiers, sandboxing guidance, and human confirmation for consequential steps. Extra confirmation gates add wall-clock — budget for them rather than discovering them mid-incident. [VERIFY: 2026-09-20]
Also weigh engineering cost: a brittle UI selector that breaks every vendor redesign will burn retries forever. If you will automate the same portal daily, investing once in an API key, export hook, or MCP wrapper usually beats an evergreen screenshot loop on both tokens and on-call time. Keep computer use for the long tail of one-off or no-API surfaces, not as the default for every integration.
FAQ
Is computer use billed separately from the Messages API?
No separate public “computer use sticker” beyond standard tool-use + vision pricing. You pay model input/output rates for text, tool overhead, and image tokens for screenshots/zoom. Confirm live on Anthropic’s pricing and computer-use pages. [VERIFY: 2026-09-20]
How many tokens is one screenshot?
It depends on pixel dimensions and the model’s image tier — not file size alone. Computer-use docs cite roughly 1,000–1,800 input tokens per typical accumulated screenshot as a planning heuristic; measure with count_tokens or usage for your resolution. [VERIFY: 2026-09-20]
Should I always use Opus for computer use?
Not by default. Use the cheapest model that hits your click-success and task-completion bar; reserve stronger models for hard UI or high-stakes steps. Pair with model routing.
When should I use browser use instead of full computer use?
When the task stays inside webpages. Browser-oriented toolsets avoid a full desktop environment and can reduce irrelevant UI chrome in screenshots. Full computer use fits desktop apps and mixed OS workflows.
Does this apply to Cowork and Claude Code?
Product UIs may package computer-like or browser-like loops behind a seat or usage bar. The same drivers apply: screenshots, steps, retries, and history. Meter what the product exposes, then apply the cut list above.
Next steps
- Instrument one computer-use or browser-agent task: steps, image vs text tokens, retries, wall-clock.
- Resize/crop screenshots and add a hard max-step cap before changing models.
- Replace UI steps with MCP or direct API calls wherever the vendor allows — see MCP costs.
- Cache computer toolset defs; summarize or prune old screenshots in batches.
- Route planning vs hard UI steps with model routing.
- If several waste patterns stack across agents and UI loops, paste for a written audit — asynchronous digital review of prompts, tool wiring, and spend shape. No dollar price on this page.
Computer use is how Claude operates software that has no clean API. The bill is steps × (images + text) × rate, plus time. Measure both clocks, prefer structured tools when you can, and keep the screenshot loop only for the work that truly needs eyes and a mouse.
Keep reading
- Tool-use costsThe general agent token tax this page specializes.
- Claude Cowork costsDesk-style agents as a cost surface.
- SubagentsWhen fan-out helps — and when it multiplies spend.
- MCP costsStructured tools that often beat UI clicking.
- Extended thinkingReasoning tokens on top of the action loop.
- Cut token usageEleven levers before you add more screenshots.
- Claude Code tokensSession hygiene for coding agent loops.
- Model routingHaiku/Sonnet for planning; Opus only when needed.
- Optimize hubAll cost-cut levers in one place.
- AuditWritten review when UI loops look opaque.