Skip to content

Failed to Start Codex App-Server on Windows: Fixes by Error Text

The exact text decides the fix: repair a path an update broke, lighten a slow start, find the crash, update the CLI to 0.162.1 or see if only cloud tasks fail.

•••26 min read•OpenAI Codex
Codex app-server errors matched to fixes: os error 3 to repair the path, handshake 30 s to lighten startup, background server to CLI 0.162.1, not available to local or cloud

Failed to start codex app-server on Windows means the ChatGPT desktop app could not bring up codex.exe, the background process that its chat window, Browser Use and the ChatGPT browser extension all depend on. The exact message tells you why it did not come up, and each reason has its own fix:

  • The system cannot find the path specified. (os error 3) and manifest entry is missing required path nodePath (or resourcesPath): a file path recorded before an auto-update now points at a folder the update deleted. Correct the path.
  • Codex app-server initialize handshake timed out: codex.exe started but did not answer within 30 seconds, usually because of a huge or corrupt local database, leftover processes, or WSL mode. Make startup lighter.
  • 0xC000001D (shown as code=3221225501): codex.exe crashed on an illegal CPU instruction. Check which module crashed before you change anything.

Two related messages appear when an app-server exists but cannot be used:

  • Background server has incompatible feature settings comes from the Codex CLI in a terminal, on Windows, macOS, Linux or WSL. The shared background server that codex starts runs with different feature settings than your session expects, usually because one of the two updated without the other. Update the CLI to 0.162.1 or later. Until you can, codex --no-daemon starts the session without touching the shared server.
  • Codex app-server is not available comes from the desktop app when it sends, resumes or stops a chat and nothing answers. If every chat fails, the local app-server crashed. If only dot, Cloud or SSH tasks fail while local chats work, the connection to OpenAI's cloud backend is failing, and no local repair helps.

For the desktop errors, two things hold. Reinstalling the app rarely helps, because your settings and history live in %USERPROFILE%\.codex, outside the app package, and reinstalling leaves that folder alone. And deleting .codex can cost you your local chat history without fixing anything. As of October 14, 2026, the CLI prompt is the only one of these errors with an official fix (CLI 0.162.1). OpenAI has not named a release that fixes any of the desktop errors, so the desktop fixes below are user-tested workarounds unless a step says otherwise.

A note on names: Codex became part of the ChatGPT desktop app on July 9, 2026 (changelog). The Windows package is still OpenAI.Codex and the dialogs now say "ChatGPT failed to start", but it is the same app many people still call the Codex app or Codex Desktop. It is not "ChatGPT Classic", a separate package that has no app-server at all.

Codex app-server error lookup: message, cause and first fix

Exact text you seeWhere it shows upMost likely causeFirst fixHow solid the evidence is
failed to start codex app-server: The system cannot find the path specified. (os error 3) (also os error 2)Browser Use, the in-app browser, the Chrome plugin; tabs list but navigation and screenshots failconfig.toml or CODEX_CLI_PATH points to a helper folder an update removedPoint the node_repl entries and CODEX_CLI_PATH at the current folder, then fully quit and reopenSeveral reporters per fix; issues open since April 2026
Unable to start ChatGPT / Codex app-server manifest entry is missing required path nodePath (or resourcesPath, codexCliPath)ChatGPT extension side panel in Chrome, Edge or Bravechrome-native-hosts-v2.json still lists runtime paths from an older buildStart the desktop app first and wait; if that fails, back up and correct the JSONSeveral reporters; broke again after the October 3 and October 8 updates
Codex app-server initialize handshake timed out"ChatGPT failed to start" dialog with Check for Updates and QuitStartup work took longer than the app's 30-second limitQuit from the tray, end leftover processes, move logs_2.sqlite* asideSeveral reporters for the log database; single reporters for the rest
code=3221225501 / 0xC000001D / Codex app-server websocket closed"ChatGPT failed to start" right after launchAn injected DLL (most often Astrill VPN) or a CPU instruction the build needsRead the faulting module in Event ViewerMany reporters for Astrill; the CPU case has no fix you can apply on the desktop
Background server has incompatible feature settings / Cannot use the shared background server: This session requires api_key_model_discovery to be enabled (or disabled)codex in a terminal, CLI 0.157.0 and later, any OSThe CLI and its shared background server disagree on a feature setting after one of them updatedUpdate the CLI to 0.162.1 or later; codex --no-daemon for one session meanwhileOfficial fix in 0.162.1; workarounds from several reporters
Error submitting message, Failed to resume chat or Failed to restore conversation, then Codex app-server is not availableDesktop app, when you send, resume or stop a chatLocal: the app-server crashed. Dot, Cloud or SSH only: the cloud connection failedSee whether local chats still work, then follow that branchMany reports; OpenAI has not stated a cause

If your text is not in the table, check nearby startup messages: those variants look similar but need something else.

Before any fix: quit from the tray and copy .codex

This step is for the desktop app. If your error came from codex in a terminal, go straight to the background server section.

Closing the window does not stop Codex. The app stays resident in the system tray (changelog), and codex.exe plus about ten helper processes keep running and keep the databases open (#39015). Edits to files they hold may not stick, and moving a database that is in use can fail halfway.

  1. Right-click the ChatGPT icon in the system tray and quit. Close any IDE with the Codex extension too.
  2. Make a dated copy of your Codex home folder. It holds config.toml, auth.json, the thread index state_5.sqlite and your local conversations in sessions\:
powershell
$stamp = Get-Date -Format "yyyyMMdd-HHmmss"
Copy-Item "$env:USERPROFILE\.codex" "$env:USERPROFILE\Desktop\codex-backup-$stamp" -Recurse

If sessions is many gigabytes, copy to another drive instead of the Desktop.

OpenAI's support staff gave the same advice on the community forum: avoid deleting %USERPROFILE%\.codex unless it is backed up, because it can contain config, auth and session state (forum reply).

failed to start codex app-server (os error 3): stale helper paths

Windows error 3 is "path not found". The app copies its helper programs out of the protected C:\Program Files\WindowsApps\OpenAI.Codex_... folder into per-user folders named by a hash, such as %LOCALAPPDATA%\OpenAI\Codex\bin\<hash>\. Several places then record that hash path:

  • %USERPROFILE%\.codex\config.toml, in [mcp_servers.node_repl] command and [mcp_servers.node_repl.env] CODEX_CLI_PATH
  • the user environment variable CODEX_CLI_PATH
  • chrome-native-hosts-v2.json, in %LOCALAPPDATA%\OpenAI\Codex\ and %USERPROFILE%\.codex\

When an auto-update deletes the old hash folder, any of those can point at nothing. Browser Use then tries to start codex app-server --listen stdio:// from a path that no longer exists (#20048, #26011).

Diagram: config.toml, CODEX_CLI_PATH and chrome-native-hosts-v2.json still point to an old hash folder deleted by the update, causing os error 3 or a nodePath error; pointing them at the current hash folder brings back Browser Use and the side panel

Find which recorded path is dead

After quitting from the tray, run this in PowerShell. It lists the helper folders that exist now and checks every path recorded in the places above:

powershell
# Helper folders that exist right now, newest first
Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\bin" -Directory -ErrorAction SilentlyContinue |
  Sort-Object LastWriteTime -Descending | Select-Object Name, LastWriteTime

# The user-level variable, if set
$cli = [Environment]::GetEnvironmentVariable('CODEX_CLI_PATH', 'User')
if ($cli) { "$cli -> exists: $(Test-Path $cli)" }

# Paths written into config.toml
Select-String -Path "$env:USERPROFILE\.codex\config.toml" -Pattern 'node_repl|CODEX_CLI_PATH'

Any exists: False, or a hash in config.toml that is not among the folders listed, is your culprit.

Point the paths at the current folder

Open config.toml in a text editor and change the node_repl command and its CODEX_CLI_PATH to the newest hash folder that actually contains node_repl.exe and codex.exe. For the environment variable, either set it to the current codex.exe or remove it:

powershell
[Environment]::SetEnvironmentVariable('CODEX_CLI_PATH', $null, 'User')

Then start the app again and retry the Browser Use task. Several users fixed os error 3 this way (#26011, #28474, #20206). In #28474 the same stale path even showed up as a misleading "enterprise network policy" block. Keep in mind that the next auto-update can create a new hash folder and break the path again.

If the bin folder does not exist at all

On some April and May 2026 builds, %LOCALAPPDATA%\OpenAI\Codex\bin was never created and the helpers sat only inside the package's virtualized folder. Users linked the two with a junction (#19562):

powershell
New-Item -ItemType Junction -Path "$env:LOCALAPPDATA\OpenAI\Codex\bin" `
  -Target "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\OpenAI\Codex\bin"

Use this only when the first folder is missing and the second one exists. One tester on a clean VM saw the error change to a sandbox failure (CreateProcessAsUserW failed: 5) after the junction (#20661), and one user reported that 26.506 builds create the folder on their own.

What did not help, per several reporters: Repair or Reset in Windows Settings, reinstalling alone, rebooting, running as administrator and installing the npm CLI (#19187).

manifest entry is missing required path nodePath or resourcesPath

This message appears in the ChatGPT extension's side panel, usually as Unable to start ChatGPT followed by Codex app-server manifest entry is missing required path nodePath. Some people see resourcesPath or codexCliPath instead. "Missing" is misleading: the field is there, but the path it holds no longer exists.

The chain behind it: the browser starts the native host com.openai.codexextension, which runs extension-host.exe from the plugin cache under %USERPROFILE%\.codex\plugins\. That host reads chrome-native-hosts-v2.json, and when an update removes the old runtimes\cua_node\<hash> folder or the old app folder without rewriting that file, the host refuses to start (#35705, #32706). Users reported the break again after updates on October 3 and October 8, 2026 (#32706, #40357).

Work from the least invasive step down. Stop at the first one that brings the side panel back.

  1. Open the desktop app first and give it 30 to 60 seconds before using the extension. The extension depends on the running app; one or two users found that waiting was enough (#35705).
  2. Run OpenAI's extension checklist (browser extension docs): update the desktop app, and if more than one ChatGPT or Codex desktop app is installed, update each or remove the ones you no longer use. Restart the browser. In Settings > Computer Use, the browser should show Manage, not Install. Use the browser profile where the extension is installed. If it still fails, reinstall the extension from Settings > Computer Use.
  3. Ask Codex in the desktop app to connect to Chrome. For one user, that regenerated the connection state (#32706).
  4. Correct chrome-native-hosts-v2.json by hand. Quit the app and the browser, then back up the file and look up the current paths:
powershell
$v2 = "$env:LOCALAPPDATA\OpenAI\Codex\chrome-native-hosts-v2.json"
Copy-Item $v2 "$v2.bak"

# Current resources folder of the installed package
(Get-AppxPackage -Name OpenAI.Codex).InstallLocation + '\app\resources'

# Newest Node runtime folder
Get-ChildItem "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node" -Directory |
  Sort-Object LastWriteTime -Descending | Select-Object -First 1 -ExpandProperty FullName

Edit the file so nodePath points to <runtime folder>\bin\node.exe, nodeModuleDirs to <runtime folder>\bin\node_modules, and resourcesPath to the resources folder above. Backslashes must be doubled inside JSON strings. Start the desktop app first, then the browser. Several users fixed it this way (#35705).

A community member published a PowerShell script that does step 4 for you: Repair-CodexChromeManifest.ps1. It backs up the file, finds the installed package and newest runtime, and supports -WhatIf so you can see the change before it writes. It is not an OpenAI tool. Read it before you run it.

If the chrome\latest folder inside the plugin cache itself points at a removed version, the fix is a full rebuild of the plugin cache and both JSON files. Users documented that on 26.930.2377.0 in #42520. It is an advanced repair, so try it only after the steps above.

If you reinstalled through a generic "ChatGPT" download, check what you installed. OpenAI.ChatGPT-Desktop (ChatGPT Classic) has no Codex resources, so the extension can never find its paths (#32706). The correct app is Microsoft Store ID 9PLM9XGG6VKS, which you can install with winget install --id 9PLM9XGG6VKS -s msstore (Windows app docs).

Background server has incompatible feature settings in Codex CLI

This prompt comes from the Codex CLI in a terminal, not from the desktop app, and it appears on Windows, macOS, Linux and WSL alike. The fix is to update the CLI to 0.162.1 or later, which stops the prompt on ordinary launches. If you cannot update right now, codex --no-daemon starts your session without changing anything other sessions use.

Some background helps you pick the safe option. Since CLI 0.157.0 (September 25, 2026), codex automatically starts a shared background server on your machine, and later sessions attach to it (0.157.0 release). The CLI's own commands call it the app-server daemon (codex app-server daemon ...), and error messages say "daemon" or "shared background server". All three names mean the same process. Before a session attaches, the CLI checks that the server runs with the feature settings the session expects. When they differ, you see this:

text
Background server has incompatible feature settings
This session requires api_key_model_discovery to be enabled
Restart will use these shared feature settings:
  api_key_model_discovery = true
  auth_elicitation = true
  code_mode_host = true
  mcp_oauth_refresh_coordination = false
These settings persist and can disable functionality for other clients. Restart may interrupt active or queued work.

  1. Run without daemon this time
  2. Restart with these settings
  3. Cancel

The second line can also end in "to be disabled". When there is no menu, because you picked Cancel or Codex is not running in an interactive terminal, the same check prints a one-line error instead (source):

text
Error: Cannot use the shared background server: This session requires api_key_model_discovery to be enabled.
To work without the background server, rerun the same command with --no-daemon (including resume or fork and its arguments).

api_key_model_discovery does not mean you need an API key. The Codex source describes it as discovering model catalogs for OpenAI API-key authentication (features/src/lib.rs), and people signed in with ChatGPT and no key at all got the prompt (#51891, #52085). It is simply the setting whose default changed.

Why the prompt appears: a version gap or a saved setting

api_key_model_discovery was off by default in CLI 0.160.1 and on in 0.161.0, and the background server updates itself on its own schedule (#51758). In early October 2026, three situations produced the prompt. Start by comparing the two versions:

bash
codex --version
codex app-server daemon version
  • The CLI and the server run different versions. If cliVersion and appServerVersion differ, that is your cause. Both directions were reported: a CLI on 0.160.1 next to a server that had updated itself to 0.161.0, and a Homebrew CLI on 0.162.0 next to a server still on 0.160.1 (#51758).
  • Same versions, but an old saved setting. The server keeps its feature settings in ~/.codex/app-server-daemon/settings.json. An earlier Restart with these settings could freeze api_key_model_discovery = false there, so after the default changed, every new session prompted (#51891).
  • A server Codex does not manage. If option 2 is grayed out with This server is not managed by Codex., Codex's daemon manager does not recognize the running server, for example one started separately or left over from an npm update, so Codex will not restart it for you (#52642).

If a session that was already running failed with turn/steer failed: Server is draining; retry after reconnecting, the background server replaced itself with a newer version while you worked. The prompt usually follows on the next launch (#51763, still open).

Fix: update the Codex CLI to 0.162.1 or later

CLI 0.162.1, published October 9, 2026, "Fixed startup failures caused by differences between a running background server's feature settings and CLI defaults. Compatibility checks now apply only to explicit command-line feature overrides" (release notes). An OpenAI contributor confirmed that this covers the older-CLI and the newer-CLI cases, and asked anyone who still sees the prompt after updating to report their CLI and daemon versions (#51758).

Update with the installer you used:

bash
npm install -g @openai/codex@latest   # npm
brew upgrade --cask codex             # Homebrew

As of October 14, 2026, the npm latest tag and the Homebrew cask both point to 0.162.1. MacPorts had not caught up as of October 13 (#51758). Run codex --version to confirm, then start Codex normally.

Because 0.162.1 still checks features you pass explicitly on the command line, clean up any workaround you added earlier:

  • Remove aliases or scripts that add --disable api_key_model_discovery or -c features.api_key_model_discovery=false. These explicit overrides can still trigger the prompt.
  • Remove the [features] api_key_model_discovery = false line from ~/.codex/config.toml if you added it (see Codex Sandbox and config.toml: Permissions Without Full Access for where the file lives). It is no longer needed to get past the prompt. If you sign in with an API key or use a custom provider (Connect Codex to a Third-Party Model API Without Guessing the Protocol), keeping the feature off may also stop Codex from discovering your model list. That last point follows from what the setting does; no one has reported testing it.

Before you can update: which option protects running work

If you are stuck on 0.162.0 or earlier, pick by what else is running on the shared server:

Decision flow for the Codex background server prompt: if you can update, update to CLI 0.162.1 and remove leftover --disable flags; if not and other sessions are working, use codex --disable api_key_model_discovery or codex --no-daemon; if nothing else runs, Restart with these settings, which is saved for all clients and may interrupt work; avoid downgrading
OptionWhat it doesSaved for later?Effect on other sessionsUse it when
Run without daemon this time, or codex --no-daemonRuns this one session with its own private app-serverNoNoneYou need to work now
codex --disable api_key_model_discovery, or api_key_model_discovery = false under [features] in config.tomlMakes your session match the server, then attaches to itThe flag no; the config line yesNone; the server keeps runningThe message says "to be enabled" and other sessions are busy
Restart with these settingsRestarts the shared server with the listed values after you confirmYes, in settings.json, for every clientMay interrupt active or queued workNothing else is running and the option is not grayed out
Cancel (selected by default)Exits and prints the one-line errorNoNoneYou want to decide later

The --disable route and the config line were reported on Linux, attached to the existing server without restarting it, and were confirmed by another user (#51891, #52642). Picking option 1 prints Running without the shared background server and saves nothing. The same bypass works for resuming: codex resume --no-daemon, or codex resume <session-id> --no-daemon. Per the CLI reference, --no-daemon cannot be combined with --remote or codex agents, both of which need the shared server.

Three more things from the reports:

  • "to be disabled" usually means an older CLI next to a newer server (0.160.x with 0.161.0). Updating the CLI fixed it (#51758). Downgrading has the opposite effect: one user who went back to 0.160.0 simply got the "to be disabled" prompt instead (#51806).
  • Restarting from the command line is not equivalent to option 2 on 0.161.0. codex app-server daemon restart --enable api_key_model_discovery reported success but kept the saved false. In the same reporter's isolated test, codex app-server daemon stop followed by codex app-server daemon start cleared the saved overrides (#51787). Either way, every session on that server ends.
  • Deleting ~/.codex/app-server-daemon did not help one Windows user (#51891).

Other Codex CLI errors that end with "--no-daemon"

These come from the same shared background server and print the same hint to rerun with --no-daemon, but the incompatible-settings fix does not apply:

  • Error: failed to open daemon process: Access is denied. (os error 5) (earlier builds: Error: Access is denied. (os error 5)) in PowerShell on Windows. It was still reported on 0.162.1 on October 13, 2026, and has no official fix (#51283, open). The error itself suggests --no-daemon, but no one in the reports has said whether that works here. One user fixed it by renaming the daemon's two state folders, which keeps them as a backup. Run it with no Codex session open:
powershell
$stamp = Get-Date -Format "yyyyMMdd-HHmmss"
foreach ($name in @("app-server-control", "app-server-daemon")) {
    $path = Join-Path $HOME ".codex\$name"
    if (Test-Path $path) { Rename-Item -LiteralPath $path -NewName "$name.backup-$stamp" }
}
  • Error: start the Windows daemon from a non-elevated terminal; shared clients must not inherit administrator privileges appeared on 0.157.0 in administrator terminals (#48043, open). Open a normal terminal instead. On PCs with UAC turned off, every terminal is elevated, so use --no-daemon. In 0.162.1, an elevated session instead prints Running as administrator: shared background server disabled. and runs without it (source).
  • Error: app server is running but is not managed by codex app-server daemon shows up after an npm update leaves the old server running; codex app-server daemon version then lists two different versions. The reporter recovered by ending the old app-server process and starting a managed one with codex app-server daemon start (#46468, open). Ending that process also ends every session attached to it.
  • Error: app server did not become ready on .../app-server-control.sock: the daemon processes were running but the control socket was missing, for an unknown reason. codex --no-daemon started normally (#50978, open).

Codex app-server initialize handshake timed out: the 30-second limit

Every client has to send the app-server an initialize request before anything else (app-server docs). The desktop app waits 30 seconds for the reply. The documentation does not state that limit, but logs posted in #39015 show durationMs=30012 and cause=initialize_handshake_timeout. So this error means codex.exe did start, but it was still busy when time ran out.

This is a different error from the 15-second cloud config bundle timeout. If your message mentions the cloud config bundle, see Codex Timed Out Loading the Cloud Config Bundle.

Try these in order. All of them assume you quit from the tray first.

End leftover Codex processes

A previous codex.exe that never exited can hold the state database locked, so the new one waits and times out. One user hit this more than ten times and fixed it each time by stopping every Codex process and relaunching (#32160):

powershell
Get-Process *codex*, *chatgpt*, *node_repl* -ErrorAction SilentlyContinue | Stop-Process -Force

This also ends any IDE sessions that use Codex.

Move logs_2.sqlite aside

The cause with the most reports is the diagnostic log database %USERPROFILE%\.codex\logs_2.sqlite growing very large or getting corrupted. Reported cases include a 6.7 GB file, and a 2.27 GB corrupt one; after moving the latter aside, the handshake took 1.7 seconds instead of timing out (#27741, #39015). Check the size, then move the three files together:

powershell
$codex = "$env:USERPROFILE\.codex"
Get-ChildItem "$codex\logs_2.sqlite*" | Select-Object Name, @{ n = 'MB'; e = { [math]::Round($_.Length / 1MB) } }

$hold = "$codex\logs-hold-$(Get-Date -Format yyyyMMdd-HHmmss)"
New-Item -ItemType Directory -Path $hold | Out-Null
Move-Item "$codex\logs_2.sqlite*" $hold

The app creates a fresh log database on the next start. Per #39015, this file holds logs only, not chats or settings. Do not move state_5.sqlite in this step; that file is the index of your threads. OpenAI staff said newer builds detect a corrupt database and that they are "working on db auto-healing", without a version number (#23917).

Turn off WSL mode if your agent runs in WSL

If you switched the agent to WSL, startup can copy state across /mnt/c, and that alone can exceed 30 seconds (#38345). The setting normally lives in the app's Settings, but you cannot reach Settings while the app fails to start, so edit %USERPROFILE%\.codex\config.toml. If the file already has a [desktop] section, add or change the line there instead of adding a second section:

toml
[desktop]
runCodexInWindowsSubsystemForLinux = false

Two commenters on Reddit said WSL mode was their actual cause. Another user kept WSL, let the copy run for about 40 more seconds and relaunched. The tradeoff: chats that ran in WSL become unreachable while the setting is off (#39169). When you edit this file, write Windows paths with forward slashes or in single quotes. A path like "F:\work" in double quotes is an invalid escape that can hang startup on its own (#37616).

Move a very large session history, never delete it

If none of that helps, check how big your local history is:

powershell
Get-ChildItem "$env:USERPROFILE\.codex\sessions" -Recurse -File -ErrorAction SilentlyContinue |
  Measure-Object Length -Sum | Select-Object Count, @{ n = 'GB'; e = { [math]::Round($_.Sum / 1GB, 2) } }

One user with 64 session files totaling 22.24 GB got the app starting again only after moving sessions, archived_sessions and state_5.sqlite* to a holding folder on another drive. Moving the log database alone had not helped that user (Reddit, August 15, 2026). This is a single report, and it hides your thread list until you move the files back, so do it only with a full, verified backup.

0xC000001D (code 3221225501): find the faulting module first

0xC000001D is STATUS_ILLEGAL_INSTRUCTION; 3221225501 is the same code in decimal. You usually see it as ChatGPT failed to start. (code=3221225501, signal=null). Most recent error: Codex app-server websocket closed (code=3221225501), sometimes followed by Codex app-server process is not available (#30884, #42029).

Reinstalling, re-registering the package, installing Visual C++ redistributables, deleting the SQLite databases and starting with a clean .codex all failed for the people who tried them (#30339, #30884). The useful first step is to ask Windows which module crashed.

Open Event Viewer > Windows Logs > Application, find the Application Error entry for codex.exe at the time of the crash, and read Faulting module name. Or pull it from PowerShell:

powershell
Get-WinEvent -FilterHashtable @{ LogName = 'Application'; ProviderName = 'Application Error' } -MaxEvents 20 |
  Where-Object Message -match 'codex' | Format-List TimeCreated, Message

Faulting module ASProxy64.dll: remove Astrill's LSP

If the module is ASProxy64.dll, Astrill VPN has injected its Winsock layered service provider (LSP) into codex.exe. This is the best-documented cause, with many reporters on recent CPUs such as Ryzen AI, Core Ultra and the i7-14700KF, so CPU age does not explain these cases (#24408, #30884). Fixes that worked:

  • In Astrill, hold Ctrl while opening its menu, choose Help > LSP Uninstall, and reboot. Then confirm that tasklist /m ASProxy64.dll reports no running tasks.
  • Or check netsh winsock show catalog | findstr ASProxy, run netsh winsock reset from an administrator terminal, and reboot. This resets every LSP on the machine, not just Astrill's.
  • Or uninstall Astrill. Users who keep it report that its OpenWeb and WireGuard protocols do not install the LSP.

Astrill is the only injector confirmed in these reports. If Event Viewer names a different third-party DLL, the same reasoning may apply, but no one has documented it yet.

No third-party module: the build expects a CPU feature yours lacks

If the faulting module is codex.exe itself, the build is likely using an instruction your CPU does not have. OpenAI confirmed this for the npm CLI 0.135.0 on a Haswell Xeon ("This will be fixed in the next release", #25367). For the VS Code extension, reporters in #17410 say the Linux build under WSL2 still works. OpenAI has not answered any of the desktop 0xC000001D reports, and which CPU feature current desktop builds require is not documented.

There is nothing in .codex to repair in this case. Your options are a different way to run Codex (the CLI in WSL2, or an older CLI release as in #25367) and a report with your CPU model, as described in what to send OpenAI.

Exit codes that look similar

  • code=3221225506 (0xC0000022, access denied): on builds 26.820.7780.0 through 26.825.6671.0, check HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\SafeDllSearchMode. If it is 0, set it back to the Windows default 1 from an administrator prompt and restart the app. Several users confirmed that fix (#40913).
  • 3221225781 (0xC0000135, DLL not found): one user was missing vcruntime140_1.dll and fixed it by installing the latest Microsoft Visual C++ Redistributable (forum).
  • HW capability requested: 0x20000000: one user removed a stray global OPENSSL_ia32cap variable; others set it to ~0x20000000 (#12962). That variable affects every OpenSSL program on the machine.

Codex app-server is not available: local crash or remote connection

This message is never the first failure. The desktop app (ChatGPT on Windows or macOS) asked an app-server to do something and nothing answered. The line above it tells you what the app was trying to do:

  • Error submitting message
  • Failed to resume chat or Failed to restore conversation
  • Failed to stop chat

Some builds word it Codex app-server process is not available. The same text covers two different failures, and one quick test tells them apart: open an ordinary chat that runs on this computer and send a short message.

What happens in a local chatWhat failedWhere to go
It works; only dot conversations, Codex Cloud environments or SSH remotes failThe app's connection to OpenAI's cloud backendRemote branch below. Local repairs do not reach it
It fails tooThe app-server on your computer crashed or was killedLocal branch below

Only dot, Cloud or SSH tasks fail: the connection, not your PC

From late September to October 12, 2026, users on macOS and Windows reported the message repeating in conversations with a dot, in new Codex Cloud sessions right after environment setup, and over SSH. Where reporters checked, their local tasks kept working (#49520, #53359, #49868). The app logs they posted show hostKind=durable, open_timeout or ECONNRESET, and WebSocket close code 1006 on the connection to codex-cloud-backend.chatgpt.com (#49829, #49520).

What has helped:

  • Open the same task somewhere else. In one report the task that failed in the desktop app opened on chatgpt.com in a browser (#49829); in another, the user kept talking to the dot on Android (#53359).
  • If you connect through a proxy, suspect the proxy path. Users in #49829 found that this connection ignores the system and app proxy settings and tries to connect directly, while the rest of the app goes through the proxy. Switching the proxy tool to TUN mode restored it for one macOS user and did not for another. That second user also briefly lost local chats in TUN-only mode, so switch back if local work breaks.
  • Do not expect a restart to stick. One user quit the app at night and saw the message again the next morning (#49520). Reinstalling or cleaning .codex does not touch this connection.

OpenAI has not stated a cause. If you report it, add redacted log lines to #49829 when a proxy is involved.

Every chat fails: the local app-server crashed

If local chats fail too, the background process on your computer is gone. Fully quit the app (from the system tray on Windows, with Quit on macOS) and open it again. If the message returns, find out why the process died:

  • Windows exit codes. Look for the exit code in the desktop log or Event Viewer. 3221225501 leads to the 0xC000001D section. 0xc0000409 has been linked to the machine running out of memory (#36619). 0xC0000017 was traced to a user PATH larger than the 32 KB environment block; back up HKCU\Environment before you prune it (#46374). Astrill VPN has also been reported (#45597).
  • macOS signal=SIGKILL. If the app log shows the Codex process killed with SIGKILL again and again, check free memory. One report on a 16 GB Mac showed about 447 MB free at the time (#41473). Another showed a workspace sign-in error (401) looping before each kill (#40222). Both are still open.
  • A machine-wide Codex policy on Windows. One user's every Work chat failed because C:\ProgramData\OpenAI\Codex\requirements.toml forced a custom permission profile and a managed hook. Removing that policy fixed it (#41252). On a company PC, an administrator usually put that file there, so ask them rather than deleting it. In the same thread, a clean reinstall helped another user for only about two days.

These are not the errors above, but they come from the same background process and are easy to confuse with them.

Message or symptomWhat it points toFirst step
failed to launch codex app-server: program not foundReported once, on 26.930.61225, in a Cloud chat using Windows Computer Use; the same test worked in an On my computer chat (#51867)Run the task from an On my computer chat; the cause is unknown
Codex app-server process is not available or "ChatGPT hit a snag"The background codex.exe crashed and the window did not restart it, or, for dot and Cloud tasks, the cloud connection failedCheck whether local chats work, then follow Codex app-server is not available
Unable to locate the Codex CLI binary. Set CODEX_CLI_PATH or ensure the Electron resources include bin/codex.Copying codex.exe out of the package failed on some 26.820–26.915 builds (#40700)Update the app; if it is installed on another drive, use Settings > Apps > Installed apps > ChatGPT > Move to move it to C:
Logo or spinner forever, no error (builds 26.924–26.928)The app-server process stalls at startup. Several users report 26.930 builds fixed it (#48333)Update; or end only the codex.exe whose command line contains app-server and let the app respawn it
Window closes 10–35 seconds after sign-in on 26.1002.7124.0A crash while installing the background runtime package OpenAI.CodexPrimaryRuntime (forum, October 8, 2026)Update when a newer build arrives; the forum post's workaround installs the downloaded runtime .msix by hand after checking its OpenAI signature

To end only the stalled app-server process from the endless-logo row, run this while the stuck window is open. Ending every codex.exe would also interrupt other sessions:

powershell
Get-CimInstance Win32_Process |
  Where-Object { $_.Name -eq 'codex.exe' -and $_.CommandLine -like '* app-server *' } |
  ForEach-Object { Stop-Process -Id $_.ProcessId -Force }

If the app starts but then keeps dropping its connection, that is a different problem: see Codex Keeps Reconnecting? Find the Cause Without Losing Your Task.

Fixes that make a Codex startup failure worse

  • Deleting %USERPROFILE%\.codex. It holds your thread index, local conversations, config.toml and auth.json. One user lost history this way (#49265), and it did not fix 0xC000001D for those who tried.
  • Reset in Windows Settings. One user lost local Codex tasks and was signed out after a Reset (forum). Repair is the gentler option, though neither fixed os error 3.
  • Running the app as administrator to get past the error. OpenAI's Windows app docs say the agent inherits that level, so every command it runs is then elevated. It also did not fix os error 3. For the CLI, an elevated terminal either refuses to start the shared background server or runs without it.
  • Choosing Restart with these settings while other Codex sessions are busy. The dialog itself warns that the restart may interrupt active or queued work and that the values persist for every client. codex --disable api_key_model_discovery or --no-daemon leaves those sessions alone.
  • Downgrading the CLI to make the background-server prompt go away. It only flips the prompt from "enabled" to "disabled" (#51806). Update to 0.162.1 instead.
  • Unofficial patches and repair tools. A zip of a "patched" build posted in one issue thread was identified by another user as ransomware. A script circulating in #19187 works by bypassing the browser's website policy check, and a third-party "recovery" tool is advertised across many threads. None of these come from OpenAI.
  • Turning off Windows security features. OpenAI's support staff asked users not to disable Windows security protections as a workaround (forum).
  • Retrying the plugin install over and over. OpenAI support advised against repeatedly retrying the plugin installation, uninstalling the plugin or clearing its cache (forum).

When no local fix exists: what to send OpenAI

Stop trying local fixes when the faulting module is codex.exe itself, when the error survives the steps for its branch, when it returns after every update, or when only dot, Cloud or SSH tasks fail. At that point a good report helps more than another reinstall. Include:

  • the app version (from the dialog or Settings) and your Windows or macOS build;
  • the exact error text, copied rather than retyped;
  • the desktop log from %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\<yyyy>\<mm>\<dd>\ (older builds wrote to %LOCALAPPDATA%\Codex\Logs);
  • the Event Viewer entry for codex.exe, including the faulting module;
  • for 0xC000001D, your CPU model; for the extension errors, the browser and extension version;
  • for the CLI, the output of codex --version, codex app-server daemon version and codex doctor, which reports the background server's status, version and settings file.

If the app opens at all, run /feedback in a chat and include the chat ID when you contact support, as OpenAI's extension troubleshooting suggests. Otherwise, add your details to the open GitHub issue for your branch: #19187 for os error 3, #35705 for nodePath, #39015 for the handshake timeout, #30884 for 0xC000001D, #51283 for the CLI's os error 5, or #49829 for dot tasks behind a proxy. If the incompatible-settings prompt still appears on 0.162.1 or later, open a new issue in openai/codex with both versions, as OpenAI asked. Before you post a log, remove tokens, file paths you consider private and anything from auth.json.

Codex app-server FAQ

What is the Codex app-server?

It is codex.exe running in app-server mode, the background program that runs Codex for richer clients. OpenAI describes it as "the interface Codex uses to power rich clients", such as the VS Code extension; it speaks JSON-RPC and by default talks over stdio (app-server docs). On Windows, the ChatGPT desktop app starts it for you, and Browser Use and the browser extension rely on it too. When it fails, the window has nothing to talk to. Since CLI 0.157.0, the terminal codex also runs one as a shared background server that several sessions attach to.

Why does Codex say "codex app server is not available"?

Because the desktop app sent a request and no app-server answered. If local chats fail too, the local codex.exe crashed, and the earlier exit code tells you why. If only dot, Cloud or SSH tasks fail while local chats work, the app cannot reach OpenAI's cloud backend, often behind a proxy. The Codex app-server is not available section covers both branches.

Why is the Codex app not opening on Windows?

If you get a dialog, match its text to the table at the top. If you get no dialog, three patterns have been reported: an endless logo on 26.924–26.928 builds, a silent close on 26.1002.7124.0, and a startup hang caused by an invalid Windows path in config.toml. Each has its own entry above.

Will reinstalling Codex or the ChatGPT app fix it?

Usually not. Your configuration and history live in %USERPROFILE%\.codex, which uninstalling does not touch, and reinstalling did not fix os error 3 or 0xC000001D for the people who tried. If you do reinstall, install Store ID 9PLM9XGG6VKS, not ChatGPT Classic.

Is this a Codex outage?

For the startup errors, probably not. They come from codex.exe on your own PC or from the CLI's local background server, and the reports trace them to local files, an injected DLL, the CPU or a version gap. A service outage is not among the reported causes. The exception is Codex app-server is not available in dot, Cloud or SSH tasks while local chats work: there the failing part is the connection to OpenAI's cloud backend, so nothing on your machine fixes it. If Codex works with the same account on another device, the problem is on this machine, and the sections above apply.

Found an error, or hit a problem this article does not cover? Send the article URL and what you saw to hi@laozhang.ai. We check it and update the article.