Not Asked for Login but goes straight to OPENAI_API_KEY missing

Resolved 💬 1 comment Opened Oct 17, 2025 by NiclasEich Closed Oct 17, 2025

What version of Codex is running?

0.1.2504301751

What subscription do you have?

Pro

Which model were you using?

None

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

When I start Codex, I do not get prompted to chose an authentication method but it goes straight to:

Missing openai API key.

Set the environment variable OPENAI_API_KEY and re-run this command.
You can create a key here: https://platform.openai.com/account/api-keys

Have tried some of the other commands like resume, config, etc. but no changes

What steps can reproduce the bug?

Install it (home-manager, brew), run codex

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗