Agents > Computer Use
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
Section titled “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
- 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
Section titled “In this section”- Browser use - Drive the bundled Chromium browser, visually or with scripted Playwright commands.
- Testing and recordings - Validate changes end-to-end and capture annotated video recordings as proof.
- Screenshots and videos in pull requests - Attach captured screenshots and recordings to pull request descriptions automatically.
Enabling Computer Use
Section titled “Enabling Computer Use”Computer Use is enabled by default for cloud agent runs, including runs on a third-party harness: 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
Section titled “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), which is off by default. To control Computer Use for Cloud Agents 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.
When running cloud agents with the Oz CLI, use flags to control Computer Use per run:
oz agent run-cloud --computer-use --prompt "<task>"oz agent run-cloud --no-computer-use --prompt "<task>"When creating a cloud agent run with the Warp Platform API, 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:
{ "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 reference.
Web app
Section titled “Web app”In the Oz web app, 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 managed from the web app
- Integrations - Configure Computer Use for Slack, Linear, and other integration-triggered agents
Computer Use with third-party harnesses
Section titled “Computer Use with third-party harnesses”Cloud agent runs on the Claude Code, Codex, and Pi 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 in Warp don’t get Computer Use.
- Computer Use enabled - Enabled by default. To disable it for a run, pass
--no-computer-usein the Oz CLI or setconfig.computer_use_enabledtofalsein 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.
How Computer Use works
Section titled “How Computer Use works”Setup and requirements
Section titled “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. Browser-based tasks need no extra setup: every Computer Use environment includes a bundled Chromium browser. Learn more in Browser use.
Model selection
Section titled “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
Section titled “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. For how recordings and screenshots land on pull requests, see Screenshots and videos in pull requests.
Security considerations
Section titled “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
Section titled “Example workflows”Testing UI changes
Section titled “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.
Browsing and web interaction
Section titled “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 for how agents drive the browser.
Related pages
Section titled “Related pages”- Images as Context - Pass design mockups and screenshots as context
- Full Terminal Use - Let agents drive interactive terminal apps, see live output, and run commands
- Cloud agent session sharing - Open the cloud run transcript and artifacts after a Computer Use session finishes
- Factory workers - Distinguish worker roles from stage responsibilities
- Self-hosted agent data storage - Storage options for agent run data