Windows only. This project is only for Windows Codex Desktop.
中文:仅支持 Windows 版 Codex Desktop。Mac、Linux、网页版 ChatGPT 不适用。
灵感来源:抖音博主 whl。
Unofficial community repair skill and scripts for a narrow set of Windows Codex Desktop Computer Use and Chrome plugin loading issues.
中文:Windows Codex Desktop 的 Computer Use 插件不可用修复工具,适用于
openai-bundled 插件源缺失、computer-use@openai-bundled 不显示、
chrome@openai-bundled 不显示,以及 @oai/sky@0.4.10 的 package
exports 版本错配问题。
This is not a general "enable Computer Use for every account or region" tool. It is meant for users who already have Windows Codex Desktop installed, but the local plugin/runtime wiring is broken.
This repository does not contain or redistribute OpenAI Codex, OpenAI bundled
plugins, @oai/sky, or any runtime files. It only contains diagnostics,
instructions, and minimal patch scripts that operate on files already present
on the user's own machine.
This is for Windows only.
You do not need to know Git.
- Open the GitHub page.
- Click
Code->Download ZIP. - Unzip the file.
- Open the unzipped folder in PowerShell.
- Run:
powershell -ExecutionPolicy Bypass -File .\install-skill.ps1- Restart Codex Desktop, or open a new Codex chat.
- Ask Codex:
Use repair-codex-computer-use to diagnose my Windows Computer Use plugin.
This only installs the helper skill. It does not silently change Codex runtime
files. The repair scripts still diagnose first, create backups, and require an
explicit -Apply when a file-changing repair is needed.
This Windows-only tool helps when Windows Codex Desktop cannot load Computer Use because
openai-bundled is missing or because @oai/sky@0.4.10 blocks a known internal
Computer Use import through package exports.
People may search for this issue using different spellings. This repository is about:
- Codex Computer Use 修复
- Codex ComputerUse 修复
- computeruse 修复
- Windows computeruse 修复
- Windows Codex computeruse 修复
- Windows Codex Desktop Computer Use 修复
- Computer Use plugin unavailable
- Computer Use 插件不可用
- Windows Computer Use 插件不可用
- Windows Codex Computer Use 不可用
- Windows Codex Desktop ComputerUse 不可用
- openai-bundled missing
- chrome@openai-bundled not installed
- computer-use@openai-bundled not installed
Package subpath ... is not defined by "exports"@oai/skyexports mismatchcomputer_use_client_base.js
Operating system requirement:
Windows only
Use this project when at least one of these is true:
openai-bundledis missing fromcodex plugin marketplace list, sochrome@openai-bundledandcomputer-use@openai-bundledare unavailable.- Computer Use is installed but fails with a Node package exports error like:
Package subpath ... is not defined by "exports"
The known runtime mismatch is:
@oai/sky@0.4.10
where the file exists:
dist/project/cua/sky_js/src/targets/windows/internal/computer_use_client_base.js
but the same subpath is not exported from @oai/sky/package.json.
The successful repair should make codex plugin list show:
chrome@openai-bundled installed, enabled
computer-use@openai-bundled installed, enabled
and the WindowsComputerUseClientBase import test should print:
function
This project does not claim to fix every "Computer Use unavailable" message. It probably will not help if the root cause is:
- The user's account, plan, region, or feature flag does not have Computer Use.
- The Codex Desktop version no longer includes the same bundled plugin/runtime layout.
- The installed
@oai/skyversion is not the known affected shape and needs a different official update. - Windows accessibility, antivirus, endpoint management, or enterprise policy blocks desktop control.
- The native Computer Use service/pipe fails after imports already work.
- The only error is sandbox process creation, for example:
CreateProcessAsUserW failed: 5
For sandbox errors, keep elevated sandbox as the preferred mode, allow workspace
write access first, and use unelevated only as a compatibility fallback.
Run:
.\repair-codex-computer-use\scripts\diagnose.ps1Then choose the smallest matching fix:
- If
openai-bundledis absent from the marketplace list, runregister-openai-bundled.ps1 -Apply -InstallPlugins. - If
computer-use@openai-bundledis installed but import fails withPackage subpath ... is not defined by "exports", runpatch-sky-exports.ps1 -Apply. - If both checks already pass, this repository is probably not the right fix; look at sandbox, OS policy, feature availability, or a newer Codex bug.
- Read-only diagnosis comes first.
- Scripts default to dry-run where they can modify files.
- Modifying commands require
-Apply. - Scripts create backups before changing user config or package metadata.
- Scripts do not modify
WindowsAppspermissions or ownership. - Scripts do not delete the user's
.codexdirectory. - Scripts do not automatically change Codex sandbox mode.
Use this if you do not want to install the Codex skill.
Open PowerShell in this repository folder on Windows.
Run read-only diagnosis:
.\repair-codex-computer-use\scripts\diagnose.ps1If openai-bundled is missing, register the bundled marketplace copied from
the local Codex install:
.\repair-codex-computer-use\scripts\register-openai-bundled.ps1 -Apply -InstallPluginsIf Computer Use fails with Package subpath ... is not defined by "exports",
patch @oai/sky/package.json:
.\repair-codex-computer-use\scripts\patch-sky-exports.ps1 -ApplyRestart Codex Desktop or start a new Codex thread after installation or patching.
This project was built from a verified Windows repair where:
openai-bundledwas missing from local Codex marketplaces.- After registering it,
chrome@openai-bundledandcomputer-use@openai-bundledbecame installed and enabled. - Computer Use then hit an
@oai/sky@0.4.10package exports mismatch. - Adding the single missing export for
computer_use_client_base.jsfixed the import. - The real Computer Use runtime could call
sky.list_apps()and return Windows applications.
The beginner install script above is recommended. To install manually, copy the inner skill folder into your Codex skills directory:
Copy-Item -Recurse `
-LiteralPath .\repair-codex-computer-use `
-Destination "$HOME\.codex\skills\repair-codex-computer-use"Then ask Codex:
Use repair-codex-computer-use to diagnose my Windows Computer Use plugin.
OpenAI's elevated Windows sandbox is the preferred mode because it provides stronger isolation. If Computer Use is installed and imports correctly but launching the desktop control process fails with:
CreateProcessAsUserW failed: 5
first allow workspace write access in Codex settings. If elevated sandboxing
still fails or the user does not have the required local privileges, switching
Windows sandbox mode to unelevated is a compatibility fallback. It is weaker
isolation, not automatically unsafe.
install-skill.ps1
repair-codex-computer-use/
SKILL.md
scripts/
diagnose.ps1
register-openai-bundled.ps1
patch-sky-exports.ps1
If you publish this repository:
- Make clear it is unofficial community tooling.
- Do not include copied
openai-bundledplugin files. - Do not include copied
@oai/skyruntime files. - Do not include user-specific paths, tokens, logs, or screenshots containing private data.
- Keep scripts conservative and easy to audit.
MIT for the files in this repository only. OpenAI Codex, OpenAI bundled
plugins, @oai/sky, and other runtime files remain under their own licenses.