Comparison · Agent Patterns

Computer-use agents: models, frameworks and where to run them

What a computer-use agent is and the parts you build one from: the computer-use tools from Anthropic, OpenAI and Google, the open-source Browser Use, Cua, UI-TARS and Agent S, and a machine for the agent to work on.

Reviewed

A computer-use agent is an AI model that operates a computer the way a person does: it looks at the screen, decides what to do, and clicks, types and scrolls until the task is finished. It doesn't need an API for the app it is using, which is the point. If a person can do it in a browser or a desktop app, an agent can try.

No single product is "a computer-use agent". You put one together from three parts: a model that turns screenshots into actions, a loop that carries those actions out and reports back, and a computer for all of it to happen on. This guide goes through the options for each part, what each one actually controls, and who has to run the machine.

How a computer-use agent works

Every option below runs the same loop. Your code sends the model a task and a screenshot. The model answers with one or more actions, such as a click at a coordinate, some text to type or a key to press. Your code performs them on the machine, takes a new screenshot and sends it back. The loop repeats until the model says the task is done or you stop it.

The model never touches the computer itself. With the hosted models from Anthropic, OpenAI and Google, the docs say plainly that you provide the environment and execute the actions. So choosing a model is only half the decision. The other half is the machine those actions land on, and that machine is where the agent's logins, files and half-finished work live.

Computer use or browser use?

If the whole task happens inside web pages, a browser agent is often enough: it reads and acts on the page through the browser rather than through pixels, and it doesn't need a full desktop. Anthropic now offers a separate browser use tool for this, OpenAI documents a browser toolset next to its computer toolset, and Browser Use is built for it.

Reach for full computer use when the agent has to leave the browser: desktop apps, file dialogs, downloads it then opens, a terminal, or software that only exists on Windows or a phone. Many production agents use both, browser actions where they work and the desktop where they don't.

At a glance

OptionBest forWhat it controlsWho runs the machine
Claude computer use (Anthropic)Agents that work across a whole desktop, often alongside bash and a text editor.A desktop you provide; a separate browser use tool covers web-only tasks.Yours: Claude returns actions and your application runs them.
OpenAI computer useTeams already on the Responses API, and agents that mix clicks with generated automation code.A browser or desktop you provide (its recipes use Playwright and a Linux desktop in Docker).Yours, or a partner's hosted browser or sandbox.
Gemini computer use (Google)Teams on Google Cloud, and agents that need to operate Android as well as a browser.A browser, Android device or desktop you provide.Yours: Gemini returns actions and your code runs them.
Browser UseAgents whose whole job happens in web pages.The browser only.Yours (it runs locally), or Browser Use Cloud.
CuaTeams that want to build and test agents on macOS, Windows and Linux on their own hardware.Native desktop apps and browsers on macOS, Windows and Linux.Yours: a Mac, other machines you own, or your own cloud account.
UI-TARS (ByteDance)Teams that want to run the model itself on their own GPUs rather than call a hosted API.Desktop GUIs, browsers and Android.Yours: you deploy the model and the machine.
Agent S (Simular)Open-source agents on a desktop, including fully local setups.Desktop and web apps on macOS, Windows and Linux.Yours, or Simular's hosted API.
A persistent VM per agent (Maritime)Long-lived agents, one per end user, that should find their logins and files where they left them.Linux and Windows desktops, Android phones, and a browser on the same machine.Maritime's cloud; you bring the model and the loop.

The options

1. Claude computer use (Anthropic)

A tool Anthropic defines in its Messages API that gives Claude screenshot, mouse and keyboard control of a desktop. On the newest Claude models it is a single toolset entry with member tools such as screenshot, left_click, type and zoom, and Claude can return several actions in one turn for your code to run in order. Anthropic publishes a reference implementation: a Docker container with a Linux desktop, the tool implementations, an agent loop and a web interface. It is available on the Claude API, Amazon Bedrock, Google Cloud and Microsoft Foundry.

  • Best for: Agents that work across a whole desktop, often alongside bash and a text editor.
  • Controls: A desktop you provide; a separate browser use tool covers web-only tasks.
  • Machine: Yours: Claude returns actions and your application runs them.
  • Keep in mind: Tool versions are tied to models: the newest models accept only the current toolset, and older ones need an earlier tool version with a beta header. Check the model table in Anthropic's docs before you upgrade.
  • Keep in mind: Classifiers scan screenshots for prompt injection and steer Claude to check before acting; Anthropic's docs say to contact support to opt out, for example when no human is in the loop.

Check platform.claude.com for current features, limits and pricing.

2. OpenAI computer use

A computer tool in OpenAI's Responses API. The model returns a batch of actions for a browser or desktop, your code performs them and sends back a screenshot. For its newer models OpenAI also recommends a second route, where the model writes Playwright or PyAutoGUI code instead of single clicks. Its openai-cua-sample-app on GitHub has JavaScript and Python versions, and the docs name partners (Browserbase, Browser Use, Daytona and E2B) for hosted environments.

  • Best for: Teams already on the Responses API, and agents that mix clicks with generated automation code.
  • Controls: A browser or desktop you provide (its recipes use Playwright and a Linux desktop in Docker).
  • Machine: Yours, or a partner's hosted browser or sandbox.
  • Keep in mind: The older computer-use-preview model and tool are now legacy; new integrations should follow the current guide.
  • Keep in mind: Responses can carry pending safety checks, and OpenAI's samples stop for human approval when they do. Build that pause into your loop.

Check developers.openai.com for current features, limits and pricing.

3. Gemini computer use (Google)

A computer_use tool in the Gemini API, also offered on Google Cloud. Its docs cover browser, Android mobile and desktop environments, and say you implement the client-side execution environment yourself. Google's reference implementation, google/computer-use-preview on GitHub, includes a Docker sandbox.

  • Best for: Teams on Google Cloud, and agents that need to operate Android as well as a browser.
  • Controls: A browser, Android device or desktop you provide.
  • Machine: Yours: Gemini returns actions and your code runs them.
  • Keep in mind: Each step can come back with a safety decision that requires a person to confirm before you continue, and Google's terms forbid bypassing it. Plan where that confirmation comes from.
  • Keep in mind: Which Gemini models support the tool differs between the Gemini API and Google Cloud; check the model list in each one's docs.

Check ai.google.dev for current features, limits and pricing.

4. Browser Use

An open-source browser agent, MIT licensed and written mostly in Python, that drives Chrome through the Chrome DevTools Protocol. It works with models from OpenAI, Anthropic and Google, with any OpenAI-compatible server including local ones, and with its own default model. The same team sells Browser Use Cloud, with hosted browsers and a hosted agent API.

  • Best for: Agents whose whole job happens in web pages.
  • Controls: The browser only.
  • Machine: Yours (it runs locally), or Browser Use Cloud.
  • Keep in mind: It doesn't operate desktop apps; pair it with a computer-use tool if the agent leaves the browser.

Check github.com for current features, limits and pricing.

5. Cua

Open-source infrastructure for computer-use agents, MIT licensed. The project includes a driver for desktop automation, Lume for running macOS and Linux VMs on Apple Silicon, a sandbox SDK for Python, TypeScript and Rust, its own decision models and Cua Bench for evaluating agents.

  • Best for: Teams that want to build and test agents on macOS, Windows and Linux on their own hardware.
  • Controls: Native desktop apps and browsers on macOS, Windows and Linux.
  • Machine: Yours: a Mac, other machines you own, or your own cloud account.
  • Keep in mind: Not every part is under the same licence: its Spaces app is source-available rather than MIT. Check the repository before you build on a component.

Check github.com for current features, limits and pricing.

6. UI-TARS (ByteDance)

An open-weight GUI agent model from ByteDance, Apache 2.0 licensed, trained to operate desktop interfaces, browsers and Android from screenshots. UI-TARS-desktop, a separate Apache 2.0 project, is a desktop app with local and remote computer and browser operators.

  • Best for: Teams that want to run the model itself on their own GPUs rather than call a hosted API.
  • Controls: Desktop GUIs, browsers and Android.
  • Machine: Yours: you deploy the model and the machine.
  • Keep in mind: Check which model versions have open weights before planning around one, and look at recent commit activity: the model repository has been quieter in 2026 than the desktop app.

Check github.com for current features, limits and pricing.

7. Agent S (Simular)

An open-source computer-use agent framework, Apache 2.0 licensed and written in Python, that looks at the screen and clicks, types and scrolls in desktop and web apps on macOS, Windows and Linux. It works with local models through Ollama as well as hosted ones, and Simular also runs its agent on cloud computers through its own API.

  • Best for: Open-source agents on a desktop, including fully local setups.
  • Controls: Desktop and web apps on macOS, Windows and Linux.
  • Machine: Yours, or Simular's hosted API.
  • Keep in mind: It moves quickly, with frequent releases; pin a version and read the changelog before upgrading.

Check github.com for current features, limits and pricing.

8. A persistent VM per agent (Maritime)

The machine rather than the model: any of the options above needs a computer to act on, and Maritime gives each agent its own. Every machine is its own Firecracker micro-VM with its own disk; it sleeps when idle and wakes in about a second, and it is billed per second. Agents can get Linux and Windows desktops or Android phones to operate, and run Chromium next to their files and tools.

  • Best for: Long-lived agents, one per end user, that should find their logins and files where they left them.
  • Controls: Linux and Windows desktops, Android phones, and a browser on the same machine.
  • Machine: Maritime's cloud; you bring the model and the loop.
  • Keep in mind: It is not a model: pair it with one of the tools or frameworks above. Check Maritime's docs for how each kind of machine is driven.
  • Keep in mind: This site is published with Maritime, which is why it is on this list. Weigh it like the others.

Check maritime.sh for current features, limits and pricing.

Where the agent runs

The machine decides more about a computer-use agent in production than most teams expect. Anthropic's own guidance starts with a dedicated virtual machine or container with minimal privileges, no sensitive data the agent doesn't need, and internet access limited to an allowlist. On top of safety, the machine decides what the agent still has tomorrow: a browser that is still logged in, the file it downloaded, the app it installed.

  • Your own container or VM: what the reference implementations give you, and enough for development. You own isolation, scaling and cleanup.
  • A hosted sandbox: E2B, Daytona, Modal, Vercel and Cloudflare all sell isolated machines by API, several with desktops. Our AI agent sandboxes guide compares them.
  • A hosted browser: if the agent only needs the web, browser services such as Browserbase handle the browser for you. Our Browserbase alternatives guide covers that field.
  • A persistent machine per agent: one VM per agent or per user that sleeps between tasks, for agents that come back to the same work.

How to choose

Start from the task, then pick the parts:

  • Does it stay in the browser? Start with a browser agent (Browser Use, or a model's browser tool) and add desktop control only when the agent hits something it can't do in a page.
  • Which model do you already use? The three hosted tools all follow the same loop, so the model you already pay for and trust is usually the place to start. Try two on your own tasks before committing; published benchmarks rarely match your apps.
  • Does it need Windows, macOS or a phone? Gemini's docs cover Android; Cua, Agent S and UI-TARS cover desktop operating systems; check that your machine can provide the one you need.
  • Must the model run on your own hardware? UI-TARS has open weights, and Agent S and Browser Use work with local models.
  • Who confirms risky steps? Every hosted option has a way to stop for a human. Decide who that person is, and how they see the screen, before the agent touches real accounts.

A note on pricing

A computer-use agent has two bills: the model, charged per token (and screenshots are a large share of the tokens), and the machine, charged per hour, per second or per session. Prices change, so none are listed here. Run one real task end to end, count the steps and the screenshots, and price both halves on each vendor's pricing page. If the agent waits a lot between tasks, how the machine is billed while idle matters as much as the model.

Questions people ask

What is a computer-use agent?

An AI agent that operates a computer through its screen, mouse and keyboard, the way a person does. A model looks at screenshots and decides on actions; your code performs them on a real or virtual machine and sends back the result, in a loop, until the task is done.

What is the best computer-use agent?

There isn't one answer, because an agent is a model, a loop and a machine put together. Choose the model by testing two or three on your own tasks, choose a framework by whether the work stays in a browser, and choose the machine by how long the agent's state has to last.

Do Claude, OpenAI and Gemini computer use run the computer for me?

No. All three return actions, and their docs say your application provides the environment and carries the actions out. Each publishes a reference implementation or sample app to start from, and you can use a hosted sandbox, browser service or persistent VM instead.

Is there an open-source computer-use agent?

Yes. Browser Use (MIT) drives a browser; Cua (MIT) and Agent S (Apache 2.0) operate desktops on macOS, Windows and Linux; and UI-TARS is an open-weight model under Apache 2.0 that you can run yourself.

Is computer use safe to run on my own laptop?

The vendors advise against giving an agent your everyday machine. Run it in a dedicated VM or container with only the access the task needs, keep credentials out of its reach where you can, and require a person to confirm purchases, sign-ups and anything else you can't undo.

Further reading