Repository navigation
Windows Codex app fails to start: bundled codex.exe exists but cannot be executed due to access denied #28031
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.609.4994.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What issue are you seeing?
What issue are you seeing?
The Windows Codex app fails to start immediately after launch.
Initial error:
Codex failed to start.
Unable to locate the Codex CLI binary. Set CODEX_CLI_PATH or ensure the Electron resources include bin/codex.
I installed Codex from the Microsoft Store, then tried app reset, uninstall/reinstall, and clearing CODEX_CLI_PATH. The issue still happens.
PowerShell shows that the Microsoft Store package is installed:
Get-AppxPackage *Codex* | Select-Object Name, PackageFullName, Version, InstallLocationResult:
Name: OpenAI.Codex
PackageFullName: OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0
Version: 26.609.4994.0
InstallLocation: C:\Program Files\WindowsApps\OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0
I also checked the package contents:
$pkg = (Get-AppxPackage *Codex*).InstallLocation
Get-ChildItem $pkg -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.Name -match "codex" } | Select-Object FullName, LengthThe package contains:
app\Codex.exe
app\resources\codex-command-runner.exe
app\resources\codex.exe
app\resources\codex-notification.wav
app\resources\codex-windows-sandbox...
app\resources\plugins\...
However, running the bundled CLI directly fails:
& "$pkg\app\resources\codex.exe" --versionResult:
Failed to run 'codex.exe'. Access is denied.
CategoryInfo: ResourceUnavailable
FullyQualifiedErrorId: NativeCommandFailed
I also tried setting CODEX_CLI_PATH manually to the bundled codex.exe. After doing that, the error changed to:
Codex failed to start.
(code=126, signal=null).
Most recent error: /usr/bin/bash: line 1: /mnt/c/Program Files/WindowsApps/OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0/app/resources/codex...
Permission denied
This suggests the bundled CLI exists, but the app either cannot execute it due to WindowsApps permissions or is trying to launch it through WSL/bash incorrectly.
What steps can reproduce the bug?
What steps can reproduce the bug?
- Install Codex from the Microsoft Store on Windows.
- Launch the Codex app.
- The app immediately fails with:
Unable to locate the Codex CLI binary.
- Reset the app from Windows Settings.
- Uninstall and reinstall Codex from Microsoft Store.
- Launch the app again.
- The same error still appears.
Additional troubleshooting performed:
Get-ChildItem Env: | Where-Object { $_.Name -match "CODEX" }No CODEX-related environment variables were set.
Then I cleared CODEX_CLI_PATH:
[Environment]::SetEnvironmentVariable("CODEX_CLI_PATH", $null, "User")
[Environment]::SetEnvironmentVariable("CODEX_CLI_PATH", $null, "Machine")I confirmed that the package contains app\resources\codex.exe, but executing it directly gives Access denied.
When I manually set CODEX_CLI_PATH to the bundled codex.exe, the app tries to execute it through /usr/bin/bash and fails with Permission denied.
What is the expected behavior?
What is the expected behavior?
The Windows Codex app should start normally after installation from the Microsoft Store.
If the CLI binary is bundled inside the app package, Codex should locate and execute it automatically.
If the bundled CLI cannot be executed because of WindowsApps permissions, the app should either install the CLI in an executable location or provide a clear repair/reinstall instruction.
Additional information:
The error message says the app cannot locate the Codex CLI binary, but the Microsoft Store package does contain app\resources\codex.exe.
However, running that bundled codex.exe directly from PowerShell fails with Access denied.
It may be a Windows Store packaging, permissions, or path resolution issue. It may also be related to the app incorrectly trying to use WSL/bash to execute the WindowsApps packaged binary after CODEX_CLI_PATH is set manually.
Additional information

Activity
github-actions commentedon Jun 13, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
LineKwon commentedon Jun 16, 2026
Adding another repro with a slightly different failure mode on the same Store package version.
Environment
OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g026.609.4994.0C:\Program Files\WindowsApps\OpenAI.Codex_26.609.4994.0_x64__2p2nqsd0c76g0Symptom
Launching the Store app creates the process, then it exits before showing a usable window.
Observed from direct launch of the Store app executable:
The desktop log reaches app-server startup, then stops:
It never reaches a successful
stdio_transport_spawned/ app-server handshake in the Store package case.Important local check
The bundled app-server executable exists, but cannot be run directly from the WindowsApps package path:
Result:
I also tried setting
CODEX_CLI_PATHto a runnable Codex CLI under%LOCALAPPDATA%\OpenAI\Codex\bin\...\codex.exe; the Store app still exited before completing the app-server startup.Control test that narrows this to WindowsApps/AppX packaging
I copied the entire Store app
appdirectory out of WindowsApps to a normal temporary directory and launched that copiedCodex.exe.In that copied location:
resources\codex.exe --versionruns successfully.resources\codex.exeis spawned as a child process.This strongly suggests the installed Store package is failing because the app needs to spawn
app\resources\codex.exefrom insideC:\Program Files\WindowsApps\..., but that packaged child executable is not executable from this context. The same bits work when placed outside WindowsApps.Workaround
A manually downloaded standalone Codex build still works on the same machine. In this case,
Codex-win-x64-26.602.30954launches normally and its bundledresources\codex.exe --versionreports:So this appears specific to the Microsoft Store / WindowsApps packaging path for the newer
26.609.4994.0build rather than the machine being unable to run Codex generally.a62977386 commentedon Aug 26, 2026
Environment
26.820.7780.00.149.1Issue
Codex Desktop was working normally before the update.
I clicked the update button inside Codex. The update completed and the application restarted, but after restart Codex failed to start with:
I have never enabled WSL mode.
The bundled CLI does exist:
PowerShell confirms:
Result:
However, executing the bundled CLI:
fails with:
Workaround
I installed the standalone Codex CLI using the official installer:
This installed:
and:
codex --versionworks correctly:
I then set:
After restarting Codex Desktop, the application works normally again.
Observation
This appears to be a regression in the Windows MSIX update/package permissions.
The bundled
app\resources\codex.exeis physically present, but Windows refuses to execute it from theWindowsAppspackage directory.The standalone CLI installed under the user profile executes normally, and explicitly pointing
CODEX_CLI_PATHto it restores Codex Desktop.The issue appeared immediately after updating Codex Desktop to
26.820.7780.0.