Answer: You override a Codex CLI config setting for a single command by passing `-c key=value` at the command line, which takes precedence for that invocation. Status: Confirmed Entry: tool/codex/settings/override-config-per-command Revision: 1 Digest: sha256:450cd10d98364282 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:41Z Last changed: 2026-11-13T03:48:41Z Last verified: 2026-11-20T13:36:23Z Next check: 2026-11-21T13:36:23Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of override flag | -c key=value | [1] | 2026-11-20 default config file | ~/.codex/config.toml | [1] | 2026-11-20 Sources: [1] OpenAI. "Command line options". https://learn.chatgpt.com/docs/developer-commands.md?surface=cli Role: primary. Accessed: 2026-11-20T13:36:23Z Quote: "Any `-c key=value` overrides you pass at the command line take precedence for that invocation." (Supports: override flag) Quote: "The CLI inherits most defaults from `~/.codex/config.toml`." (Supports: default config file) Snapshot SHA-256: c03e3a1408d1c55fbbe838c81e4e98d0eca65bde195e39a41c8d1fd8d340b5e3 (captured 2026-11-18T13:30:25Z) 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-18T13:30:25Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:36:23Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:36:23Z Last attempt: 2026-11-20T13:36:23Z Notes and limitations: Extracted automatically from a single official source (section "How to read this reference"). Related: https://latestn.com/tool/codex/settings/pause-commit-monitoring Can I pause commit monitoring in Daybreak Defense Factory? https://latestn.com/tool/codex/settings/project-doc-fallback-filenames How do I customize the fallback filenames Codex looks for instead of AGENTS.md? https://latestn.com/tool/codex/settings/requirements-toml-location Where is the requirements.toml file located for Codex on Linux, macOS, and Windows? https://latestn.com/tool/codex/settings/move-diagnostic-logs-local How do I move Codex diagnostic logs to local disk when using an NFS home? https://latestn.com/tool/codex/settings/one-run-settings-override How do I change Codex settings for a single run instead of permanently? https://latestn.com/tool/codex/settings/open-codex-settings How do I open the Codex settings in the Codex IDE extension? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:41Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/override-config-per-command/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/override-config-per-command POST: https://latestn.com/dispute/tool/codex/settings/override-config-per-command with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/override-config-per-command?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I override a Codex CLI config setting for a single command? Revision 1, last verified 2026-11-20T13:36:23Z. https://latestn.com/tool/codex/settings/override-config-per-command (accessed 2026-11-21T09:54:54Z). @misc{LatestN_tool_codex_settings_override_config_per_command_r1, title = {How do I override a Codex CLI config setting for a single command?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/override-config-per-command}}, note = {Revision 1; digest sha256:450cd10d98364282; last verified 2026-11-20T13:36:23Z; accessed 2026-11-21T09:54:54Z} } 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/override-config-per-command