Codex uses logged in (non-Plus) session instead of OpenAI API
Resolved 💬 4 comments Opened Aug 25, 2025 by gcp Closed Sep 3, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.23.0
Which model were you using?
gpt-5
What platform is your computer?
Linux 6.14.0-28-generic x86_64 x86_64
What steps can reproduce the bug?
Start codex, any prompt
What is the expected behavior?
Codex starts working
What do you see instead?
🖐 To use Codex with your ChatGPT plan, upgrade to Plus: https://openai.com/chatgpt/pricing.
Additional information
Logging out fixes this, but then every subsequent session asks to log in again.
4 Comments
Related to issue #2450
...and would be solved by https://github.com/openai/codex/issues/2478 I guess.
You should set
preferred_auth_methodtoapikeybecause of #2440Please set your
preferred_auth_method, see https://github.com/openai/codex/blob/3baccba0ac2026d3be9de9378913ad6774facb03/docs/config.md?plain=1#L616