Verified Codex
Switch whole configurations with --profile
What it does
--profile name layers $CODEX_HOME/name.config.toml over the base config — keep one file per scenario such as cheap mode or strict sandbox.
How
# put model etc. in ~/.codex/cheap.config.toml
codex --profile cheap
How much to trust this
| Applies to | ≥ 0.163.0 |
|---|---|
| Verified | Oct 17, 2026 · v0.163.0 · tested locally 本机 codex-cli 0.163.0 的 --help 中存在相关参数 |
| Depends on | --profileCODEX_HOME |
| Source | https://developers.openai.com/codex/cli/reference (official_docs) |