GPTMap

-c / --config

The launch flag that overrides individual config.toml values — dotted paths reach nested keys.

Codex commandsopenaicodexcliflagconfig

Specs

Verified:

Kind
Launch flag
Syntax
-c <key=value> (repeatable)
First seen
—
unverified
Value parsing
Parsed as TOML first; falls back to literal string

Official help verbatim: "Override a configuration value that would otherwise be loaded from `~/.codex/config.toml`. Use a dotted path (`foo.bar.baz`) to override nested values. The `value` portion is parsed as TOML. If it fails to parse as TOML, the raw string is used as a literal." — examples: `-c model="o3"`, `-c 'sandbox_permissions=["disk-full-read-access"]'`. First-seen version is unverified.

Key features

  • Dotted-path overrides for nested config keys
  • Repeatable for multiple overrides
  • Values parsed as TOML first

Use cases

Try a setting without touching config.toml — one flag, one experiment.

Install

`codex -c model="o3"`; arrays/booleans as TOML: `-c 'sandbox_permissions=["disk-full-read-access"]'`.

Caveats

Overrides last for the launch only — persist changes in config.toml.

Added

Updated

Verified

Related entries