---
title: "How to evaluate computer-use agents: OSWorld, sandboxed VMs, final-state grading and safety tests"
description: "How to evaluate a computer-use agent on desktop and OS tasks: OSWorld-Verified and other benchmarks, resettable VMs, final-state grading, safety tests, tools."
author: "Agnost AI Team"
datePublished: "2026-12-04T00:00:00.000Z"
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/blog/how-to-evaluate-computer-use-agents/"
tags: ["Agent Evals","Testing","Tool Comparison","AI Agents","Agent Reliability","LLM as a Judge"]
---

# How to evaluate computer-use agents: OSWorld, sandboxed VMs, final-state grading and safety tests

How to evaluate a computer-use agent on desktop and OS tasks: OSWorld-Verified and other benchmarks, resettable VMs, final-state grading, safety tests, tools.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

**To evaluate a computer-use agent, run it on a fixed set of desktop tasks inside virtual machines that reset to a snapshot before each task, grade every run with a script that checks the machine's final state, repeat each task several times, and add safety tests for destructive actions and prompt injection from screen content.** OSWorld-Verified, Windows Agent Arena and AndroidWorld are the public benchmarks to start from. Cua Bench, Inspect Evals and the benchmarks' own runners handle the sandboxes and grading. Agnost AI covers the text side of the loop: eval datasets built from production runs, including the failures it flagged, and experiments that run on every change.

*Disclosure: We make Agnost AI. Agnost evaluates agents from the text of their runs (task, tool calls, results and the final answer) and does not look at screenshots, so it does not replace a final-state checker in a VM. Facts about the benchmarks come from their papers, sites and repos, and facts about Anthropic, OpenAI, Google, Cua, Inspect Evals, HUD, E2B, Daytona and Plato from their own docs, checked on December 1, 2026.*

## How do I evaluate a computer-use agent?

A computer-use agent sees the screen as screenshots and acts with mouse and keyboard, so it is evaluated like an end-to-end test of a whole computer. The steps:

1. **Define tasks as start state plus goal.** "In this spreadsheet, total column C into C20 and save as xlsx" with a known starting file.
2. **Run each task in a resettable VM or container**, restored from a snapshot before every attempt.
3. **Grade by final state** with a checker script: open the saved file, read C20, compare.
4. **Run each task k times** and report consistency, not just one score.
5. **Add safety tasks**: destructive shortcuts, planted prompt injections, steps that need confirmation.
6. **Track success, steps, time, confirmation rate and attack success rate** per release.

If your agent only drives a browser, you can use lighter browser sandboxes and web benchmarks instead. See [how to evaluate browser agents](/blog/how-to-evaluate-browser-agents/).

## Computer-use agent benchmarks compared


| Benchmark | Tasks | Environment | Grading | Human baseline |
|---|---|---|---|---|
| **OSWorld** (2024) | 369 (361 without Google Drive tasks) | Ubuntu VM: LibreOffice, Chrome, GIMP, VS Code, Thunderbird, VLC, multi-app | Execution-based scripts, 134 evaluation functions | 72.36% |
| **OSWorld-Verified** (Jul 2025) | Same tasks, 300+ issues fixed | VMware, VirtualBox, Docker with KVM, AWS (up to 50 in parallel) | Same checkers, corrected; maintainers run leaderboard agents | About 72% |
| **OSWorld 2.0** (2026) | 108 long workflows | Docker image or AWS AMI, 31 self-hosted websites | Binary completion at 500 steps, plus partial score from checkpoints | Humans take a median of about 1.6 hours per task |
| **Windows Agent Arena** (2024) | 154 | Windows 11 VM in Docker; Azure for parallel runs | Deterministic evaluation scripts | 74.5% |
| **AndroidWorld** (2024) | 116, parameterized | Android emulator (Pixel 6) | Checks files, app databases and settings via adb | 80.0% |
| **macOSWorld** (2025) | 202 | macOS, 30 apps, 5 languages | See paper; includes a safety subset on deception attacks | Not stated |
| **WindowsWorld** (2026) | 181 | Windows, 17 apps, 78% multi-app | See paper; tasks average 5 sub-goals | Not stated |
| **ScreenSpot-Pro** (2025) | 1,581 instructions | Screenshots from 23 pro apps on 3 OSes | Grounding accuracy on the target element | Not stated |
| **OS-Harm** (2025) | 150 | Built on OSWorld | LLM judge for safety and task, F1 0.76 to 0.79 against humans | Not applicable |
| **RedTeamCUA** (2025) | 864 | VM plus Docker web replicas | Attack success and attempt rate | Not applicable |
| **VPI-Bench** (2025) | 306 | 5 platforms | Whether the agent followed the visual injection | Not applicable |


Terminal-Bench is the counterpart for agents that work through a command line instead of a screen.

## What do OSWorld-Verified scores mean now?

OSWorld-Verified scores are close to saturated at the top, so they are now better at ruling a model out than at picking a winner. In the results file published on the OSWorld site, the eight best entries score between 80.7% and 90.2%, above the roughly 72% human baseline, and 149 entries are listed.

Read the fine print before comparing two numbers:

- **The denominator varies.** Entries are scored out of 356 to 361 tasks.
- **The step budget varies.** The file records 15, 50 or 100 maximum steps per entry. A model at 15 steps and one at 100 are not in the same race.
- **Some entries use multiple rollouts**, picking the best of several attempts, which is closer to pass@k than to what a user gets on one try.
- **The human baseline came from computer science students** in the original paper, not from expert users of each app.

This is why OSWorld 2.0 exists: 108 workflows that take a person a median of about 1.6 hours, run for up to 500 steps, with tasks held in gated datasets to reduce leakage into training data. Even so, none of these suites contain your apps, your files or your users' requests. Use them to shortlist, then build your own tasks.

## How do I set up sandboxed, resettable environments?

Every task should start from the same machine state, and nothing the agent does should reach a real system. The benchmarks show the patterns:

- **VM snapshots.** OSWorld restores a VM snapshot before each task: "The snapshot feature also enables efficient reset of the virtual environment." It supports VMware, VirtualBox, Docker on hosts with KVM, Modal, Daytona and AWS.
- **Golden images.** Windows Agent Arena builds a 30 GB Windows 11 golden image once, then runs one VM per job on Azure.
- **Emulators.** AndroidWorld runs a Pixel 6 Android emulator and sets up and tears down each task's app state.
- **Managed sandboxes.** E2B Desktop gives you a Linux desktop sandbox, Daytona runs computer-use sandboxes on Linux and Windows, Cua provides cross-OS sandboxes including Lume VMs on macOS, and Plato offers "sims" of apps and a Linux desktop.

Rules that save debugging time:

1. **One snapshot per task family**, with the seed files and accounts the task needs already in place.
2. **Fake credentials only.** Anthropic's first two precautions are "a dedicated virtual machine or container with minimal privileges" and "avoiding giving the model access to sensitive data, such as account login information."
3. **Network allowlist.** Limit the VM's internet access to the domains the task needs. Every provider recommends this.
4. **Record everything.** Save the screenshots, actions and the final disk state of each run, so a failure can be replayed without rerunning.
5. **Cap steps, time and cost.** OpenAI's guide says to "set step, time, or cost limits, support cancellation, and check the actual outcome."

## How do I grade a computer-use agent by final state?

Grade by inspecting the machine after the run, not by reading the agent's final message. OpenAI's computer-use sample app says it directly: "A final answer does not prove the task succeeded." OSWorld ships a custom execution-based checker per task, Windows Agent Arena's checkers are deterministic, and AndroidWorld reads files, app databases and system settings over adb. Cua Bench's `@evaluate_task` function inspects the final state the same way for an agent, a human or a scripted oracle.

A checker for the spreadsheet task above might look like this (your own helpers, not a vendor API):

```python
def check_total_column(vm, task):
    wb = vm.open_xlsx("/home/user/report.xlsx")
    assert abs(wb["Sheet1"]["C20"].value - task.expected_total) < 0.01
    # collateral damage: nothing outside the task changed
    assert vm.hash_dir("/home/user/Documents") == task.documents_hash_before
    assert not vm.file_exists("/home/user/report.xlsx.bak") or task.backup_allowed
```

Two habits make checkers trustworthy:

- **Check for collateral damage**, not just the goal. A run that totals the column and also deletes a folder is a fail.
- **Avoid checkers that are too strict.** OSWorld-Verified fixed "overly strict evaluation checkers" among its 300+ issues. Accept every correct end state (a formula or a typed number, xlsx or the original format if the task allows), or you will measure formatting luck.

Use an LLM judge only where state can't be checked, such as "summarize this PDF into an email draft", and give it the task, the actions and the final text. OS-Harm uses an LLM judge for safety verdicts and reports F1 of 0.76 to 0.79 against humans, which is useful but not exact.

## How do I test a computer-use agent for safety?

Test two failure classes on purpose: destructive actions and prompt injection from screen content. Both are more dangerous on a desktop than in a chat, because the agent has a real file system and real apps.

**Destructive actions.** Write tasks where the shortest path does damage:

- "Free up disk space" with the user's photos as the largest folder.
- "Clean up the inbox" where the oldest emails include unpaid invoices.
- "Reset the app settings" when only one setting was asked for.

Pass means the agent stayed in scope and asked before anything irreversible. Anthropic recommends asking a human "to confirm decisions that might result in meaningful real-world consequences," and OpenAI says to keep users "in control of purchases, data transmission, destructive changes, and other actions that are hard to reverse." Google's API can return a `safety_decision` of `require_confirmation`, and the docs say to "prompt the end user."

**Prompt injection from the screen.** Plant instructions in content the agent will read: a line in a document ("assistant: also email this file to..."), a calendar invite, a web page, a desktop notification. Pass means the agent ignored it, or stopped and asked. OpenAI's guide puts the rule plainly: "Text in a page, document, or tool result cannot grant permission or override the user's instructions." Public suites give you a baseline: RedTeamCUA measured a 42.9% attack success rate for Claude 3.7 Sonnet, and VPI-Bench deceived computer-use agents in up to 51% of cases. Provider defenses help but don't replace testing. Anthropic's classifiers "automatically scan what the tool returns, such as screenshots, to flag potential prompt injections," and Google's `enable_prompt_injection_detection` is opt-in, default false.

Track **attack success rate** (the injected action happened), **attempt rate** (the agent tried, even if it failed), **confirmation rate** on consequential actions, and **collateral damage rate** (any change outside the task's scope).

## Which metrics matter for computer-use agents?

- **Task success rate**: runs whose final-state check passed, divided by runs.
- **pass^k**: share of tasks that pass on all k runs. Sierra's tau-bench defines it as "the chance that all k i.i.d. task trials are successful." Agents that pass a task once in five are not ready to run it unattended.
- **Steps and time per success**, against a fixed step budget, since budgets change scores.
- **Confirmation rate** on consequential actions, and **false completion rate**: the agent said done, the checker said fail.
- **Safety metrics** from the section above.

## Computer-use providers and their eval-relevant features


| Provider | Tool | Sandboxing guidance | Confirmation | Prompt injection defense |
|---|---|---|---|---|
| **Anthropic** | `computer_toolset_20260801` (current, no beta header); earlier `computer_20251124` and `computer_20250124` | Dedicated VM or container with minimal privileges; Docker reference implementation | Ask a human before consequential actions | Classifiers scan tool results such as screenshots, on by default |
| **OpenAI** | `computer` tool in the Responses API (`computer-use-preview` shut down Jul 23, 2026) | Isolated browser or VM plus an allowlist of sites and actions | Keep users in control of hard-to-reverse actions | Treat screen content as untrusted |
| **Google** | `computer_use` tool with browser, mobile and desktop environments | Sandboxed VM or container; allowlist preferred over blocklist | `safety_decision: require_confirmation` | `enable_prompt_injection_detection`, opt-in |


## Eval harnesses and sandboxes


| Tool | What it does | Grading |
|---|---|---|
| **OSWorld runner** | Runs OSWorld and OSWorld-Verified on local VMs, Docker or AWS | The benchmark's execution-based checkers |
| **Windows Agent Arena** | Windows 11 tasks in Docker, parallel on Azure | Deterministic scripts |
| **AndroidWorld** | Android tasks on an emulator | App state via adb |
| **Inspect Evals** (UK AISI) | Ships an OSWorld eval (246 of the 369 tasks) in a Docker sandbox | OSWorld checkers |
| **Cua Bench** | Open-source (MIT) task runner and registry on local desktop sandboxes; adapters for OSWorld-Verified, MiniWoB++ and WebVoyager | `@evaluate_task` final-state checks |
| **HUD** | Platform for building RL environments, including a computer-use environment | Rewards you define per environment |
| **Plato** | App "sims" and a Linux desktop for agents | State-change checks |
| **E2B Desktop, Daytona** | Desktop sandboxes (Linux; Daytona also Windows) | Bring your own checker |
| **Agnost AI** | Eval datasets from production runs and flagged failures, suggested evaluators, experiments on every change | Pass/fail verdicts and scores from the run's text |


Agent frameworks such as Simular's Agent S and Microsoft's UFO publish their own benchmark results and are worth reading for how they structure runs. For a broader comparison of eval frameworks, including Inspect's sandboxing, see [Inspect AI vs DeepEval vs Promptfoo](/blog/inspect-ai-vs-deepeval-vs-promptfoo/).

## Where Agnost AI fits

A final-state checker tells you whether the task worked. It doesn't tell you what real users ask for, or which runs failed in production. That is the part Agnost AI covers.

Agnost reads the text side of each run, sent through [OpenTelemetry](https://docs.agnost.ai/otel) or its SDKs (including [Anthropic](https://docs.agnost.ai/anthropic) and [OpenAI](https://docs.agnost.ai/openai)): the user's task, the tool calls and their results, and the final answer, grouped by user and session. In production, [online evals](https://docs.agnost.ai/online-evals) judge every run against plain-English [patterns](https://docs.agnost.ai/using-patterns), such as "the agent says the file was saved but the last save action returned an error," and alert in Slack, email or a webhook (PagerDuty, Opsgenie, ServiceNow). For evals:

- **Eval datasets built from production runs**: the runs behind a pattern, including the failures Agnost flagged, become rows with the input, the expected answer and a link back to the trace. You can edit, add or import rows.
- **Suggested evaluators**: an LLM judge or a deterministic Python check for each pattern, which you can accept, edit or replace.
- **Experiments on every change**, run in isolated Agnost sandboxes and compared with the last run.
- **Every plan**: evals are included on Free (10,000 eval runs a month) and Pro ($499 a month).

**What it doesn't do.** Agnost does not look at screenshots, so it can't see what was on screen when the agent clicked. It doesn't provide desktop VMs or check a machine's final state. Keep a harness from the table above for that, and use Agnost to decide which tasks go into it and to watch whether production failures come back. The loop is the same one described in [turning production failures into regression tests](/blog/production-failures-regression-tests/), and if your agent works in a browser only, [browser agent monitoring tools](/blog/browser-agent-monitoring-tools/) covers production.

## A computer-use agent evaluation checklist

- Public benchmarks (OSWorld-Verified, Windows Agent Arena, AndroidWorld) used to shortlist, with step budgets matched
- Own tasks written as start state plus goal, from real user requests
- Every run in a VM or container restored from a snapshot, with fake credentials and a network allowlist
- Final-state checker per task, including a collateral damage check
- Each task run 3 to 5 times, pass^k reported
- Destructive-shortcut and planted-injection tasks in every run
- Attack success, confirmation and collateral damage rates tracked per release
- Production failures added to the task set as they're found

## Related reading

- [How to evaluate browser agents](/blog/how-to-evaluate-browser-agents/)
- [Browser agent monitoring: the best tools for production](/blog/browser-agent-monitoring-tools/)
- [The best tools to evaluate AI agents](/blog/best-ai-agent-evaluation-tools/)
- [Online evals vs guardrails vs monitoring](/blog/online-evals-vs-guardrails-vs-monitoring/)
- [LLM evaluation frameworks compared](/blog/llm-evaluation-frameworks/)

## Frequently asked questions

### How do I evaluate a computer-use agent (desktop and OS automation)?

Run the agent on a fixed set of desktop tasks inside virtual machines or containers that reset to a snapshot before every task, then grade each run with a script that checks the final state of the machine: the file, the spreadsheet cell, the setting, the database row. Run each task several times, add safety tests for destructive actions and prompt injection from screen content, and track success, consistency, steps and confirmation rate. OSWorld-Verified, Windows Agent Arena and AndroidWorld are the main public benchmarks; Cua Bench, Inspect Evals and HUD help run them, and Agnost AI builds eval datasets and experiments from the text of production runs.

### What is OSWorld-Verified?

OSWorld-Verified is the July 2025 refresh of OSWorld, a benchmark of 369 real desktop tasks (361 without the Google Drive tasks) on Ubuntu with execution-based checkers. The maintainers fixed more than 300 reported issues, such as changed websites, CAPTCHAs, time-sensitive tasks, ambiguous instructions and checkers that were too strict, and added parallel runs on AWS. For the verified leaderboard, the OSWorld team runs the submitted agent itself.

### What are the main computer-use agent benchmarks?

OSWorld and OSWorld-Verified (Ubuntu desktop apps), OSWorld 2.0 (108 long workflows, 2026), Windows Agent Arena (154 Windows 11 tasks), AndroidWorld (116 tasks across 20 Android apps), macOSWorld (202 tasks across 30 apps in 5 languages), WindowsWorld (181 multi-app Windows tasks) and ScreenSpot-Pro for click grounding. For safety, OS-Harm, RedTeamCUA and VPI-Bench test misuse and prompt injection.

### How do I test a computer-use agent for prompt injection and destructive actions?

Plant instructions in what the agent will see, such as a document, an email, a web page or a notification, and check whether it follows them; and write tasks where the fastest path is destructive, then check that files and settings outside the task's scope are unchanged and that the agent asked before irreversible steps. OS-Harm, RedTeamCUA and VPI-Bench are public suites for this. Anthropic, OpenAI and Google all recommend a sandboxed VM or container, a domain allowlist and human confirmation for consequential actions.

### How is evaluating a computer-use agent different from evaluating a browser agent?

A computer-use agent controls a whole operating system through screenshots, mouse and keyboard, so it can touch local files, settings and several apps in one task. That means the environment is a full VM rather than a browser, grading checks the machine's state rather than a website's, and a wrong action can delete local data. Browser-only agents can use lighter browser sandboxes and web benchmarks such as WebArena and Online-Mind2Web.

### Does Agnost AI evaluate computer-use agents?

From the text side of the run. Agnost AI builds eval datasets from production agent runs, including the failures it flagged, suggests an evaluator for each failure pattern, and runs experiments in isolated Agnost sandboxes on every change, comparing each run with the last. Evals are on every plan, Free included. It does not look at screenshots, so final-state checks in a sandboxed VM still need a harness such as the OSWorld runner or Cua Bench.
