Skip to content

Failed to Start Codex App-Server or “Not Available”: 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.

•••34 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. Codex app-server is not available (in some builds Codex app-server process is not available) is the other common message, on Windows and macOS alike: it comes from the desktop app when it sends, resumes or stops a chat and nothing answers.

For "not available", one test tells you which problem you have: open an ordinary chat that runs on this computer and send a short message.

  • The local chat works, and only dot conversations, Codex Cloud or SSH tasks fail: the app's connection to OpenAI's cloud backend is failing, and no local repair helps. See the cloud branch.
  • The local chat fails too: the local app-server crashed. Quit fully, reopen, and if it returns, find out why it died in the local branch.

For "failed to start", the exact message tells you why codex.exe did not come up, and each reason has its own fix:

  • The system cannot find the path specified. (os error 3) means a helper path recorded before an auto-update now points at a folder the update deleted. Point it at the current folder.
  • manifest entry is missing required path nodePath (or resourcesPath) means the browser extension's native-host file still lists runtime paths from an older build. Open the desktop app and wait a minute; if the error stays, back up and correct that file.
  • Codex app-server initialize handshake timed out means 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) means codex.exe crashed on an illegal CPU instruction. Check which module crashed before you change anything.
  • failed to launch codex app-server: program not found now comes almost only from Computer Use in Work or Cloud chats on Windows. It is an open bug as of November 14, 2026; see what has helped.
  • Organization settings could not be loaded (or Unable to load organization settings) means the app stopped before it started its app-server. The reason= in the startup log tells you which fix applies; with WSL mode on, turning WSL mode off is the quickest way back in.

The Codex CLI in a terminal runs its own shared background server, and two of its messages land here too:

  • Background server has incompatible feature settings appears 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.
  • failed to open daemon process: Access is denied. (os error 5) appears in PowerShell on Windows, typically right after a restart. codex --no-daemon works, and moving two stale PID files aside restored normal startup for reporters. CLI 0.162.0 fixed one cause of this error; the stale-PID cause has no official fix as of November 14, 2026.

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 November 14, 2026, the incompatible-settings prompt is still the only one of these errors with a complete official fix (CLI 0.162.1), and CLI 0.162.0 fixed one of several causes of the CLI's os error 5. 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
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; issues still open and no cause stated by OpenAI as of November 14, 2026
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: failed to open daemon process: Access is denied. (os error 5) (earlier: Error: Access is denied. (os error 5))codex in PowerShell or Windows Terminal on Windows, often right after a restartThe PID saved for the background server now belongs to a protected Windows processcodex --no-daemon now; move daemon.pid and daemon-updater.pid aside to restore normal startupOne cause fixed in CLI 0.162.0; the stale-PID cause still reported on 0.167.0, no official fix as of November 14, 2026
failed to launch codex app-server: program not foundComputer Use in a Work or Cloud chat in the Windows desktop app, while listing apps or windowsUnknown; the bundled codex.exe exists and runs, but the Computer Use launcher does not find itTry the same task in an On my computer chat; adding the codex.exe folder to your user PATH helped one reporter but not anotherOpen issues on builds 26.930 to 26.1029, no reply from OpenAI as of November 14, 2026
Organization settings could not be loaded / Unable to load organization settings"Codex" or "ChatGPT" dialog at launch, Windows; log line Desktop startup policy read failedWith WSL mode on: the Linux copy of codex cannot run inside WSL. Otherwise: the app could not copy codex.exe into its runtime folder (EPERM)Read reason= in the startup log; with WSL mode on, turn it off in config.tomlUser workarounds on builds up to 26.1111.2228.0; issues open, no reply from OpenAI as of November 14, 2026

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 or, for os error 5, to its own 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 November 14, 2026, the npm latest tag, the Homebrew cask and MacPorts all install 0.169.0, so any current install is past the fix. 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. The most common one, os error 5, has its own section below.

  • 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).

failed to open daemon process: Access is denied. (os error 5)

This error comes from the Codex CLI in PowerShell or Windows Terminal on Windows, as soon as you run codex:

text
Error: failed to open daemon process: Access is denied. (os error 5)
To work without the background server, rerun the same command with --no-daemon (including resume or fork and its arguments).

Earlier builds printed only Error: Access is denied. (os error 5) (#51283). Localized Windows shows the middle part in your language, for example Acceso denegado (#54569). It is a different problem from the incompatible-settings prompt above, and the reports come from normal, non-elevated terminals, so it is not the administrator-terminal error listed above either.

Status as of November 14, 2026: one cause fixed, the common one now has no official fix. The same text has more than one cause. An earlier one, the daemon install failing on Windows, was fixed in CLI 0.162.0, according to an OpenAI maintainer in #48853 on October 8. When a user still hit the error on 0.162.1, an OpenAI maintainer replied on October 10 that "there are potentially multiple causes" and asked for a new report with /feedback logs from a --no-daemon session. The cause most people hit now, the stale PID below, is tracked in #51283 (opened on 0.160.1) and #54569 (opened on 0.163.0); both are open with no reply from OpenAI. It was still reported on 0.162.1 on October 13, on 0.164.0 in late October, and on 0.167.0 on November 14. None of the release notes from 0.163.0 through CLI 0.169.0 (November 13) mention it (releases). So if you are on a CLI older than 0.162.0, update first.

Work now: codex --no-daemon

The hint in the error works here. Two reporters confirmed that codex --no-daemon starts normally (#54569). It runs this one session with its own private app-server and changes nothing on disk. Add the flag to resume and fork commands too, for example codex resume --no-daemon.

Why it happens: a stale PID after a restart

Reporters traced it to the file ~/.codex/app-server-daemon/daemon.pid, where the CLI records the process ID of its background server. After a Windows restart, that number can belong to a different, protected Windows process: fontdrvhost.exe, svchost.exe and an Intel wireless service in three reports. The CLI tries to open that process to see whether its server is still alive, Windows refuses, and the CLI stops with os error 5 instead of treating the record as stale (#54569). That analysis comes from users reading the source, not from OpenAI. It also explains why the error tends to return after the next restart; one reporter has now hit it after two separate reboots.

Fix: move the two PID files aside

With no Codex session open, move only daemon.pid and daemon-updater.pid out of the way. Two reporters, the later one on 0.167.0, got normal startup back this way without ending any process (#54569). This version renames them, so nothing is deleted:

powershell
$stamp = Get-Date -Format "yyyyMMdd-HHmmss"
$dir = Join-Path $HOME ".codex\app-server-daemon"
foreach ($name in @("daemon.pid", "daemon-updater.pid")) {
    $path = Join-Path $dir $name
    if (Test-Path $path) { Rename-Item -LiteralPath $path -NewName "$name.stale-$stamp" }
}

If that does not help, the broader fix from the first reports renames the daemon's two state folders, which also keeps them as a backup. Users on 0.162.0 and 0.163.0 fixed it this way (#51283, #54569). 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" }
}

A related error, start the Windows daemon from a non-elevated terminal, has the same kind of fix. On November 10 a user on 0.167.0 cleared it by deleting daemon.pid, daemon.pid.lock and daemon.lock in the same .codex\app-server-daemon folder (#48043). If none of the files help, check whether the CLI and its background server are on different versions: codex app-server daemon version shows both. One user whose CLI was 0.164.0 while the background server was still 0.157.1 fixed it with codex app-server daemon update and then codex app-server daemon restart (#48043, October 24). A restart of the background server ends the sessions attached to it.

Expect to repeat the first fix after a future restart until OpenAI ships a change, or keep using --no-daemon.

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

If Codex shows Codex app-server is not available or Codex app-server process is not available, usually right after Error submitting message, the desktop app (ChatGPT on Windows or macOS) asked an app-server to do something and nothing answered. This message is never the first failure. 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. You do not need the .codex backup from Before any fix for this test.

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.

Reports kept coming after October 12: on Windows build 26.1013 on October 17, where switching Clash to global mode did not help, and on macOS with a local proxy on October 29, where the connection to codex-cloud-backend.chatgpt.com stayed in SYN_SENT even though the app's main process had proxy variables set (#49829). As of November 14, 2026, #49829, #49520, #53359 and #49868 are all open, and OpenAI has not stated a cause or named a fixed build. The ChatGPT & Codex changelog has no desktop app entry after 26.1007 (October 8), although reporters are on newer builds such as 26.1013, so an update is worth installing but is not a known fix. 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 foundFirst reported on 26.930.61225 in a Cloud chat using Windows Computer Use; the same test worked in an On my computer chat (#51867). Since October 22 it has been reported from Work chats on builds up to 26.1029.61003 whenever Computer Use lists apps or windows, even though the bundled codex.exe exists and runs --version (#56203, #60317). All open, no reply from OpenAI as of November 14, 2026Run the task from an On my computer chat. The first reporter fixed it by adding the codex.exe folder (%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>) to the user PATH and restarting the app; for a later reporter on 26.1021, a PATH test, App Repair and full restarts did not help (#56203, October 25). Otherwise, add your build and the in-app feedback ID to #56203
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
Codex could not start / The extension could not start its user interface.The Codex panel in VS Code (also Insiders and Remote-SSH). The app-server starts; the panel's web view did not report ready within 30 seconds (renderer_ready_timeout in Output > Codex), on extension 26.1021.22027 (#59865, #59857)Reopening VS Code sometimes works after several tries. Rolling back to 26.1007.21434 fixed it for one Linux user (#60602); stable 26.1106.51428 fixed another reporter's Linux setup on November 11 (#59921). Windows reports are still open

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.

If the app opens but signing in ends with Sign-in failed: Login server error: Token exchange failed: error sending request for url, the app-server is running and its sign-in request is not reaching OpenAI: see Codex token exchange failed: fix "error sending request for url" at sign-in.

Organization settings could not be loaded: read the reason in the startup log

If the Windows desktop app opens to a dialog that says Organization settings could not be loaded (in other builds Unable to load organization settings, or in Spanish No se pudo cargar la configuración de la organización), the app has paused before it started its app-server. The dialog blames the network, a proxy or a firewall, and in the reports Retry did not get past it. Personal Plus accounts get it too, so it does not mean a company policy is blocking you. The useful detail is in the desktop log: look for the line that starts with Desktop startup policy read failed.

powershell
Get-ChildItem "$env:LOCALAPPDATA\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs", "$env:LOCALAPPDATA\Codex\Logs" -Recurse -File -ErrorAction SilentlyContinue |
  Sort-Object LastWriteTime -Descending | Select-Object -First 3 |
  Select-String -Pattern "startup policy read failed", "bundled_executable_relocation_failed" |
  Select-Object -Last 6
What the log showsWhat reporters foundWhat has worked
phase=policy-read reason=protocol, with WSL mode on (runCodexInWindowsSubsystemForLinux = true under [desktop] in config.toml)The app runs the Linux copy of codex through WSL to read its settings. On 26.1106.6628.0 and 26.1111.2228.0 that file arrives without execute permission inside WSL, so it never starts (#60974, opened November 12). Two other users traced the same line to their WSL login shell printing text on startup (#56197, November 6) and to hardware virtualization being off in the BIOS (#58846, November 9)Back up config.toml, set runCodexInWindowsSubsystemForLinux = false, fully quit and reopen. That got the app open for users in #60974 (November 13) and #58846. To keep WSL mode, the fixes in those threads are: move commands that print from ~/.profile into interactive shells only, turn virtualization back on, or make the packaged Linux binary executable (an elevated, per-update change described in #60974)
phase=preparation reason=unavailable, after bundled_executable_relocation_failed … operation=rename_staging errorCode=EPERMThe app could not finish copying codex.exe out of its protected install folder into %LOCALAPPDATA%\OpenAI\Codex\bin\<hash>, so it had no app-server to start. Reported on builds from 26.1021.3705.0 to 26.1103.7773.0, often right after an update (#57005)Quit the app fully, wait a moment, and open it again: in one reporter's test on the affected PC, renaming a freshly copied folder failed at once and succeeded one second later. A restart of Windows after the update fixed it for another user (#50608, October 5). On November 10 a user got the app open by copying the four missing executables from the installed package into the exact folder named in the log, without resetting anything (#57005); a script for that is below
Neither of the aboveOne user's launch came back after commenting out the notify hook the app had written into config.toml, but the dialog later returned with that hook already off (#59582)Treat that one as unproven. Add your log lines to #57005 or #60974

The copy from the EPERM row, as the November 10 reporter described it: same-version files from the installed package, only into the folder the log names, and only files that are missing. Replace <hash> with the folder name from your destinationPath line, and run it with the app closed:

powershell
$pkg  = (Get-AppxPackage -Name OpenAI.Codex).InstallLocation
$dest = Join-Path $env:LOCALAPPDATA "OpenAI\Codex\bin\<hash>"
New-Item -ItemType Directory -Force -Path $dest | Out-Null
foreach ($f in "codex.exe", "codex-code-mode-host.exe", "codex-windows-sandbox-setup.exe", "codex-command-runner.exe") {
    if (-not (Test-Path (Join-Path $dest $f))) { Copy-Item (Join-Path $pkg "app\resources\$f") $dest }
}

As of November 14, 2026, the organization-settings issues are all open with no reply from OpenAI, and the WSL case was confirmed again on 26.1111.2228.0, the newest build reported in them. Do not delete .codex for this one either: none of the reporters needed to.

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 or #54569 for the CLI's os error 5, #49829 for dot tasks behind a proxy, #56203 for program not found in Computer Use, #57005 or #60974 (WSL mode) for Organization settings could not be loaded, or #59865 for the VS Code panel that "could not start its user interface". 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. A dialog many users have reported since late October is Organization settings could not be loaded, which has its own section; with WSL mode on, turning it off is the quickest way in. 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.