codex does not respect .env on Mac
Resolved 💬 1 comment Opened Apr 16, 2025 by vessenes Closed Apr 16, 2025
carrying around API keys in the terminal environment isn't the best; dumping them on the command line history is definitely terrible.
Right now codex doesn't use dotenv to look for a key, and I think it should! Today I have to put into my bash history "export OPENAI_API_KEY=..." or automatically put all my various provider keys into every terminal's environment variables -- neither is great.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗