Install
InstallNode.js and Codex CLI from official.
Configure
Add the following to~/.codex/config.toml. Create them if any do not exist.
model can be changed to gpt-5 if preferred.
Authentication
Change~/.codex/auth.json, create if it does not exist.