Answer: Codex resolves conflicting configuration values by precedence, highest first: CLI flags and `--config` overrides, then project config files, profile files, user config, cloud-managed defaults, system config, and built-in defaults. Status: Confirmed Entry: tool/codex/settings/config-precedence Revision: 1 Digest: sha256:84438db9d6243baf (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:20Z Last changed: 2026-11-13T03:48:20Z Last verified: 2026-11-20T13:36:00Z Next check: 2026-11-21T13:36:00Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of highest precedence | CLI flags and `--config` overrides | [1] | 2026-11-20 second precedence | Project config files: `.codex/config.toml`, ordered from the project root down to your current working directory (closest wins; trusted projects only) | [1] | 2026-11-20 fourth precedence | User config: `~/.codex/config.toml` | [1] | 2026-11-20 fifth precedence | Cloud-managed `config.toml` defaults, when delivered for the signed-in workspace | [1] | 2026-11-20 sixth precedence | System config (if present): `/etc/codex/config.toml` on Unix | [1] | 2026-11-20 lowest precedence | Built-in defaults | [1] | 2026-11-20 Sources: [1] OpenAI. "Config basics". https://learn.chatgpt.com/docs/config-file/config-basic.md Role: primary. Accessed: 2026-11-20T13:36:00Z Quote: "1. CLI flags and `--config` overrides" (Supports: highest precedence) Quote: "2. Project config files: `.codex/config.toml`, ordered from the project root down to your current working directory (closest wins; trusted projects only)" (Supports: second precedence) Quote: "4. User config: `~/.codex/config.toml`" (Supports: fourth precedence) Quote: "5. Cloud-managed `config.toml` defaults, when delivered for the signed-in workspace" (Supports: fifth precedence) Quote: "6. System config (if present): `/etc/codex/config.toml` on Unix" (Supports: sixth precedence) Quote: "7. Built-in defaults" (Supports: lowest precedence) Snapshot SHA-256: e412546f255008ef41f38d18c88f7fa670e1a97774db17f0422cefd43dda28e7 (captured 2026-11-13T03:48:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:48:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:36:00Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:36:00Z Last attempt: 2026-11-20T13:36:00Z Notes and limitations: Extracted automatically from a single official source (section "Configuration precedence"). Related: https://latestn.com/tool/codex/settings/config-profiles How do I define and use profiles in Codex's config.toml? https://latestn.com/tool/codex/settings/config-toml-settings What settings can I configure in Codex config.toml? https://latestn.com/tool/codex/settings/configure-aws-credentials-bedrock How do I configure AWS credentials for Codex to connect to Amazon Bedrock? https://latestn.com/tool/codex/settings/codex-vs-editor-settings What is the difference between Codex settings and editor settings in the Codex IDE extension? https://latestn.com/tool/codex/settings/common-config-options How do I change the default model, approval prompts, or sandbox level in Codex? https://latestn.com/tool/codex/settings/config-file-location Where is the Codex configuration file located and how do I open it? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/config-precedence/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/config-precedence POST: https://latestn.com/dispute/tool/codex/settings/config-precedence with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/config-precedence?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Codex decide which configuration value to use when settings conflict? Revision 1, last verified 2026-11-20T13:36:00Z. https://latestn.com/tool/codex/settings/config-precedence (accessed 2026-11-21T09:53:42Z). @misc{LatestN_tool_codex_settings_config_precedence_r1, title = {How does Codex decide which configuration value to use when settings conflict?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/config-precedence}}, note = {Revision 1; digest sha256:84438db9d6243baf; last verified 2026-11-20T13:36:00Z; accessed 2026-11-21T09:53:42Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/config-precedence