Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
OpenAI.Codex 26.908.4834.0
What subscription do you have?
basic
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Subject: ChatGPT Windows app fails to start – Unable to locate Codex CLI binary
The ChatGPT Windows desktop app fails to start and displays:
"ChatGPT failed to start.
Unable to locate the Codex CLI binary or required runtime components. Check the installation or explicit runtime overrides."
I have already reinstalled/updated the app, but the issue persists.
My installed package is:
OpenAI.Codex 26.908.4834.0
I also verified that ChatGPT.exe exists in the installed WindowsApps package.
I tested the bundled Codex executable directly from PowerShell. The file exists at the expected location, but Windows returns:
"Program 'codex.exe' failed to run: Access is denied"
I also had an initial local database error:
"ChatGPT cannot access its local database"
with:
C:\Users\shiva.codex\sqlite\codex-dev.db
I corrected the permissions on the .codex folder and confirmed that my normal Windows user account can create files inside C:\Users\shiva.codex\sqlite. However, the Codex executable still returns "Access is denied" and the ChatGPT app continues to fail at startup.
Please investigate the Windows/MSIX package or Codex runtime issue causing the bundled codex.exe to be inaccessible.
Windows PowerShell test:
Get-AppxPackage OpenAI.Codex
→ OpenAI.Codex_26.908.4834.0_x64__2p2nqsd0c76g0
The issue is reproducible every time I launch the ChatGPT Windows app.
What steps can reproduce the bug?
- Install/update the ChatGPT Windows desktop app through the Microsoft Store.
- Launch the ChatGPT app normally from Windows.
- The app fails to start and displays:
"ChatGPT failed to start. Unable to locate the Codex CLI binary or required runtime components." - The issue occurs every time the app is launched.
- The installed package is OpenAI.Codex version 26.908.4834.0.
- I verified that ChatGPT.exe and the bundled codex.exe are present in the WindowsApps installation directory.
- Running the bundled codex.exe directly from PowerShell results in:
"Program 'codex.exe' failed to run: Access is denied."
What is the expected behavior?
The ChatGPT Windows desktop app should launch normally without displaying any errors. It should successfully locate and execute its bundled Codex CLI/runtime components, initialize its local database, and open the ChatGPT interface so I can use the app normally.
Additional information
The issue persists after reinstalling/updating the ChatGPT Windows app.
I confirmed that the ChatGPT executable and Codex CLI files are physically present in the installed OpenAI.Codex package. However, attempting to execute the bundled codex.exe directly from PowerShell returns "Access is denied."
The app initially also reported that it could not access its local SQLite database at:
C:\Users\shiva.codex\sqlite\codex-dev.db
I fixed the permissions on the .codex directory and verified that my normal Windows user can create files in the sqlite folder. The database-related error was therefore not caused by my user account being unable to write to the folder.
After that, the app still fails with:
"Unable to locate the Codex CLI binary or required runtime components."
Installed package:
OpenAI.Codex 26.908.4834.0
The problem is reproducible every time I launch the Windows desktop app.
Activity
grace2k commentedon Sep 22, 2026
I was able to reproduce and resolve this issue on OpenAI.Codex 26.915.4065.0.
The desktop log showed that the MSIX application itself started correctly, but failed while relocating the bundled codex.exe into the local runtime cache.
The relevant errors were:
The failing operation attempted to rename:
C:\Users\AppData\Local\OpenAI\Codex\bin.staging-247581e40ee272fb-...
to:
C:\Users\AppData\Local\OpenAI\Codex\bin\247581e40ee272fb
This caused the subsequent error:
Unable to locate the Codex CLI binary or required runtime components.
Working workaround
Completely close the Codex app and ensure that no Codex or ChatGPT processes remain running.
Open PowerShell.
Run the following commands:
$codexBin = Join-Path $env:LOCALAPPDATA "OpenAI\Codex\bin"
Rename-Item -LiteralPath $codexBin -NewName $backupName
Start Codex again.
Codex recreated the bin directory and launched successfully.
A normal MSIX uninstall and reinstall did not permanently solve the problem, apparently because this runtime cache is located outside the MSIX package data and was retained. Renaming the local bin directory fixed the problem immediately without deleting conversations, settings, or the .codex database.