Feature Request: Allow disabling the random 'enter the number to continue' gate before login
Summary
Periodically when starting Codex CLI I am forced to type a random digit (e.g., "Enter the number 4 to continue") before I can even begin the login flow. Other launches skip it entirely. This extra confirmation can’t be disabled, so if you sign in/out frequently or script Codex, you get stuck babysitting the terminal until the numeric challenge appears. Please add a way to disable or persist the result so normal users aren’t interrupted.
Steps to reproduce
- Run
codexseveral times in a row (especially aftercodex logoutor when switching accounts). - Roughly every few launches, the CLI prints something like
To continue, enter the number 7 shown above:and waits for input. - Type the requested digit to proceed to the regular “Sign in with ChatGPT” screen.
Expected behavior
Once I trust the binary (or have toggled a config), Codex should go straight into the login picker without random numeric challenges. Automation scripts or users hopping in/out of sessions shouldn’t be blocked waiting to type a one-digit CAPTCHA.
Actual behavior
The CLI unpredictably stops with the numeric gate. You never know if a launch will require extra input or not, which makes “start Codex and keep working” unreliable. When you are juggling accounts or CI flows, you have to babysit the process just to type a single digit.
Impact
- Breaks automation or scripted login flows because they hang on the unexpected prompt.
- Adds friction for power users who reopen Codex dozens of times per day; each time, there’s a chance they must re-focus the terminal and type a digit for no benefit.
- Inconsistent UX: sometimes Codex opens immediately, sometimes it doesn’t, so there is no mental model.
Proposal
Expose a setting in ~/.codex/config.toml (e.g., disable_login_challenge = true) or remember that the user has successfully passed the challenge so it doesn’t reappear unless risk factors change. If the challenge is intended as bot protection, allow opting in/out (perhaps with a warning) so legitimate users can keep their workflows smooth.
Environment
codex-cli0.55.0- macOS 15 (Darwin 25.0.0 arm64)
- Auth: Sign in with ChatGPT (Plus & Pro accounts)
Additional context
This has been happening since at least 0.52.x. The inconsistency is what makes it painful: sometimes I can immediately log in, other times Codex halts waiting for “Enter the number N,” which I can’t predict or automate around.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗