010 Coding Collective

010 Coding Collective

The best harness for computer use: Claude, Codex, Gemini, and open source

Computer use lets an AI agent see your screen, click, and type. The right harness depends on what the agent has to control: your own desktop, a browser, or a virtual machine you set up yourself.

AI AI Agents Computer Use Claude Code Codex Gemini Browser Use Stagehand Playwright

An agent that works your screen

A coding agent works with files and commands. Some jobs live outside them: an app without an API, a form in the browser, a test pass through your own interface. For those, the agent has to see the screen and click for itself.

Choose by what the agent controls

For your own desktop, the apps from Anthropic and OpenAI are the shortest route. For the browser, a browser agent is faster and more reliable than screenshots. If you're building a product of your own, take a computer use API and a virtual machine.

Limit what the agent can touch

An agent that clicks can click the wrong thing. Give it only the apps the job needs, run it in a separate environment where you can, and stay in the loop for anything you can't undo.

The short answer

To have an agent operate your own Mac or Windows PC, use Claude (in the desktop app or in Claude Code) or Codex in the ChatGPT desktop app. Both see your screen, click, and type, and both ask permission app by app.

If the job only lives in the browser, use a browser agent such as Browser Use or Stagehand, or the browser extension that Claude and Codex offer. These read the page itself rather than a picture of it, which makes them faster and more reliable.

If you’re building a product that operates a computer, use a computer use API from Anthropic, OpenAI, or Google, and run the agent in a virtual machine or container. In that case, you build the harness yourself.

What computer use is

Computer use means an AI model operates a computer the way a person does. It gets a screenshot, decides where to click or what to type, and then gets a fresh screenshot to see what happened. It works through a task one step at a time.

The model on its own can only look and suggest an action. The harness does everything else: it takes the screenshots, performs the clicks, asks for permission, and keeps track of what the agent is allowed to do. That’s why, for computer use, the harness matters at least as much as the model.

The model looks and decides. The harness decides where it may look and what it may touch.

Three kinds of computer use

The best harness depends on what the agent has to control. There are three situations, and each asks for something different.

1

Your own desktop

The agent works in the apps on your own computer, with your files and accounts. Useful for a job in a program that has no API, or for clicking through your own app after a change. Here you want a ready-made app with sound permissions.

2

The browser only

Filling in forms, pulling data from a site, testing a web app. A browser agent reads how the page is built and clicks on elements rather than pixels. That's faster, cheaper, and less error-prone than working from screenshots.

3

A product or pipeline of your own

You're building something that carries out tasks on a computer, for customers or in a test environment. Then you take a computer use API and a virtual machine or container, and write the loop of screenshot, action, and check yourself.

Claude: the desktop app, Claude Code, and the API

Anthropic offers computer use in three places.

  • The Claude desktop app on macOS and Windows. Claude operates your apps while you watch, and asks permission per app before it touches anything. Cowork, the agent in that app for office work, can operate your computer too.
  • Claude Code, Anthropic’s coding agent. There, computer use is a built-in MCP server that you switch on yourself. That version runs on macOS as a research preview, and only in a session you’re watching. It’s handy for checking a change in your own app straight away.
  • The API, for people who build their own. You give Claude a tool that handles screenshots, mouse, and keyboard, and you run the environment yourself, usually in a container or virtual machine.

The desktop app and Claude Code need a paid Claude plan, such as Pro or Max. Which plans include it is still shifting, so check before you roll it out to a team.

OpenAI: Codex in the ChatGPT desktop app

At OpenAI, computer use is a plugin for Codex in the ChatGPT desktop app. You install the plugin and mention @Computer in your prompt for an app on your computer, or @Chrome for a task in the browser. On a Mac, Codex can work in the background with a cursor of its own while you carry on in other apps. On Windows, it takes over your screen while the task runs.

Codex asks permission before it uses an app, and it can’t approve your system’s security prompts or sign in as an administrator. Computer use isn’t part of the Codex CLI, only the desktop app. For developers, OpenAI also offers a computer use model through its API. Read more about the agent itself in what is Codex.

Gemini: the computer use tool in the API

Google offers computer use as a tool in the Gemini API and through Vertex AI. Its strong suit is the browser: the documentation shows a loop built on Playwright, where your code performs the clicks Gemini suggests. There’s also an option to detect prompt injection, meaning text on a page that tries to talk the agent into doing something else.

Gemini has no ready-made desktop app like Claude and Codex do. That makes it mainly interesting if you’re building a browser agent yourself. Model names change quickly, so check the current model list for the version that supports computer use.

Open source: Browser Use, Stagehand, and Playwright

For browser tasks, open source tools are often the best choice, because they work with any model and you decide where they run.

  • Browser Use is a Python library that lets a model drive a browser. You describe a task in plain language, and the agent finds its own way.
  • Stagehand builds on Playwright and mixes regular code with AI steps. You write the parts that are fixed yourself, and leave only the steps that differ from page to page to the model.
  • Playwright isn’t an AI tool itself, but many agents use it to control the browser. The Playwright MCP server gives Claude Code, Codex, or another harness the same ability. Read more about MCP in what is MCP.

A browser agent reads the structure of the page: buttons, fields, links. It doesn’t have to guess where something sits on the screen, which is why it gets stuck less often than an agent that only sees screenshots.

Side by side

Claude Codex Gemini Open source
Your own desktop Yes, in the desktop app (macOS and Windows) and in Claude Code (macOS). Yes, with the plugin in the ChatGPT desktop app (macOS and Windows). Not out of the box. Not what it's for.
The browser Through the browser extension or an MCP server such as Playwright. Through @Chrome and the browser extension. Yes, the API's strongest side. Yes, Browser Use and Stagehand are built for it.
Building your own Computer use tool in the API. Computer use model in the API. Computer use tool in the Gemini API and Vertex AI. With any model, on your own server.
Permissions Per app, before Claude touches anything. Per app, no administrator rights. Your code decides, with a safety check per action. Your code decides.

Working safely with computer use

An agent that operates your screen can do anything you can. That makes it useful, and also risky. A few habits limit the damage when it makes a mistake, or when a page tries to mislead it.

1

Grant only the apps the job needs

Claude and Codex ask permission per app. Say yes only to what the task really requires, and keep your password manager, bank, and email out of it.

2

Use a separate environment where you can

A virtual machine, a container, or a separate browser profile without your own logins. If something goes wrong, it stays there.

3

Stay in the loop for anything you can't undo

Don't let the agent send, pay, or delete on its own. Have it stop before the final click, and click yourself.

4

Distrust text on screens

A page can hold instructions aimed at the agent. A good harness treats what's on the screen as data, not as a command.

How to choose

Start with the job. If the agent has to work in your own apps, try the computer use in the plan you already have: Claude if you’re on Claude Pro or Max, Codex if your team uses ChatGPT. If the job is in the browser, try a browser agent or a Playwright MCP server first, because it’s faster and cheaper per task. If you’re building a product, compare the Anthropic, OpenAI, and Google APIs on the same task from your own work.

A coding agent that works with files and commands rarely needs computer use. For that choice, read the popular AI harnesses and which harness suits which model.

Conclusion: choose by what the agent controls

For your own desktop, Claude and Codex are the best harnesses, because they handle permissions per app and let you watch. For the browser, a browser agent that reads the page wins. For a product of your own, take an API and a separate environment.

Whichever you choose, computer use is the slowest and most expensive way to have an agent do something. If the app has an API or a command, let the agent use that. Operating screens is for whatever’s left.

Frequently Asked Questions

What is the best harness for computer use?

It depends on what the agent has to control. For your own Mac or Windows PC, the Claude desktop app, Claude Code (on macOS), and Codex in the ChatGPT desktop app are the best choices. For the browser, Browser Use, Stagehand, or a Playwright MCP server work better. For a product of your own, take a computer use API from Anthropic, OpenAI, or Google.

Can Claude Code operate my computer?

Yes, on macOS. In Claude Code, computer use is a built-in MCP server that you switch on yourself. It runs as a research preview, only in a session you're watching, and Claude asks permission per app. On Windows, Claude operates your computer through the desktop app.

Can Codex operate my computer?

Yes, with the Computer Use plugin in the ChatGPT desktop app, on macOS and Windows. On a Mac, Codex works in the background with a cursor of its own. Computer use isn't part of the Codex CLI.

Is computer use safe?

As safe as you set it up to be. Give the agent only the apps the job needs, run it in a separate environment where you can, and do the final click yourself for anything you can't undo, such as sending, paying, or deleting.

What's the difference between computer use and a browser agent?

Computer use works from screenshots and clicks on spots on the screen, in any app. A browser agent only works in the browser and reads the structure of the page itself. That makes a browser agent faster and more reliable, but only for websites.

An AI agent that takes real work off your hands?

Our senior developers build agents and automations that work safely inside your own systems. Bring them onto your project, or have your team learn to do it well in a workshop.

Let's discuss your project

From AI prototypes that need to be production-ready to strategic advice, code audits, or ongoing development support. We're happy to think along about the best approach, no strings attached.

010 Coding Collective free consultation
free

Free Consultation

In 1.5 hours we discuss your project, challenges and goals. Honest advice from senior developers, no sales pitch.

1.5 hours with senior developer(s)
Analysis of your current situation
Written summary afterwards
Concrete next steps