Codex CLI login blocked — phone verification shows unknown foreign number (not mine)
Codex CLI login is blocked by a phone verification prompt showing a Brazilian phone number I have never owned, while ChatGPT and other OpenAI services work normally with the same account.
---
Environment
- Codex version: latest
- OS: macOS
- Account type: paid ChatGPT Plus (account from 2022)
- Login method: Google OAuth via
codex login
---
Steps to Reproduce
- Run
codex login - Browser opens, complete Google OAuth successfully
- Terminal shows: "Login successful" for a moment
- Immediately redirected to phone verification page:
We'll send a code to
+55 (85) 99727-6542
- No option to change the number, no "use a different number" link, no skip button
---
Expected Behavior
Either:
- Codex should NOT require phone verification (ChatGPT doesn't require it for the same account), OR
- Allow me to enter my own phone number instead of forcing verification against an unknown number I don't own
---
Actual Behavior
Codex insists on verifying +55 (85) 99727-6542 — a Brazilian mobile number that I:
- Have never owned or used
- Have never added to my OpenAI account
- Cannot receive SMS/calls to
There is no UI to change this number or skip this step, making Codex completely inaccessible.
---
What I've Ruled Out
| Attempt | Result |
|---------|--------|
| Different computer (brand new, clean install) | Same issue |
| No proxy / VPN | Same issue |
| No CCSwitch / custom base URL | Same issue |
| Cleared browser cookies + cache | Same issue |
| Reinstalled Codex CLI | Same issue |
ChatGPT web, API, and all other OpenAI services work fine on the same account. Only Codex is affected.
---
Why This Is Likely a Server-Side Bug (Not a Local/Policy Issue)
- ChatGPT does NOT ask for phone verification — same account, same session. If this were a deliberate account-level policy, ChatGPT would also require it.
- The number shown is not mine — this isn't a "we need to add 2FA" prompt; it's Codex retrieving a wrong/phantom phone number from a different data source than ChatGPT uses.
- Many other users report the same pattern since late April 2026:
- #25749 — Codex shows an old/inaccessible phone number
- #20161 — Phone verification required but account has no phone on file
- #25820 — OAuth login suddenly blocked by phone verification
- #25670 — Codex uses a different phone number than ChatGPT
- #20884 — Official collaborator confirmed phone verification was added as anti-fraud, but the wrong-number issue is a separate bug
- No self-service fix exists — across all these issues, no user has reported successfully resolving this by clearing cache, reinstalling, changing account settings, or any other client-side action. All resolutions came from OpenAI backend intervention.
---
What I Need
- A way to either change the phone number during verification, or
- A backend fix so Codex uses the same identity data as ChatGPT (which doesn't trigger this), or
- Manual removal of the phantom phone number from my Codex identity record
---
Additional Context
The phone number +55 (85) 99727-6542 is a Brazilian mobile number (DDD 85 = Fortaleza region). I have no connection to Brazil — no Brazilian billing address, no Brazilian payment method, no VPN exit in Brazil, no Brazilian team members on the account. This number appears to be a data error or cross-account contamination in the Codex-specific identity system.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗