Codex CLI 0.172.0 on macOS repeatedly fails to connect to Chrome: The browser access host is unavailable
What version of Codex CLI is running?
codex-cli 0.172.0 (latest stable release at the time of testing).
What subscription do you have?
Signed in with a ChatGPT account.
What platform is your computer?
macOS 27.2.1 on Apple silicon (arm64). Google Chrome 158.0.8127.88, ChatGPT Chrome extension 1.26.1120.11331, bundled Computer Use plugin 26.1120.41243.
What terminal emulator and version are you using (if applicable)?
Ghostty.
What issue are you seeing?
Codex CLI repeatedly fails to connect to Chrome. Asking it to open https://example.com/ returns this error before a tab opens:
The browser access host is unavailable
I repeated the checks in the same CLI side chat with Chrome running:
| Operation | Result |
|---|---|
List available browsers (cua.listBrowsers) |
Same error on three consecutive attempts |
Select Chrome (cua.getBrowser) |
Same error |
List Chrome tabs (cua.listTabs) |
Same error |
Open the public test page (cua.createBrowserTab) |
Same error |
List native apps (cua.listApps) |
Succeeded and identified Chrome as running |
Listing browsers alone reproduces the failure. It doesn't require a particular website, an existing tab, or a signed in website account.
What steps can reproduce the bug?
- Open Google Chrome with the ChatGPT extension enabled.
- Start Codex CLI 0.172.0 on macOS and open a side chat.
- Ask: “Use Chrome to open https://example.com/ and tell me the page title.”
- After the connection error, ask Codex to list the available browsers. On this setup it returns the same error each time.
What is the expected behavior?
Codex connects to the running Chrome profile, requests any required site approval, and opens the page. Listing available browsers should return Chrome even before requesting a page.
Codex doctor report
In codex doctor --json, config.load, app_server.status, and desktop.app_server.handshake all returned ok. The mcp.config check returned warning. Under node_repl it listed these browser access variables as unset:
BROWSER_USE_ACCESS_EXECUTOR_ID
BROWSER_USE_ACCESS_PIPE_PATH
BROWSER_USE_ACCESS_VERIFYING_IDENTITY
The failing calls above used cua_repl. I couldn't verify whether the warning for node_repl explains those failures.
Additional information
The bundled Chrome checks found the extension installed and enabled in the selected profile. The native messaging host check returned correct: true. All three checks (Chrome running, extension enabled, host manifest valid) passed while browser discovery was failing.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
- #63721
- #62786
- #62704
Powered by Codex Action
I investigated the related reports and found a concrete root-cause lead, but there is one important diagnostic gap in this report.
What the current report establishes
- The failure occurs at browser enumeration, before a tab or website is involved.
- Chrome is running, the extension is enabled, and the native messaging host check passes.
- Native app discovery succeeds while browser discovery fails.
codex doctorreports the threeBROWSER_USE_ACCESS_*variables as unset undernode_repl.
Relevant corroborating reports
- #58856 includes inspection of the actual running
@oai/cua-repl/bin/cua-repl.mjsprocess on Windows. It foundBROWSER_USE_ACCESS_EXECUTOR_IDpresent but empty, withBROWSER_USE_ACCESS_PIPE_PATHandBROWSER_USE_ACCESS_VERIFYING_IDENTITYabsent. The report also identifies the browser-service check that throws this exact error before attempting the access-host connection. - #57641 contains independent CLI reproductions across Windows, macOS and Linux. Its investigation describes the launcher/preload setting an absent executor ID to an empty string, which still activates access verification, while the standalone CLI does not receive the host pipe and verifying identity supplied to desktop-launched processes.
- #62862 reports the same distinction in VS Code-origin sessions, with native application access working while browser enumeration fails.
Important gap specific to #63724
The doctor warning quoted here is under node_repl, whereas the failing calls are said to use cua_repl. That warning is a strong lead, but it does not by itself prove the environment of the failing cua_repl worker. Could you capture the presence/empty/missing state only of all three variables in the actual running cua_repl child process (not just the shell, doctor output, or static MCP configuration)? Please do not publish their values or any authorization material.
Questions for maintainers
- Does standalone Codex CLI 0.172.0 on macOS arm64 have a supported way to obtain/register the authenticated Browser Access Host context (executor, pipe endpoint and verifying identity) for its own thread?
- If the CLI is expected to support this, where is that context supposed to be bootstrapped and propagated into the
cua_replworker? Is the desktop-only bootstrap being assumed by the bundled launcher? - If standalone CLI browser access is not supported, can the tool return an explicit unsupported-host/prerequisite diagnostic instead of the generic host-unavailable error?
- Is there a supported recovery or fixed release, and can the fix be tested for fresh and resumed CLI sessions as well as a long-lived/shared app-server daemon?
My current assessment is that a missing or incorrectly propagated browser-access authorization context is the leading explanation. The exact failing process in #63724 has not yet been inspected, so this is not a confirmed root cause for this particular reproduction.
I would avoid workarounds that remove the access guard, fabricate/inject authorization variables, or copy authorization material from a desktop process. The fix should establish a supported, authenticated, thread-scoped host registration while preserving the existing identity, signature, session and browser-approval checks.
A maintainer confirmation of the supported bootstrap path and the exact process-level diagnostic would help determine whether #63724 is an exact duplicate of the earlier reports or a distinct 0.172.0 regression.
Additional reproduction on the same Apple Silicon Mac with non-interactive codex exec, including a timestamp-matched desktop log.
- macOS 26.7.1 (arm64), Chrome 157.0.8103.79, and standalone Codex CLI 0.171.0.
- ChatGPT desktop 26.1120.50957 and its bundled CLI 0.171.0-alpha.13.2.
With Chrome and ChatGPT desktop running, start a fresh codex exec --skip-git-repo-check --sandbox read-only --ephemeral from a shell and ask it to enumerate the existing Chrome browser through cua_repl without opening a page. Both the standalone and the desktop-bundled CLI fail before tab discovery with native pipe closed before response. The bundled CLI was run from the shell, outside a desktop chat. At the time of that test, the desktop log contained:
2026-11-25T07:12:28.323Z warning [dynamic-app-tools-native-pipe] dynamic_app_tools_peer_rejected reason=missing-code-signing-identity
In a separate standalone test with the desktop-provided browser-access environment omitted from the child process, cua_repl instead returned The browser access host is unavailable. The same Chrome profile could be enumerated from a regular desktop @Chrome chat on this Mac earlier that day (desktop build 26.1120.41243). The CLI files had valid OpenAI signing identities on disk. The log does not identify which runtime process identity could not be read.
This also matches the rejection reported in #30155. Could you confirm whether non-interactive codex exec is supported for the ChatGPT Chrome extension? If it is, please document the authenticated handoff that preserves browser and site approvals. If the workflow is unsupported, an explicit error would make it easier to distinguish this from an extension installation problem.
I can reproduce this on macOS 26.7.3 (Apple Silicon) with Codex CLI 0.172.0. In a fresh CLI session launched through tmux, both selecting Chrome and calling cua.listBrowsers() returned The browser access host is unavailable before any site permission prompt appeared.
Chrome was running, the extension was enabled, and the native messaging host manifest passed validation. @Chrome works in the ChatGPT desktop app on the same Mac.
I can reproduce this on macOS with Codex CLI 0.172.0.
On the same Mac and with the same Chrome profile, @Chrome in the ChatGPT desktop app can list tabs and interact with an already signed-in page. In two separate terminal CLI sessions, simply asking Codex to list the Chrome tabs failed with Browsers: Error: The browser access host is unavailable. The error occurs before any website is opened and still reproduces after rebooting.
I checked which browser-access settings were present in the running processes. The desktop-launched Codex processes had the connection and verification settings, while the standalone CLI and its daemon did not.
Is there a supported way for a standalone CLI session to establish this browser connection, or is a fix planned for a future release?
I reproduced the browser-host error on November 26, 2026, on an Apple silicon Mac running macOS 27.2.1 and Chrome 158.0.8127.37.
- In ChatGPT desktop 26.1120.50957, I selected
@Chromein a Codex chat. Browser enumeration returned four Chrome tabs, and reading an existing public page succeeded. - In a fresh terminal-driven App Server session with Codex CLI 0.172.0, I supplied the same structured
@Chromemention and requested browser enumeration. The turn accepted the mention, then browser enumeration returnedThe browser access host is unavailablebefore listing any tabs. A later terminal probe targeting Chrome reproduced the same error. - On the same Mac, the standalone Chrome DevTools CLI opened
https://example.com/in an isolated Chrome session, listed the tab, and read its title.
Is there a supported way for standalone Codex CLI or App Server sessions to connect through the ChatGPT Chrome extension with the usual browser and site permissions? If the integration requires a desktop chat, could the error message clarify that?
The same thing is happening on Fedora 45. When I ask Codex in my local terminal to open or switch to an existing Chrome tab, it fails with “The browser access host is unavailable.” The error occurs before the browser loads the page.
I reproduced this on an Apple Silicon Mac running macOS 27.0.1, Chrome 158.0.8127.38, and ChatGPT for Chrome 1.26.1120.11331. Both tests used the same Mac with the same Chrome profile open.
- Desktop app 26.1120.50957 (build 30866) —
@Chromesuccessfully created anabout:blanktab viacua.createBrowserTab("chrome", "about:blank", …)and returned a tab ID. I verified this in the desktop tool transcript. - Fresh
codex execsessions —cua.listBrowsers()returnedError: The browser access host is unavailableon both0.172.0and0.174.0-alpha.7. Both failed before tab discovery. - Process check on
0.172.0— In the browser worker,BROWSER_USE_ACCESS_EXECUTOR_IDwas present but empty, andBROWSER_USE_ACCESS_PIPE_PATHandBROWSER_USE_ACCESS_VERIFYING_IDENTITYwere absent. The desktopcua_replprocess had all three set. The Chrome extension was enabled and native messaging host validation passed.
Can you confirm whether standalone Codex CLI is intended to support the Chrome extension? If so, please make fresh CLI sessions receive the authenticated Browser Access Host context and verify that cua.listBrowsers() can discover Chrome from a Terminal session.
I have also encountered this problem on my MacOS 27.2.1 with codex cli 0.172.0. Hope it can be fixed in the next release.
Same failure here — posting the workaround that is working for me and others in this thread:
- Confirm it is this bug: ask the CLI to list browsers — it fails with "The browser access host is unavailable" before any tab opens, while listing native apps still finds Chrome running.
- Use the ChatGPT desktop app's @Chrome on the same Mac and profile — it lists tabs and opens pages while the terminal CLI fails (confirmed by several reporters here).
- Run
codex doctorand check the BROWSER_USE_ACCESS_* lines — in the failing CLI sessions they show as unset. - Don't reinstall Chrome or the extension: Chrome is running, the extension is enabled, and the native messaging host manifest passes validation. Full write-up with the comparison and the root-cause lead: https://debugradar.com/fix-codex-cli-cant-connect-chrome/
@etraut-openai has started triaging on the issue, as seen here: https://github.com/openai/codex/issues/57641. Its on the radar now 👍🏻