Codex ChatGPT login flow

Open 💬 27 comments Opened May 29, 2026 by D4Vinci-CDM

What issue are you seeing?

I am paying for ChatGPT Plus and cannot access Codex through the advertised ChatGPT login flow.

This is not an API key issue. Codex CLI is installed correctly. Both codex login and codex login --device-auth redirect me to auth.openai.com/add-phone.

This appears to be a known/auth-related Codex issue:

Please either:

  1. remove the phone verification gate from my account for Codex ChatGPT-login;

!!! confirm in writing that Codex ChatGPT-login now requires phone verification for paid Plus users !!!!

What steps can reproduce the bug?

  1. I have an active ChatGPT Plus subscription.
  1. I installed the official Codex CLI on Windows.
  1. I checked that Codex CLI is installed correctly by running:

Get-Command codex

PowerShell detects codex.exe, so the CLI is installed and available in PATH.

  1. I am not trying to use an API key. I am trying to sign in through the official ChatGPT login flow.
  1. I run:

codex login

  1. Codex starts a local login server on localhost and opens the official OpenAI authentication page in the browser.
  1. Instead of completing the ChatGPT/Codex login, the OpenAI authentication flow redirects me to:

auth.openai.com/add-phone

  1. The page says that a phone number is required to continue.
  1. I also tried the official device authorization method:

codex login --device-auth

  1. Codex gives me a device code and asks me to open:

https://auth.openai.com/codex/device

  1. After entering the device code and signing in to my ChatGPT Plus account, the same problem happens again: OpenAI redirects me to the phone verification page.
  1. This confirms that the problem is not with my Windows installation, not with PowerShell, and not with the Codex CLI itself.
  1. The issue happens inside OpenAI’s own authentication system, during the official ChatGPT/Codex login flow.
  1. This is not an API key flow, so the API key phone verification requirement should not apply here.
  1. As a paying ChatGPT Plus user, I expected to access Codex through the advertised ChatGPT subscription login path.
  1. However, I am blocked from using Codex unless I provide a phone number.

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

27 Comments

vikto132 · 3 months ago

I come from Vietnam and no phone number from my country work, they keep show error when I click send otp

blrcoderbro · 3 months ago

Idk wth is openai doing I'm also completely stressed by this

neko-mm · 2 months ago

me too

sharifulgeo · 2 months ago

me too

SuperPerseus · 2 months ago

I encountered a completely opposite problem. My account was initially registered with a phone number. After logging in with the phone number, OpenAI asks me to bind/verify an email address. I can receive and enter the verification code, but then the page shows an error. If I click the retry button, it appears to succeed, but no actual authentication is generated, it does not redirect back to Codex, and when I try to log in to Codex again, I get stuck in the same loop.

Errors I observed include:

  • Server error 500
  • Route Error 400 Invalid content type
  • missing_route_prerequisite_data

I have an active ChatGPT Pro subscription, and ChatGPT web works normally with the same account, but Codex CLI / Platform authentication cannot complete.

Environment:

  • Windows + PowerShell
  • Codex CLI 0.135.0
  • Tried both codex login and codex login --device-auth

I also tried reinstalling Codex CLI, clearing local auth data, using different browsers / incognito mode, but the authentication loop still happens.

blrcoderbro · 2 months ago

Yeah, this issue also I've heard from some of my friends, but the issue is they cannot stop the people who are abusing the accounts, and they are troubling the entire world with these nonsense things.
The problem is with Codex only. I don't know what they are doing. What is the reason for them to do it?
The people who are able to bypass Codex and use it are able to use it. Genuine customers are having issues.

Once, the issue I am getting is that whenever I try to log in, I use multiple accounts. For some accounts, I have no issues, but for some accounts it is repeatedly asking me to verify with the OTP.

phomo0701 · 2 months ago

I have a phone number that can be verified by SMS.
It can help you activate your account.
Contact me on Telegram: @phomo0701

SuperPerseus · 2 months ago

This is really stupid. I followed OpenAI's official path completely. I didn’t use any tools from GitHub that are reverse proxies for the official website, and still, I can’t use it. Those who use abuse tools can enjoy it, while those who use the official tools can’t access it at all.

neko-mm · 2 months ago
是的,我也从一些朋友那里听说过这个问题,但问题在于他们无法阻止那些滥用账号的人,这些人用这些无稽之谈扰乱了全世界。 问题似乎只出现在 Codex 上。我不知道他们到底在干什么。他们这么做的目的是什么? 那些能够绕过 Codex 并正常使用的人可以继续使用,而真正的用户却遇到了问题。 我遇到的问题是,每次尝试登录时,我都会使用多个账户。有些账户登录没有问题,但有些账户却会反复要求我使用一次性密码 (OTP) 进行验证。

I don't know why they do this. When I replied to inquiries about this issue in the group and on social media, I was even ridiculed by those who used special means to verify their identity.

lostmsu · 2 months ago

ChatGPT just pulled out my "primary phone number" out of its butt (maybe old phone number that used to be listed on my Google acc - I login via Google). Codex stopped working today unless I verify that phone number it pulled out of its butt. No visible way to change.

junzhin · 2 months ago
ChatGPT just pulled out my "primary phone number" out of its butt (maybe old phone number that used to be listed on my Google acc - I login via Google). Codex stopped working today unless I verify that phone number it pulled out of its butt. No visible way to change.

+1 I have no idea how they got my old phone number, even though I have been using my new phone number. They still send messages and ask me to reply by sending a code from that phone number, but, unfortunately, this is not available.

<img width="576" height="512" alt="Image" src="https://github.com/user-attachments/assets/0eb2b363-133b-44ba-a11a-8cbb20116533" />

Maybe this is the way to inform your rate limit with the phone number that has expired. BTW, I am using a UK phone number. 🤣

LaiZhou · 2 months ago

I am a ChatGPT Plus subscriber.

My ChatGPT account works normally.

I previously used Codex successfully.

After signing in on another device, my Codex authentication was invalidated and I was forced to re-authenticate.

Now every Codex login redirects to the phone verification page.

The phone number previously associated with my account is no longer accessible because it has been retired by the carrier.

I cannot complete the verification process and therefore cannot access Codex.

Could you please help recover access to my Codex account or update the verification method?

Thank you.

JediMasterKenobi · 2 months ago

I`m having the same issue, I´ve never used my phone number in ChatGPT before, I do have multiple accounts that I´ve used in my company, but none used my phone number, and Now I´m locked out from codex.

The worst part is that you can actually use your phone number for security verifications in chatgpt.com but not in the openAI auth system.

Wei952766 · 2 months ago

Same issue here. macOS (Darwin 25.5.0, arm64), ChatGPT Plus subscriber.

Symptoms:

  • ChatGPT works normally on both of my computers (web + app)
  • codex login and codex login --device-auth both redirect to phone verification
  • The phone number shown (+1 213-***-4729) may be an old number I used years ago, but I no longer have access to it and cannot receive verification codes. I don't remember ever providing it to OpenAI/ChatGPT.
  • Happens on two different machines, so it's not a local cache/browser issue

What I've tried (all failed):

  • Logged out of Codex, removed ~/.codex/auth.json, retried
  • Tried codex login --device-auth — same phone verification wall
  • Tried on a completely different computer — same result
  • Verified ChatGPT itself works fine with my actual credentials

Conclusion: Codex auth is requiring verification of a legacy phone number that I no longer control. There is no user-facing way to update or remove this number. ChatGPT login works normally; only Codex is broken.

Please provide a recovery path for users who have already proven account ownership through other authentication methods (Google OAuth, email, etc.) to update an obsolete phone number — or remove the phone verification gate for Codex entirely for authenticated paid users.

Account email: weih952766@gmail.com

sheunglys · 2 months ago

same here, it required me to add phone but showing phone number invalid ( the account i am using is a business team account )

hzsuyu · 2 months ago

Even my Google-billed ChatGPT subscription—which I pay for at full price—now requires SMS verification. Since my account was registered many years ago, I am unable to complete the two-factor SMS verification. How can I resolve this? Should I request a refund?

guilhermecamara · 2 months ago

same here, can't login because the codex auth is requiring old phone OTP. GPT login uses my passkey normally

gydx6 · 2 months ago

Big if true

PracticalSwan · 2 months ago

same, I was just using Codex fine in Free Tier but after I bought the Plus subscription and tried to log out and login again, I am stuck at the https://auth.openai.com/phone-otp/select-channel since I don't have access to my old phone number. THIS IS ANNOYING AS HELL. I bought the subscription to use Codex but now I feel like this is a SCAM.

lostmsu · 2 months ago

My account got fixed after I contacted support, but the message implied the issue (from early June 2026) should have been fixed for everyone.

PracticalSwan · 2 months ago

@lostmsu It still showing up for me even now. I can't login to Codex Desktop + CLI. I've contacted support and they said to create a new account BRUH. Like, I'm trying to tell him that I am stuck in that login flow because I don't have access to my old phone number and OpenAI support tellling me about the new sign-up process BS. I sent a reply, restating the MAIN ISSUE and they haven't replied yet.

Frustration levels getting high ngl. Should I just switch to Claude at this point?

neo1512-morpheus · 2 months ago

I'm running into the same problem.

pio57019 · 2 months ago

烦人的手机号码验证,根本就用不了,所以还是用回Claude Code省事

dcjalucy-afk · 11 days ago

I am experiencing the same issue on Windows with an active ChatGPT Plus account.

What works:

  • ChatGPT Web works normally
  • Codex Cloud/Web works normally
  • GitHub connection works
  • Microsoft Authenticator MFA is enabled
  • Codex Device Code Authorization is enabled
  • Codex CLI is installed successfully (codex-cli 0.147.0)

What fails:

  • codex login -> redirects to auth.openai.com/add-phone
  • codex login --device-auth -> also redirects to auth.openai.com/add-phone
  • Windows ChatGPT/Codex desktop login -> same mandatory phone-verification gate

I also enabled “Device Code Authorization for Codex” in ChatGPT Settings, generated a brand-new device code, and retried the entire device-auth flow, but it still hits the same phone verification page.

So this does not appear to be a CLI installation, browser, MFA, or device-auth configuration issue. It looks like an account/authentication gate specific to local Codex authentication, while Web/Cloud access is fine.

Has anyone found a working official workaround or received a fix from OpenAI for this exact state? If an OpenAI maintainer sees this, could you please confirm whether this is an account-side authentication flag/bug and whether there is any supported way to reset or clear it?

kangduu · 11 days ago

Topic: Feedback on issues related to the login process for Codex ChatGPT

Dear OpenAI team:

Hello!

I am a paid user of ChatGPT Plus. I encountered issues attempting to access the Codex function using the official ChatGPT login process. Although my Codex CLI was installed correctly, and I wasn’t trying to use an API key, after executing the codex login or codex login --device-auth command, the system always redirected me to the auth.openai.com/add-phone page, asking me to provide a phone number for verification.

I have confirmed the following points:

  1. I have a valid subscription to ChatGPT Plus.
  2. I have installed the official Codex CLI tool on my Windows system, and confirmed its installation by running the Get-Command codex command.
  3. Both the web version of ChatGPT and Codex Cloud/Web version function properly. The issue only occurs during the local Codex CLI authentication process.
  4. I have tried various methods to solve this issue, including reinstalling the Codex CLI, clearing local authentication data, using different browsers, or even switching to incognito mode. However, the problem persists.

In addition, based on feedback from other users, this issue has been present for some time, and it is considered a known issue related to authentication processes (such as #20161, #20320, #20813, #20884). Many users have requested the removal of the phone verification step, or the elimination of this requirement for paid users who have already been authenticated.

Since my account has been verified through other authentication methods (such as Google OAuth, email, etc.), I request OpenAI to provide me with one of the following solutions:

  1. Remove the phone verification step from the Codex login process for authenticated paid users.
  2. Provide an official mechanism for users to update or remove outdated phone numbers from the system.

I look forward to your response and solutions.

pio57019 · 10 days ago

找到不用手机登录,也不需要各种麻烦登录,是直接从网页GPT网站登录账号的办法了,自己去看吧: https://www.bilibili.com/video/BV134bi6aEVj

z2039 · 10 days ago
I have a phone number that can be verified by SMS. It can help you activate your account. Contact me on Telegram: @phomo0701

i come from china ,how to contact you please help me ,hoping can see your early reeplay hahaha