Codex WebSearch receives Cloudflare managed challenge (403) on /backend-api/codex/alpha/search
Open 💬 14 comments Opened Jun 20, 2026 by paceaitian
Environment
- Codex app for Windows: 26.616.5445.0
- Codex CLI: 0.141.0
- OS: Windows
- Date: 2026-06-20
Description
Codex WebSearch requests to /backend-api/codex/alpha/search return HTTP 403 with a Cloudflare managed-challenge HTML page containing Enable JavaScript and cookies to continue.
The search tool is a non-browser HTTP client and cannot complete this interactive Cloudflare challenge, so all WebSearch requests fail before returning search results. Regular ChatGPT web access works in Chrome through the same network path.
Steps to reproduce
- Open the Codex Windows app.
- Ask Codex to perform any web search.
- Observe that the WebSearch tool fails with HTTP 403 and Cloudflare challenge HTML.
Troubleshooting already performed
- Signed out of Codex and signed back in.
- Confirmed the Codex app is current; Microsoft Store reports no newer version.
- Retested through multiple independent exit nodes, including US and Japan.
- Confirmed each node change was active in the local proxy routing log.
- Browser access to ChatGPT remained functional.
- The failure persisted in every case.
Cloudflare Ray IDs
a0e9bd09285df210a0e9c8c4cd2c49d4a0e9c9c718280f27a0e9cadddd0f966a
Expected behavior
The search endpoint should return search results to the Codex WebSearch client without requiring an interactive browser challenge.
Actual behavior
The endpoint returns a Cloudflare managed challenge with HTTP 403, making WebSearch unusable.
14 Comments
same😭😭😭
At least 20 hours already for me.
I experience the same issue on windows.
It's the same issue, yet few people are reporting it—could it be an isolated case?
same😭😭😭
Update:
Web search works fine in version 0.139.0.
If anyone needs it, you can temporarily downgrade:
_npm install -g @openai/codex@0.139.0_
Same here. This issue makes Codex practically unusable for my use case. Web research is essential for many of my tasks, so without it, Codex cannot deliver the functionality I need.
Update:
I switched to another account and WebSearch tool worked briefly on the same PC/network. After logging back into the original account, it immediately returned the Cloudflare managed challenge again (403).
This makes it look like a session/account-side Cloudflare false positive, not a local Codex config or network issue.
可以安装serper MCP、Exa MCP或者Tavily MCP,这几个都有免费额度,挺快,用着不必codex自带的差
You can install Serper MCP, Exa MCP or Tavily MCP; all of these offer free quotas, are quite fast, and are no worse to use than the one that comes with Codex.
I can confirm this issue is still reproducible after updating to Codex CLI 0.142.0.
My results:
Latest Cloudflare Ray ID:
a1024064398a3536This is blocking normal work because web research is essential to many Codex tasks. It appears to be a Windows-specific WebSearch regression rather than an account, network, or local configuration problem.
Another Update:
It seems that GPT 5.4 Mini works for some reason, meanwhile GPT 5.5 still returns the Cloudflare 403 error, perhaps this will get fixed once GPT 5.6 gets released soon. 🤞
Temporary workaround for GPT-5.5 WebSearch on Windows:
This is CLI-only; it does not downgrade or replace the Codex desktop app.
Additional version-bisect data:
@openai/codex@0.137.0— WebSearch works@openai/codex@0.140.0— WebSearch works@openai/codex@0.141.0— WebSearch fails with HTTP 403 Cloudflare managed challengeSame account, same machine, same network, same prompt. This suggests the regression was introduced between
0.140.0and0.141.0, rather than being caused by the user's network or prompt.Observed error text:
Today it seems to work (Version 26.623.31921)