Read API key from codex config
Resolved 💬 2 comments Opened Apr 16, 2025 by mrturck Closed Apr 16, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
Instead of exporting the OPENAI_API_KEY in my current terminal, it would be nice to set it in a ~/.codex/config file that can be read from so that I don't need to re-export every session
2 Comments
Duplicate: https://github.com/openai/codex/issues/9
Dupe of https://github.com/openai/codex/issues/9