---
title: "Computer Use for agents"
description: "Let agents interact with desktop GUIs in sandboxed cloud environments for automated UI testing and validation."
canonical: "https://docs.warp.dev/agents/capabilities/computer-use/"
---

> For the complete documentation index, see [llms.txt](https://docs.warp.dev/llms.txt).
> Markdown versions of each page are available by appending .md to any URL.

# Computer Use for agents

Let agents interact with desktop GUIs in sandboxed cloud environments for automated UI testing and validation.

Computer Use enables agents to interact with desktop environments. The agent can see what’s displayed on screen, click and drag, type text, use keyboard shortcuts, and perform other GUI interactions—all within a secure, isolated sandbox.

A key use case is **testing UI changes** with a self-contained feedback loop, where the agent can verify that your code changes produce the expected visual and behavioral results without requiring manual testing.

## Capabilities

With Computer Use, agents can:

-   **Take screenshots** - Capture and analyze the current display
-   **Record video** - Capture sessions as annotated video recordings; see [Testing and recordings](https://docs.warp.dev/agents/capabilities/computer-use/testing-and-recordings/)
-   **Interact with applications** - Click buttons, fill forms, navigate interfaces
-   **Type and control keyboard** - Enter text and use keyboard shortcuts
-   **Automate testing workflows** - Test UI changes end-to-end without manual intervention
-   **Work with browser-based interfaces** - Test web apps and navigate the web

Computer Use is only available in Warp’s sandboxed cloud environments, not in local interactive terminal sessions.

## In this section

-   [Browser use](https://docs.warp.dev/agents/capabilities/computer-use/browser-use/) - Drive the bundled Chromium browser, visually or with scripted Playwright commands.
-   [Testing and recordings](https://docs.warp.dev/agents/capabilities/computer-use/testing-and-recordings/) - Validate changes end-to-end and capture annotated video recordings as proof.
-   [Screenshots and videos in pull requests](https://docs.warp.dev/agents/capabilities/computer-use/artifacts-in-prs/) - Attach captured screenshots and recordings to pull request descriptions automatically.

* * *

## Enabling Computer Use

Computer Use is enabled by default for cloud agent runs, including [runs on a third-party harness](#computer-use-with-third-party-harnesses): when a run’s configuration doesn’t specify a Computer Use setting, the agent runs with Computer Use available. You can control Computer Use per run or per configuration through several entry points:

### Warp app settings

Runs on the Warp Agent started from the Warp app don’t use the server default: they always follow the app’s **Computer use in Cloud Agents** setting ([`cloud_agent_computer_use_enabled`](https://docs.warp.dev/terminal/settings/all-settings/)), which is off by default. To control Computer Use for [Cloud Agents](https://docs.warp.dev/platform/) started from the Warp app, navigate to **Settings** > **Agents** > **Warp Agent** > **Experimental** > **Computer use in Cloud Agents**.

This setting doesn’t apply to runs on a third-party harness, which use the server default.

### CLI

When running cloud agents with the [Oz CLI](https://docs.warp.dev/agents/cli/oz-cli/), use flags to control Computer Use per run:

```bash
oz agent run-cloud --computer-use --prompt "<task>"
oz agent run-cloud --no-computer-use --prompt "<task>"
```

### API

When creating a cloud agent run with the [Warp Platform API](https://docs.warp.dev/factories/api-and-sdk/), the optional `config.computer_use_enabled` field controls Computer Use. When omitted, it defaults to `true`. Set it to `false` to disable Computer Use for the run:

```json
{
  "prompt": "Build a button component that matches this design, then test it in the browser",
  "config": {
    "computer_use_enabled": false,
    "environment_id": "optional-environment-id"
  }
}
```

For full API documentation, see the [Warp Platform API](https://docs.warp.dev/factories/api-and-sdk/) reference.

### Web app

In the [Oz web app](https://oz.warp.dev), you can enable or disable Computer Use for:

-   **New agent runs** - Configure Computer Use when starting a new agent run from the web app
-   **Scheduled agent runs** - Enable Computer Use for [scheduled agents](https://docs.warp.dev/platform/triggers/scheduled-agents/) managed from the web app
-   **Integrations** - Configure Computer Use for Slack, Linear, and other [integration-triggered agents](https://docs.warp.dev/platform/integrations/)

* * *

## Computer Use with third-party harnesses

Cloud agent runs on the Claude Code, Codex, and Pi [harnesses](https://docs.warp.dev/factories/harnesses/) can use Computer Use. During the run, Warp attaches a built-in `warp-computer-use` MCP server to the harness. The harness’s model calls the server’s tools to take screenshots, control the mouse and keyboard, and record the screen.

A third-party harness gets Computer Use when both conditions hold:

-   **Cloud agent run** - Local [third-party CLI agents](https://docs.warp.dev/agents/cli-agents/overview/) in Warp don’t get Computer Use.
-   **Computer Use enabled** - Enabled by default. To disable it for a run, pass `--no-computer-use` in the Oz CLI or set `config.computer_use_enabled` to `false` in the Warp Platform API.

If either condition isn’t met, the run starts without the `warp-computer-use` tools.

The agent reports the screenshots to keep and starts and stops its own recordings. Warp saves reported screenshots and finished recordings to the run, where the agent can attach them to pull requests or share them elsewhere. See [Screenshots and videos in pull requests](https://docs.warp.dev/agents/capabilities/computer-use/artifacts-in-prs/).

* * *

## How Computer Use works

### Setup and requirements

Computer Use runs in a containerized sandbox, allowing headless cloud environments to render and interact with graphical applications. The sandbox is fully isolated—it does not have access to your local machine, credentials, or sensitive data outside the sandbox environment.

Your cloud environment must include any desktop applications you want the agent to control in your [environment configuration](https://docs.warp.dev/factories/environments/). Browser-based tasks need no extra setup: every Computer Use environment includes a bundled Chromium browser. Learn more in [Browser use](https://docs.warp.dev/agents/capabilities/computer-use/browser-use/).

### Model selection

On the Warp Agent, Computer Use currently supports Anthropic Claude models. Warp uses an auto model selector to choose the best-suited model for each Computer Use task.

On a third-party harness, the model selected for the harness operates Computer Use.

* * *

## Recording sessions

Agents can record their Computer Use sessions as annotated video artifacts — capturing clicks, key presses, and cursor movement alongside the interaction, with idle time trimmed out. Recordings are captured entirely inside the sandbox and never include your local desktop or credentials.

For the recording pipeline, what the finished video contains, and where to find recordings, see [Testing and recordings](https://docs.warp.dev/agents/capabilities/computer-use/testing-and-recordings/). For how recordings and screenshots land on pull requests, see [Screenshots and videos in pull requests](https://docs.warp.dev/agents/capabilities/computer-use/artifacts-in-prs/).

* * *

## Security considerations

Computer Use comes with unique security considerations. These risks are heightened when interacting with the internet.

To minimize risks when using Computer Use:

-   **Avoid sensitive data** - Do not pass API keys, authentication tokens, or personal information to agents using Computer Use
-   **Limit internet access** - If your environment has internet access, consider restricting to an allowlist of known-safe domains
-   **Require human confirmation** - For tasks with real-world consequences (e.g., financial transactions, accepting legal terms), ask a human to confirm before the agent proceeds
-   **Review agent actions** - Regularly review what agents are doing on your behalf, especially when testing new workflows

* * *

## Example workflows

### Testing UI changes

Verify that code changes produce the expected visual results and behavior:

-   **Build from mockups** - Receive a Figma design or mockup image, build the UI, and test it matches
-   **Visual regression testing** - After code changes, verify UI renders correctly
-   **Form and interaction testing** - Test form submissions, validation, error handling
-   **Responsive design validation** - Test layout on different screen sizes

For complete end-to-end examples with demo recordings — validating UI changes, QA of critical flows, and bug reproduction — see [Testing and recordings](https://docs.warp.dev/agents/capabilities/computer-use/testing-and-recordings/).

### Browsing and web interaction

Computer Use can also help with general web tasks: browsing websites, filling out and submitting forms, and navigating multi-step workflows in web applications. See [Browser use](https://docs.warp.dev/agents/capabilities/computer-use/browser-use/) for how agents drive the browser.

* * *

## Related pages

-   [Images as Context](https://docs.warp.dev/agents/local-agents/agent-context/images-as-context/) - Pass design mockups and screenshots as context
-   [Full Terminal Use](https://docs.warp.dev/agents/capabilities/full-terminal-use/) - Let agents drive interactive terminal apps, see live output, and run commands
-   [Cloud agent session sharing](https://docs.warp.dev/platform/viewing-cloud-agent-runs/) - Open the cloud run transcript and artifacts after a Computer Use session finishes
-   [Factory workers](https://docs.warp.dev/factories/factory-agents/) - Distinguish worker roles from stage responsibilities
-   [Self-hosted agent data storage](https://docs.warp.dev/factories/self-hosting/data-storage/) - Storage options for agent run data
