Unable to locate the Codex CLI binary or ensure the Electron resources include bin/codex

Resolved 💬 14 comments Opened Aug 27, 2026 by ltinerary Closed Aug 27, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What version of the Codex App are you using (From “About Codex” dialog)?

I can't see the version number now because I can't start it. But it should be the latest version.

What subscription do you have?

pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

I don't know where to report issues with the desktop version of Codex, so I'm giving feedback here in the hope that it can be passed along.

After yesterday's update, my desktop Codex can't start, and I've attached a screenshot of the error. I tried uninstalling and reinstalling, but that didn't fix the problem, which is really frustrating, so I wanted to reach out for help.

<img width="569" height="179" alt="Image" src="https://github.com/user-attachments/assets/3376909d-087f-483c-bad4-30a1f46a4fab" />

I'm not sure if it has anything to do with me changing Codex's installation directory? I had moved the installation folder from C: to D:, but previous updates all worked fine, and it ran normally. It's just after yesterday's update that it won't start.

My operating system is Windows 11. I hope you can help check the issue. Thanks a lot!

What steps can reproduce the bug?

Can't start after yesterday's update

What is the expected behavior?

Normal start codex

Additional information

_No response_

View original on GitHub ↗

14 Comments

github-actions[bot] contributor · 1 day ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #40853
  • #40843
  • #40867
  • #40776
  • #40780

Powered by Codex Action

H4ng1ngTree · 1 day ago

same

zaijianwei · 1 day ago

我也是 所以问题出在哪

H4ng1ngTree · 1 day ago
我也是 所以问题出在哪

看你这个issue上面的那个linux issue,它好像说是官方更新的新包没打包全漏下东西了。

zaijianwei · 1 day ago

怎么解决 等官方吗? 我不急得用

H4ng1ngTree · 1 day ago

我看来只能等官方,你实在急可以用vs code插件,也一样的。

Atona1ity · 1 day ago

可以下载一个独立的CLI,然后SET路径解决
我看B站有人说把ChatGPT客户端用Windows系统设置迁移回C盘也能解决

studyBear959 · 1 day ago

一样的问题出现,昨天晚上切换账号时出现的问题,用claude排查并解决了问题。claude写了个脚本,大概逻辑是下载codex cli并存放补齐到缺失的路径下。最后完全重启后就正常使用了。

ltinerary · 1 day ago
> 我也是 所以问题出在哪 看你这个issue上面的那个linux issue,它好像说是官方更新的新包没打包全漏下东西了。

https://github.com/openai/codex/issues/41021 这个吗?

electrity · 1 day ago

Diagnosis

The issue is caused by the Microsoft Store build of the ChatGPT/Codex desktop app,
version 26.820.7780.0.

During startup, the app tries to copy its bundled codex.exe, rg.exe, and Node runtime
from the encrypted WindowsApps package into:

Windows rejects the normal file-copy operation with:

The specified file could not be encrypted.

The desktop app then fails to locate its Codex CLI binary and reports:

Unable to locate the Codex CLI binary.
ChatGPT failed to start.

Testing confirmed that:

  • The source files are readable but marked Encrypted.
  • A normal file-copy operation fails.
  • Copying the same content as a byte stream succeeds.
  • The destination permissions, disk space, network, proxy, and account configuration

are not responsible.

  • No newer Microsoft Store version is currently available.

This strongly indicates a bug in the current OpenAI desktop build’s handling of
encrypted Microsoft Store package files.

## Temporary solution

A process-scoped launcher was created:

The launcher:

  1. Locates the installed Microsoft Store ChatGPT/Codex application.
  2. Locates the existing npm-installed Codex CLI.
  3. Sets CODEX_CLI_PATH only for the application process it launches.
  4. Starts ChatGPT.exe.

This workaround was verified successfully: the Codex CLI initialized, connected, and
the desktop window remained responsive.

It does not:

  • Modify user-level or system-level environment variables.
  • Interfere with Microsoft Store updates.
  • Permanently change the OpenAI installation.

Some features that depend on the bundled Computer Use Node runtime may remain
affected.

## After OpenAI fixes the issue

Completely exit ChatGPT/Codex, delete the temporary launcher, and return to launching
the application normally from the Windows Start menu.

zaijianwei · 1 day ago

可以试试把chatgpt移到c盘 在Windows系统设置应用里找到chatgpt 右边三个点有个移动 看看是否在c盘 如果不是 可以试试移到c盘

JunbeiZhang · 1 day ago

I ran into the same issue on Windows with OpenAI.Codex 26.820.7780.0 after the app was installed/moved to the D: drive.

Repair and Reset did not help. Moving ChatGPT/Codex back to the C: drive via Settings → Apps → Installed apps → ChatGPT → ... → Move fixed the issue immediately.

Detailed steps and environment information are documented here:

https://github.com/JunbeiZhang/chatgpt-windows-26.820.7780.0-drive-fix

DSQsqblxhq · 1 day ago
怎么解决 等官方吗? 我不急得用

用everything找到codex.exe路径,设置用户环境变量CODEX_CLI_PATH就行

ltinerary · 1 day ago

The official Codex installer has been updated, and I can open it now.

version:26.820.71523