这是一个给 Windows 版 Codex Desktop 使用的 Codex skill,用来诊断和修复 Chrome / Computer Use 插件不可用的问题。
它整理自这篇文章的流程:https://www.autoxb.com/article/112216
当 Windows 上的 Codex Desktop 出现下面情况时,可以使用这个 skill:
- Codex 设置页里看不到 Chrome / Computer Use。
- Computer Use 显示不可用。
codex plugin list --marketplace openai-bundled找不到chrome@openai-bundled或computer-use@openai-bundled。openai-bundledmarketplace 没有正确注册。- 从
WindowsApps里的 Codex 应用包直接安装插件时报os error 6000。 - 插件缓存不完整,例如 Chrome 插件缺少
scripts/browser-client.mjs或extension-host.exe。
常见根因是:Codex Desktop 自带的 openai-bundled 插件源没有正确进入 marketplace,而且 WindowsApps 目录下的应用包文件带有保护属性,直接读取或安装可能失败。这个 skill 会指导 Codex 将 bundled 插件源复制到用户目录,再注册这个镜像源并安装插件。
在 PowerShell 中运行:
git clone https://github.com/Refrainwww/codex-windows-computer-use.git "$HOME\.codex\skills\codex-windows-computer-use"重启 Codex Desktop,或开启一个新的 Codex 对话,让 Codex 重新发现 skill。
-
打开仓库页面:https://github.com/Refrainwww/codex-windows-computer-use
-
下载 ZIP。
-
解压到:
%USERPROFILE%\.codex\skills\codex-windows-computer-use -
确认最终目录里能看到:
SKILL.md agents/openai.yaml scripts/repair-codex-windows-computer-use.ps1 references/source-summary.md
安装后,在 Codex 中直接说类似下面的话:
使用 codex-windows-computer-use 这个 skill,检查并修复这台 Windows 机器上的 Codex Desktop Computer Use 插件问题。
或者:
我的 Windows Codex 看不到 Computer Use,帮我用 codex-windows-computer-use 修一下。
Codex 会读取 SKILL.md,按里面的流程先检查插件 marketplace 和插件安装状态,再决定是否运行修复脚本。
这个仓库自带 PowerShell 脚本:
scripts/repair-codex-windows-computer-use.ps1
默认是 dry-run,只打印计划,不修改配置:
powershell -ExecutionPolicy Bypass -File "$HOME\.codex\skills\codex-windows-computer-use\scripts\repair-codex-windows-computer-use.ps1"确认输出没问题后,加 -Apply 真正执行修复:
powershell -ExecutionPolicy Bypass -File "$HOME\.codex\skills\codex-windows-computer-use\scripts\repair-codex-windows-computer-use.ps1" -Apply脚本会做这些事:
-
检查
codexCLI 是否可用。 -
寻找 Codex Desktop 自带的
app\resources\plugins\openai-bundled。 -
备份
~\.codex\config.toml和~\.codex\codex-global-state.json。 -
将
openai-bundled插件源复制到:%USERPROFILE%\.codex\plugins\sources\openai-bundled-fixed -
重新注册 marketplace:
codex plugin marketplace remove openai-bundled codex plugin marketplace add "$HOME\.codex\plugins\sources\openai-bundled-fixed"
-
安装插件:
codex plugin add chrome@openai-bundled codex plugin add computer-use@openai-bundled
-
打印验证结果。
如果脚本找不到 Codex Desktop 的安装位置,可以手动传入 -Source:
powershell -ExecutionPolicy Bypass -File "$HOME\.codex\skills\codex-windows-computer-use\scripts\repair-codex-windows-computer-use.ps1" `
-Source "C:\Program Files\WindowsApps\OpenAI.Codex_<version>_x64__2p2nqsd0c76g0\app\resources\plugins\openai-bundled" `
-Apply也可以自定义复制目标:
powershell -ExecutionPolicy Bypass -File "$HOME\.codex\skills\codex-windows-computer-use\scripts\repair-codex-windows-computer-use.ps1" `
-Destination "$HOME\.codex\plugins\sources\openai-bundled-fixed" `
-Apply执行:
codex plugin marketplace list
codex plugin list --marketplace openai-bundled
codex plugin list你应该能看到:
chrome@openai-bundled
computer-use@openai-bundled
并且它们处于 installed / enabled 状态。
之后重启 Codex Desktop,再去设置页确认 Chrome / Computer Use 是否可用。
建议先关闭 Codex Desktop,再执行 -Apply。修复完成后重新打开 Codex Desktop。
不要改。WindowsApps 是受保护的应用包目录,强行改权限容易带来额外问题。这个 skill 采用更稳妥的方式:把 bundled 插件源复制到用户目录,再让 Codex 使用这份镜像。
这通常说明 Codex 正在直接读取受保护的应用包文件。使用本 skill 的修复流程,将 openai-bundled 复制到 ~\.codex\plugins\sources\openai-bundled-fixed 后再注册 marketplace。
先更新 Codex Desktop。这个 skill 依赖 Codex CLI 的 plugin 子命令:
codex plugin --help如果这个命令不可用,说明当前 Codex 版本或 CLI 环境不满足要求。
检查:
- 是否已经重启 Codex Desktop。
codex plugin list --marketplace openai-bundled是否能看到两个插件。- 插件缓存里是否存在 Chrome 的
scripts/browser-client.mjs和extension-host.exe。 - Codex Desktop 是否是支持 Computer Use 的新版本。
.
├── SKILL.md
├── agents/
│ └── openai.yaml
├── references/
│ └── source-summary.md
└── scripts/
└── repair-codex-windows-computer-use.ps1
这个 skill 会修改本机 Codex 的 plugin marketplace 和插件安装状态。脚本默认 dry-run,只有加 -Apply 才会执行修改。