1. Configure OpenAI keys
export OPENAI_API_KEY=$CBORG_API_KEY
export OPENAI_BASE_URL=https://api.cborg.lbl.gov2. Restart shell and verify key settings
env | grep OPENAI3. Start Codex
cd my-project
codexNote: The default model is o4-mini.
The gpt-5-codex model is also supported and is recommended for best performance.
The model can be configured in a .codex file or passing the –model argument., e.g.
alias codex=codex -m gpt-5-codexFor more information see OpenAI Codex Github