Repository navigation
Windows Codex Desktop Browser Use fails to start app-server despite working npm CLI #20048
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.422.8496.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows 10 Home, 64-bit, build 26100
What issue are you seeing?
Codex Desktop Browser Use does not work on Windows.
When I use the Browser Use plugin, it only sees an about:blank tab and cannot navigate or inspect the in-app browser. Attempting to navigate with Browser Use fails with:
failed to start codex app-server: The system cannot find the path specified. (os error 3)
Inside Codex, Browser Use returns:
agent.browser.tabs.list() => about:blank
agent.browser.user.openTabs() => []
A simple test like navigating to https://example.com fails with the same app-server error.
I also tested the packaged Codex executable directly in PowerShell:
& "C:\Program Files\WindowsApps\OpenAI.Codex_26.422.8496.0_x64__2p2nqsd0c76g0\app\resources\codex.exe" --help
That fails with:
Access is denied
I installed the standalone npm CLI:
npm.cmd install -g @openai/codex
Then:
codex.cmd app-server --help
works correctly and prints the app-server help text.
So the standalone CLI appears healthy, but Codex Desktop Browser Use still fails, likely because it is trying to start the packaged WindowsApps codex.exe or otherwise not resolving the working codex.cmd from PATH.
I already tried:
- Restarting Windows
- Terminating Codex
- Repairing Codex from Windows Apps settings
- Resetting Codex
- Uninstalling/reinstalling Codex Desktop
- Fully quitting/reopening Codex Desktop
- Installing the npm CLI
The issue still persists.
What steps can reproduce the bug?
- Install and open Codex Desktop on Windows.
- Open a Codex thread with the Browser Use plugin enabled.
- Ask Codex to use Browser Use or run a basic Browser Use navigation test.
- Browser Use initializes but only sees an about:blank tab.
- Attempt to navigate the Browser Use tab to a simple site such as https://example.com.
- The navigation fails with:
failed to start codex app-server: The system cannot find the path specified. (os error 3)
Additional reproduction/check:
- In PowerShell, run the packaged Codex executable directly:
& "C:\Program Files\WindowsApps\OpenAI.Codex_26.422.8496.0_x64__2p2nqsd0c76g0\app\resources\codex.exe" --help
- It fails with:
Access is denied
- Install standalone CLI:
npm.cmd install -g @openai/codex
- Run:
codex.cmd app-server --help
- This works, but Browser Use in Codex Desktop still fails with the same app-server error.
What is the expected behavior?
Browser Use should start or connect to a working Codex app-server, attach to the in-app browser tab, and allow normal browser automation actions such as navigation, screenshots, DOM snapshots, clicks, and form interactions.
For example, navigating to https://example.com through Browser Use should load the page and allow DOM/screenshot inspection instead of failing with an app-server path error.
Additional information
Additional context: I am logged into GitHub with a different account than my ChatGPT/Codex account. I do not know if this is related, but I wanted to mention it. The Browser Use failure appears to happen before any GitHub-specific action, during Codex app-server startup/navigation. m_m_gh@windowslive.com is my account for codex
Activity
mmgh993-hue commentedon Apr 28, 2026
Additional confirmation: after installing the standalone CLI with npm,
codex.cmd app-server --helpworks successfully, but Browser Use in Codex Desktop still fails with the app-server error. This suggests the Desktop Browser Use bridge is not using the working npm CLI or is still trying to launch the packaged WindowsApps codex.exe.github-actions commentedon Apr 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
neusse commentedon Apr 28, 2026
Work Around bellow. I also uninstalled and "DELETED" everything codex related and did a clean install. Everything works fine after clean install. But a clean install is painful if you have a lot of setup done.
Workaround:
I manually recreated the missing local directory and copied
node_repl.exefrom the packaged app resources into the stale AppData path. That changed the failure from:to:
Searching strings in
node_repl.exeshowed it starts:So I also copied the packaged
codex.exeinto the same AppData bin directory:After that, the authenticated fetch bridge started working. This call succeeded:
Response:
{ "feature_status": { "user_site_settings_toggle": false, "agent": false, "side_chat": false, "cursor_chat": false, "page_view": false, "page_content": false, "analytics": false }, "debug_reason": null, "enabled": true }Browser Use then no longer failed with the app-server error. Programmatic navigation to
https://www.fox.com/homereached the page, and DOM access worked afterward.This seems to confirm that the bug is Codex Desktop launching
node_repl.exefrom a stale/missing user-local binary path, and thatnode_repl.exeexpects a companioncodex.exebeside it forcodex app-server. The fix likely needs to ensure the AppData bin cache is created/refreshed correctly, or that Desktop launches the packaged resource binaries directly.RihanSchalkwyk commentedon Apr 28, 2026
I can confirm the packaged WindowsApps executable failure on another Windows install with the same Codex Desktop package version.
Environment:
User-visible symptom:
Direct packaged executable check:
fails with:
Sandbox diagnostics also show the WindowsApps ACL/setup failure family:
and later setup refresh failures against the WSL workspace and temp path:
%USERPROFILE%\.codex\.sandbox\setup_error.jsoncontains:{ "code": "helper_unknown_error", "message": "setup refresh had errors" }This looks like the same underlying issue: the Desktop app can authenticate and render initial UI, but startup/runner initialization fails when it needs the packaged
codex.exe/ sandbox setup path. The WSL UNC workspace may be an additional trigger, but the directcodex.exe --helpaccess-denied repro seems independent of Browser Use.Dimava commentedon Apr 29, 2026
Thanks for the workaround, I've linked this thread and Codex fixed everything itself
LeizhenZhang commentedon May 2, 2026
I can also reproduce this issue on Windows Codex Desktop.
My case is very similar, with one additional data point: the manual app-server startup works, not just
--help.Environment:
What works:
Browser-in-app initializes.
It sees an about:blank tab.
DOM snapshot on about:blank succeeds.
Browser Use is enabled.
Approval and History are set to Always allow.
No blocked domains are configured.
The plugin script exists:
C:\Users\zhang\.codex\plugins\cache\openai-bundled\browser-use\0.1.0-alpha1\scripts\browser-client.mjsManual app-server startup works:
codex app-server --listen ws://127.0.0.1:0It starts successfully, for example on:
ws://127.0.0.1:60095Health checks succeed:
curl.exe -i http://127.0.0.1:60095/healthzcurl.exe -i http://127.0.0.1:60095/readyzBoth return:
HTTP/1.1 200 OKcontent-length: 0What fails:
Browser-in-app cannot navigate to external websites.
Navigating to
https://example.com/fails.Navigating to
https://www.baidu.com/also fails.Error:
failed to start codex app-server: The system cannot find the path specified. (os error 3)So in my case the app-server can run manually, but the Browser Use / in-app browser integration still fails to auto-start or bind to it when navigating to an external URL.
Ryan-M86 commentedon May 2, 2026
Having the same issue:
Codex desktop Browser Use runtime issue
Date: 2026-05-02
OS: Windows
In-app browser state: open, not currently navigated
What I tried:
Codex attempted to initialise Browser Use / in-app browser automation using the Browser Use skill and Node REPL bridge.
Result:
The Node REPL tool was discovered, but Browser Use failed before navigation.
Exact error:
failed to start codex app-server: The system cannot find the path specified. (os error 3)
Expected:
Browser Use should start the Codex app-server/runtime and allow Codex to open or inspect the in-app browser tab.
Impact:
The visible in-app browser can be opened manually, but Codex cannot automate or verify pages through Browser Use.
LeizhenZhang commentedon May 2, 2026
ahostbr commentedon May 2, 2026
Cross-linking a local workaround that fixed this same Windows Codex Desktop / Browser Use
failed to start codex app-server: ... (os error 3)failure here: #19562 (comment)On my machine,
%LOCALAPPDATA%\OpenAI\Codex\binwas expected/on the Desktop path but missing. The helper binaries already existed at:%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\OpenAI\Codex\binCreating a junction from the expected path to the packaged helper-bin path fixed Browser Use / in-app browser control:
After adding the junction and retrying in Codex Desktop, Browser Use could attach to the selected in-app browser tab, navigate to external pages, read DOM snapshots, click links, and continue navigating.
This may not cover every Windows Browser Use failure, but it looks relevant when the IAB backend can initialize/list tabs and then navigation/DOM/screenshot work fails with
failed to start codex app-server: ... (os error 3).zemeng5208 commentedon Aug 12, 2026
I maintain WinBridge Recovery for Windows Codex Desktop local runtime recovery: https://github.com/zemeng5208/winbridge-recovery
The confirmed workaround in this thread is almost exactly the failure pattern the project now checks: Desktop expects a user-local runtime containing both
node_repl.exeand its companioncodex.exe, but that runtime path is missing/stale while the official packaged copies exist. Recreating onlynode_repl.exechanges the error from path-not-found to file-not-found; adding the companioncodex.exerestoresnodeRepl.fetchand Browser navigation. That is strong evidence of a materialization/path-consistency bug rather than a generic account or site issue.WinBridge v3.1.1 detects the current AppX package, verifies official CLI/CUA resources, builds a user-owned verified resource mirror, and validates the effective Node REPL/
CODEX_CLI_PATH/app-server paths before switching anything. It is intended to recover this state without requiring users to delete all Codex setup or manually copy binaries into guessed paths after every update.It does not modify WindowsApps ownership/ACLs or substitute a third-party CLI for the trusted Desktop bridge. If the current user runtime is complete and the remaining failure is upstream Browser/tool injection, it stops at diagnosis.
arphox commentedon Sep 22, 2026
I also experience this issue, and this with MANY other issues are basically messing up my ChatGPT Codex local Windows workflow. Please start fixing these bugs.