Codex’s Computer Use is an OpenAI plugin that gives the agent a sandboxed virtual computer it can drive with screenshots, mouse, and keyboard. Inside Mains it works exactly like in the official Codex experience — you install the plugin once from the Plugins marketplace and Codex picks it up on the next run.Documentation Index
Fetch the complete documentation index at: https://docs.mains.dev/llms.txt
Use this file to discover all available pages before exploring further.
Computer Use is delivered as an official OpenAI plugin, not a built-in Codex tool. See the OpenAI Codex Computer Use docs for the full reference and supported tasks.
What It Does
When Computer Use is enabled, Codex can:- Open and navigate web apps in a managed browser
- Click, type, scroll, and drag inside the virtual machine
- Take screenshots and reason over the visible UI
- Run command-line tools inside the sandbox
- Complete multi-step tasks that mix browsing, file manipulation, and shell commands
Installing the Plugin
Open the Plugins page
Click Plugins in the sidebar. The page opens on the Plugins tab (Codex marketplace).
Find Computer Use
Search for
computer-use in the marketplace, or browse the curated list and pick it from the OpenAI plugins.Add the plugin
Click Add on the plugin detail page. Mains forwards the install request to your Codex account, which provisions the plugin and reports back when it’s ready.
Using It in a Run
Computer Use is invoked like any other Codex tool — the agent decides when it’s needed. You can also nudge it explicitly:click, type, screenshot) and a thumbnail of the virtual screen at each step.
Permissions & Safety
| Layer | Effect |
|---|---|
| Sandbox isolation | The virtual machine has no access to your local files, real browser sessions, or keychain |
| Sandbox mode | Still applies to filesystem operations Codex performs locally — Computer Use does not bypass it |
| Approval policy | Per-call approvals still fire for sensitive actions like form submissions |
When Not to Use It
Computer Use is the right tool when there is no API or CLI for what you need. If a job can be done with HTTP, gh, kubectl, or another command-line tool, prefer that path — it’s faster, cheaper, and more reliable. Reach for Computer Use only when the only way to complete the task is through a UI.Related
- Plugins marketplace — browse, install, and manage all Codex plugins (Computer Use is one of many)
- Codex Configuration — sandbox modes, approval policy, model selection
- Subagents — delegate the UI work to a focused sub-agent while the parent keeps coding
