Computer-Using Agent (CUA) Models: How They Work
A computer-using agent model reads your screen, decides what to click and types like a person. How CUA models work, which ones exist, and how to run one safely.
On this page
Short answer
A computer-using agent (CUA) model is a vision-language model trained to operate a computer the way a person does: it reads screenshots, reasons about what it sees, and issues mouse and keyboard actions in pixel coordinates. The leading models come from Anthropic, OpenAI and Google, with open options such as UI-TARS. They work best inside a sandbox, with human approval for sensitive actions.
What is a computer-using agent model?
A computer-using agent (CUA) model is a vision-language model trained to operate a computer through its graphical interface, the way a person does. It takes a screenshot as input, decides what to do next, and outputs mouse and keyboard actions in pixel coordinates, such as clicking a button, typing text or scrolling a page.
Most software was built for human hands, not for APIs. A CUA model closes that gap: instead of needing a special integration for every app, it uses the same buttons, menus and forms a person would. The model repeats a short loop until the task is done: look at the screen, reason about the next step, act, then look again to check the result.
Four names cover most of the field today:
| Model | Maker | How it runs |
|---|---|---|
| Claude computer use | Anthropic | API tool on a virtual machine |
| Computer-Using Agent | OpenAI | Powers the Operator agent |
| Gemini computer use | API for browser and desktop control | |
| UI-TARS | ByteDance | Open model you can self-host |
None of these is a general intelligence. Each is a specialised model that turns a goal and a screenshot into a sequence of interface actions.
How does a CUA model read a screen?
A CUA model reads a screen mainly from screenshots, and some systems also give it the operating system's accessibility tree, which lists the labels and roles of interface elements. The screenshot tells it where things are; the accessibility tree, when present, tells it what things are called.
The hard part is grounding: turning a decision such as "click the submit button" into exact pixel coordinates. Models trained for computer use learn to map words to regions of the screen, so they can find a button even when its label, size or position changes between apps. This is what separates a CUA model from a plain chatbot that can only describe a screenshot.
After each action the model takes a fresh screenshot and checks whether the screen changed as expected. If a dialog appeared, a page failed to load, or the click landed on the wrong element, the next step adjusts. That feedback loop is what lets the model recover from small errors instead of blindly following a fixed script.
Which CUA models can you use today?
The CUA models you can use today fall into two groups: hosted models from the large labs, and open models you run yourself. Anthropic's Claude with computer use was the first widely available option, offered as an API tool that drives a virtual machine. OpenAI's Computer-Using Agent is the model behind Operator, its agent for web tasks.
Google offers computer use through its Gemini models, with environments for browser, mobile and desktop control. Microsoft's OmniParser takes a different route: it is a screen-parsing model that labels interface elements, so you can pair it with almost any language model to build your own agent.
UI-TARS, from ByteDance, is the best-known open option. It is a fine-tuned vision-language model trained specifically for GUI grounding and action, and it can be self-hosted. Open models give you control over data and cost, but they usually need more engineering to reach the same reliability as the hosted ones.
For teams choosing between them, AI agent development covers the wider question of when an agent that drives a screen beats one that calls APIs.
How do you run a CUA model safely?
You run a CUA model safely by treating it like an untrusted user with a mouse: give it a sandbox, narrow permissions and a human in the loop for anything that cannot be undone. Never let it drive your own desktop with your own logged-in accounts.
- Use a disposable virtual machine. Run the agent in a clean VM or container that holds no personal files and can be reset.
- Limit what it can reach. Log in only to the accounts the task needs, with no payment methods or admin rights attached.
- Require approval for sensitive steps. Purchases, messages, file deletions and credential changes should pause for a human.
- Log every action. Keep the screenshots, the model's reasoning and the action taken, so you can replay a failure.
- Set a step and time budget. Cap the number of actions and minutes per task so a confused agent cannot run all day.
These controls matter because a model that can click anything can also click the wrong thing. The same thinking applies to any agent with write access, which is why AI security treats agent permissions as a first-class design question.
What are CUA models good at, and where do they fail?
CUA models are good at repetitive, well-defined interface work: filling in forms, copying data between systems, clicking through a fixed workflow, and checking a page for a specific value. The task has a clear end state, the interface is stable, and a mistake is visible on the next screenshot.
They struggle where the screen is ambiguous or the task is open-ended. Pop-ups, CAPTCHAs, unusual layouts and multi-step decisions all raise the failure rate. A model can also misread a value, click a look-alike button, or keep retrying a step that will never work. Each step also costs time and tokens, so a 40-step task can be slow and expensive compared with a single API call.
The practical rule is simple: use a CUA model when no API exists and the task is short and repeatable. If an API exists, use it. The screen is a fallback for legacy software, not a first choice for new systems.
Example (hypothetical): filing 40 expense reports
Example (hypothetical): a finance team has 40 expense reports to file in a web portal that has no API. By hand, each report takes about 6 minutes: open the form, enter the amounts, attach the receipt, check the totals and submit. That is 40 x 6 = 240 minutes, or 4 hours of steady work.
With a CUA model, each report takes about 2 minutes of agent time: 40 x 2 = 80 minutes. A person then spends 20 minutes reviewing the submitted reports, checking totals and receipts. Total time is 80 + 20 = 100 minutes, saving 240 - 100 = 140 minutes, or about 2 hours 20 minutes.
The saving only holds if the review step stays in place. Without it, a misread amount could be filed unnoticed, and fixing 40 wrong reports would cost more than the time saved.
What are the common mistakes?
The most common CUA mistakes are running the agent on a real desktop, skipping the approval step, and treating a demo task as proof the system is ready for production.
- Running on a personal machine. A model with your browser, files and accounts can reach far more than the task needs.
- No approval gates. Irreversible actions such as sending messages or deleting files should always pause for a human.
- Skipping the sandbox. A clean virtual machine is cheap; cleaning up after a bad run on a real machine is not.
- Judging by one good demo. A task that works once on a familiar screen can fail on the next layout change.
- No step limit. Without a cap, a stuck agent can loop for hours and run up a large bill.
- Using CUA where an API exists. Screen driving is slower and less reliable than a direct call.
Key takeaways
- A CUA model reads screenshots and issues mouse and keyboard actions in pixel coordinates
- Claude computer use, OpenAI's Computer-Using Agent, Gemini computer use and UI-TARS are the main options
- Grounding — mapping a decision to exact pixels — is the skill that makes these models work
- Always run a CUA model in a sandbox with approval gates for irreversible actions
- Use screen driving only when no API exists; an API call is faster and more reliable
Frequently asked questions
What does CUA stand for?
CUA stands for computer-using agent. It is a model trained to operate a computer through its graphical interface: reading screenshots, deciding what to do, and issuing mouse and keyboard actions the way a person would.
Is OpenAI Operator the same as a CUA model?
Operator is the product, and the Computer-Using Agent is the model that powers it. The model itself is a GPT-4o-based system trained to use graphical interfaces, and Operator is the agent built around it for web tasks.
Can a CUA model work on any app?
It can try, because it only needs the screen. In practice it works best on stable, familiar interfaces such as web forms and standard desktop apps, and struggles with unusual layouts, pop-ups and tasks that need judgement.
Do CUA models need an API to control an app?
No. That is the point: they drive the interface directly, so they can use software that has no API. The trade-off is speed and reliability, since each step needs a screenshot and a model call.
How much does it cost to run a CUA model?
Cost depends on the model, the number of screenshots and the number of steps. Long tasks with many steps can be expensive, so set a step budget per task and measure cost on a small pilot before rolling a workflow out.
Is it safe to let a CUA model use my computer?
Not your own computer. Run it in a disposable virtual machine with narrow permissions, require human approval for sensitive actions, and log every step. Treat it like an untrusted user with a mouse.