Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Codex Computer Use (Computer Control)

Codex Computer Use (Computer Control)

Computer Use (Computer Control) is a Codex feature that allows Codex to view and operate the graphical user interface (GUI) on macOS or Windows.

When command-line tools or structured integrations cannot meet your needs, this feature can be used for tasks such as desktop app operations, browser interactions, and application setting adjustments.

Computer Use (Computer Control) gives Codex the ability to "see" and "operate" desktop applications. Unlike command-line tools, Computer Use can interact directly with graphical interfaces, including clicking buttons, entering text, and navigating menus.

Computer Use (Computer Control) is suitable for scenarios that require visual verification or graphical interface interaction, such as testing desktop apps, reproducing bugs that appear only in the GUI, or operating data sources that have no plugin available.

Computer Use affects applications and system state outside the project workspace; it is recommended only for tasks with a clearly defined scope, and you should watch for permission prompts during execution.


Environment setup

Before using Computer Use, you need to complete the necessary plugin installation and permission configuration.

Install the Computer Use plugin

Open Codex settings, find the Computer Use option, and click Install to install the Computer Use plugin.

Once installed, you can have Codex start operating desktop applications.

macOS permission configuration

On macOS, you need to grant the following two system permissions:

Permission Purpose
Screen Recording Allows Codex to view the interface content of the target application
Accessibility Allows Codex to perform interactive operations such as clicking, typing, and navigating

The system will show a permission request on first use; simply grant it as prompted.

Windows usage notes

On Windows, Computer Use needs to run on the active desktop.

During task execution, the target application must remain visible on the current active desktop, and Codex will take over the mouse pointer and keyboard input.

On Windows, Computer Use cannot run in the background. If you need to continue using the desktop at the same time, consider using a virtual machine or a second device.

Next, we simply ask it to open a website in the conversation window, and it will use Computer Use:


Use Cases

Choose Computer Use when a task depends on a graphical user interface and is difficult to verify solely through files or command-line output.

Scenarios suitable for Computer Use

Scenario Description
Desktop app testing Testing macOS apps, Windows apps, iOS simulator flows, or other desktop apps that Codex is building
Browser operations Perform tasks that need to be completed through a web browser
Bug reproduction Reproduce bugs that appear only in the graphical interface
Application setting adjustments Modify application settings that require UI clicks
Non-plugin data sources View or operate information in applications or data sources that have no plugin available
macOS background tasks Run scoped background tasks on macOS while continuing to work elsewhere
Cross-application workflows Execute automated flows involving multiple applications

For locally built web apps, prefer Codex's built-in browser (in-app browser) over Computer Use.

Windows foreground usage

On Windows, Computer Use runs on the current active desktop.

It cannot run in the background, so during task execution Codex will move the mouse pointer, enter text, and take over foreground operations.

If you need a Windows task to keep running while you are away, there are two options:


Start a Computer Use task

Mention @Computer or @AppName in the prompt, or simply ask Codex to use Computer Use.

You need to clearly describe the specific application, window, or flow that Codex should operate.

You can invoke it by entering the following in the input box:

使用 Computer Use 打开应用,复现登录流程中的 bug,并修复导致该 bug 的最简代码路径。

每次修改后,重新运行相同的 UI 流程进行验证。

You can use @Chrome in the input box to invoke the browser:

For example:



打开 @Chrome 并验证最新改动后结账页面是否仍然正常工作。

If the target application provides a dedicated plugin or MCP server, prefer these structured integrations for data access and repeatable operations. Choose Computer Use only when visual inspection or direct operation of the app is needed.


Permissions and approvals

Computer Use's system permissions are separate from in-app approvals in Codex.

On macOS, Screen Recording and Accessibility permissions allow Codex to view and operate apps.

App approvals determine which apps you allow Codex to use.

File reads, file edits, and shell commands still follow the thread's sandbox and approval settings.

App permission management

When using Computer Use, Codex can only view and operate apps you have allowed.

During task execution, Codex will ask for your permission before using an app.

You can choose Always allow, so Codex won't need to ask again when using that app in the future.

You can remove apps from the "Always allow" list in the Computer Use section of Codex settings.

Sensitive operation approval

For sensitive or destructive operations, Codex may request additional permission.

Troubleshooting

If Codex cannot view or control an app, check the following:


Locked Use (macOS)

Locked Use is a macOS-only feature.

It allows Codex to continue using Computer Use after your Mac is locked, but you must enable it manually in advance.

Use case: launching a Codex task from a connected device where the task needs a desktop app but the Mac is already locked.

How It Works

Once Locked Use is enabled, Codex installs an Apple authorization plug-in that participates in the macOS unlock flow.

Locked Use has a very limited design scope: it is not a general remote unlock path, nor does it allow other apps or local processes to unlock the computer.

Enablement steps

  1. Open Codex settings > Computer Use.
  2. Enable "Locked computer use".
  3. Start a task using Computer Use from a connected device (after the Mac screen is locked).

Security mechanism

When a Codex task accesses apps via Computer Use while the Mac is locked, Codex temporarily unlocks the Mac while blocking local use and preserving lock-screen protection.

Before unlocking, Codex verifies that the unlock request belongs to an active and trusted Computer Use turn.

Outside that brief authorization window, Codex will refuse to unlock and prompt you to unlock manually.

Security protections of Locked Use

Protection measures Description
Short-lived authorization window The authorization window is valid only for the current unlock attempt and lasts a very short time
Automatic unlock limited to Codex Automatic unlock is available only to Codex within an active Computer Use turn
Covers all displays During the temporary desktop unlock, Codex covers all display screens
Local input detection If local keyboard or pointer input is detected, Codex immediately re-locks the Mac and suspends automatic unlock until you unlock manually

Safety guidelines

When using Computer Use, Codex can view screen content, take screenshots, and interact with windows, menus, keyboard input, and clipboard state in the target app.

Visible app content, browser pages, screenshots, and open files in the target app may all be processed by Codex as context during task execution.

Safe operation recommendations

Recommendation Description
One goal at a time Give Codex only one clear target app or flow at a time
Interruptible at any time You can stop the task or take back control of the computer at any time
Close unnecessary sensitive apps Keep sensitive apps closed unless the task requires them
Watch out for Windows foreground occupancy On Windows, Codex takes over foreground input; consider using a second device or a virtual machine, or stop the task before using the desktop yourself
Avoid tasks involving keys Avoid running tasks that require keys unless you are present and can approve every step
Review app permission prompts Carefully review permission prompts before allowing Codex to use an app
Use "Always allow" with caution Select "Always allow" only for apps you trust Codex to use automatically in future tasks
Be present for critical settings Always supervise when settings involve accounts, security, privacy, network, payments, or credentials
Watch for window switching If Codex starts interacting with the wrong window, cancel the task immediately

Browser usage notes

If Codex uses your browser, it can interact with pages you are already logged into.

Review website behavior as you would yourself: web pages may contain malicious or misleading content, and sites may treat approved clicks, form submissions, and logged-in actions as coming from your account.

If you need to keep using a browser while Codex works, have Codex use a different browser.

Feature limitations

Computer Use cannot automate terminal applications or Codex itself, because doing so could bypass Codex's security policies.

It also cannot authenticate as an administrator or approve security and privacy permission prompts on the computer.

Data notes

File edits and shell commands still follow Codex's approval and sandbox settings.

Changes made through desktop apps may not appear in the review panel until they are saved to disk and tracked by the project.

Your ChatGPT data control settings apply to content processed through Codex, including screenshots taken by Computer Use.