Since late April 2026, signing in to Codex has come with an extra step for many people: before the command line, the editor extension or the desktop app lets you in, OpenAI asks you to add and verify a phone number. Email and authenticator apps don’t replace it. If the code arrives, it takes a minute. If it doesn’t, the error messages are terse and the forum threads are long.
This guide explains why Codex asks for a number, which numbers OpenAI accepts, what each common error means and what to try. It’s based on OpenAI’s help center and its support team’s statements as of October 2026.
Why does Codex ask for a phone number?
OpenAI’s help center now says phone verification isn’t generally needed to create an account or use ChatGPT, but you may be asked for it when you open Codex. Reports of the step started in late April 2026 across Codex sign-ins: the CLI login, device sign-in in the browser, editor extensions and the desktop app.
OpenAI’s support team has said Codex needs stronger account security than chat. It listed several possible triggers: updated security policies, anti-abuse checks, changes to your region or account, suspicious logins, and plan or feature requirements. In other words, there’s no single switch you can flip to avoid it; it depends on your account and the moment.
Separately, if you sign in with an email and password, Codex cloud asks you to set up multi-factor authentication. That’s a different check and doesn’t replace phone verification.
OpenAI’s rules on numbers
Codex uses your OpenAI account, so the same rules apply as for ChatGPT and the API:
- Mobile numbers only. Landlines, VoIP numbers, Google Voice and premium numbers are refused.
- SMS or WhatsApp. The code comes by text, or by WhatsApp in some countries. There’s no email or voice option.
- Three uses per number. One number can be used for verification at most three times.
- Permanent. The verified number can’t be changed later.
That last rule matters more than it looks. The number you verify becomes part of the account, and future checks will use it.
Errors and what they mean
invalid_phone_number
Usually the format or the number type. Pick the country from the list and type the number without the country code or a leading 0. If the format is right and the error stays, the number type is likely the problem.
“The verification code could not be sent to this phone number”
OpenAI refused to text the number. Try a different mobile number rather than retrying the same one.
“We’ve detected suspicious behavior from phone numbers similar to yours”
This is a fraud control, not a delivery failure. OpenAI has seen suspicious attempts from numbers like yours. Retrying won’t change it; use a different number or contact support.
“This phone number is already linked to the maximum number of accounts”
The number has reached the limit of three verifications. Use another number. Our ChatGPT phone verification guide covers this error and the others shared with ChatGPT.
Codex asks for an old number you no longer have
In June 2026, OpenAI confirmed a sign-in bug that asked some Codex users to verify an old or unreachable number, and fixed it account by account during the summer. If you still see a request for a number you can’t access, contact support rather than adding new numbers.
Fixes, step by step
- Restart the sign-in. Close the browser tab, start the Codex login again and re-enter the number.
- Change the browser context. Try a private window or another browser, clear the cache and make sure you’re signed in to the right OpenAI account with the right login method.
- Wait between attempts. Requesting codes too often gets you rate limited, and each attempt during the wait can extend it.
- Use WhatsApp if it’s offered for your own number.
- Write to OpenAI support. Include the exact error, the time and time zone, and where you signed in (desktop app, CLI or device sign-in in the browser).
Can an API key get you around it?
Not really. Codex can work with an API key, but creating your first API key on OpenAI’s developer platform requires phone verification too. Either way, the account ends up with a verified number.
Verifying without your personal number
If you’d rather not tie your personal number to an OpenAI account for good, you can try a virtual number for ChatGPT; Codex uses the same OpenAI account, so it’s the same verification. Be clear about the trade-offs: OpenAI refuses VoIP numbers and decides which numbers get a code, and the number can’t be changed later. If no code arrives, the price goes back to your balance. Ask for the code by SMS, since virtual numbers don’t receive WhatsApp messages. We explain how platforms tell number types apart in What is a non-VoIP number?
If Codex is part of your daily work, weigh that permanence. A number you can still reach in a year is the safer choice for an account you can’t afford to lose.