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.

View original on GitHub ↗

4 Comments

gcp · 1 year ago

Related to issue #2450

gcp · 1 year ago

...and would be solved by https://github.com/openai/codex/issues/2478 I guess.

ImSingee · 1 year ago

You should set preferred_auth_method to apikey because of #2440

tibo-openai collaborator · 11 months ago