首页 / codex实战指南 / windows 解决 codex 的 computer use 插件无法使用

codex使用常见问题

windows 解决 codex 的 computer use 插件无法使用

快捷修复方式 在 Codex 对话中对他说:
参考 https://codex.xueaiclub.top/guide-computer-use-windows 帮我根据这篇文章修复codex

按下面步骤修复。命令在 PowerShell 中执行,路径按自己电脑实际情况替换。

如果直接注册 bundled 插件源后安装报 os error 6000,不要硬改 WindowsApps 权限,复制一份镜像到用户目录再注册。

1. 先备份

$backup = "$HOME\.codex\backups\plugin-repair-$(Get-Date -Format yyyyMMdd-HHmmss)"
New-Item -ItemType Directory -Force $backup | Out-Null
Copy-Item "$HOME\.codex\config.toml" $backup -Force -ErrorAction SilentlyContinue
Copy-Item "$HOME\.codex\codex-global-state.json" $backup -Force -ErrorAction SilentlyContinue

2. 找 Codex 桌面版 bundled 插件源

Get-Process Codex -ErrorAction SilentlyContinue | Select-Object Path

然后按实际路径找到:

...\Codex...\app\resources\plugins\openai-bundled

3. 复制一份未加密镜像到用户目录

示例:把 $src 改成你本机实际路径。

$src = "D:\WindowsApps\OpenAI.Codex_版本号\app\resources\plugins\openai-bundled"
$dst = "$HOME\.codex\plugins\sources\openai-bundled-fixed"

Remove-Item $dst -Recurse -Force -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force $dst | Out-Null

Get-ChildItem $src -Recurse -Directory | ForEach-Object {
  $relative = $_.FullName.Substring($src.Length).TrimStart('\')
  New-Item -ItemType Directory -Force (Join-Path $dst $relative) | Out-Null
}

Get-ChildItem $src -Recurse -File | ForEach-Object {
  $relative = $_.FullName.Substring($src.Length).TrimStart('\')
  $target = Join-Path $dst $relative
  New-Item -ItemType Directory -Force (Split-Path $target) | Out-Null
  [IO.File]::WriteAllBytes($target, [IO.File]::ReadAllBytes($_.FullName))
}

4. 注册镜像源并安装插件

codex plugin marketplace remove openai-bundled
codex plugin marketplace add $dst
codex plugin add chrome@openai-bundled
codex plugin add computer-use@openai-bundled

5. 验证

codex plugin list --marketplace openai-bundled

应该看到:

chrome@openai-bundled installed, enabled
computer-use@openai-bundled installed, enabled

最后重启 Codex。

6. 也可以使用 skill 修复

https://github.com/chen0416ccc-cpu/codex-windows-fast-patch-skill
使用 codex-windows-fast-patch 这个 skill,检查并修复这台 Windows 机器上的 Codex Desktop Fast Mode、插件市场和 Computer Use 等可用性问题。