How do I set model_reasoning_effort in config.toml?
Add one line to ~/.codex/config.toml, or to a project's .codex/config.toml, which Codex loads only for trusted projects:
model = "gpt-6.2-sol"
model_reasoning_effort = "high"
# Optional: a different level for Plan mode and for subagents
plan_mode_reasoning_effort = "medium"
[agents]
default_subagent_reasoning_effort = "low"
The config reference lists the values as "such as low, medium, high, xhigh, max, or ultra" and adds: "Available levels depend on the model and client." When plan_ is unset, Plan mode uses its built-in default; an effort set when a subagent is spawned beats default_.
How do I change Codex reasoning effort for one session or one run?
In a running session, use /model: pick a model and effort from the list, or type it directly. Run /status to confirm.
/model --reasoning=high
/model gpt-6.2-astra --reasoning=medium
For one run, pass it on the command line. --config values are TOML, so quote the string:
codex --config model_reasoning_effort='"xhigh"'
For a saved setup, put the keys in a profile file such as ~/. and start Codex with --profile deep-review (or codex exec --profile deep-review "review this change").
Which reasoning effort setting wins in Codex?
The highest layer that sets model_reasoning_effort wins. Codex reads, highest first:
- CLI flags and
--configoverrides - Project
.codex/config.tomlfiles, closest folder first (trusted projects only) - A profile file chosen with
--profile - Your
~/.codex/config.toml - Cloud-managed defaults for your workspace
/etc/codex/config.tomlon Unix- Built-in defaults
A managed [models.new_thread] default is ignored, model and effort both, once you override either with --model, --config or --profile.
What do xhigh, max and ultra do in Codex?
They are the levels above high, and not every model has them. What the Codex models page said on December 1, 2026:
- xhigh (Extra High): with High, for "difficult work with multiple steps, sources, or tradeoffs".
- max: "gives the selected model more time to reason about a single task", for the hardest problems where depth matters more than speed or usage.
- ultra: uses subagents to handle parts of a task in parallel, for work you can split. GPT-6 Luna goes up to Max but not Ultra.
"Most tasks do not need Max or Ultra." In the CLI, /model, then "More reasoning…", shows a model's Max or Ultra options. The app's Light is low in the CLI and config.
Which reasoning effort does OpenAI suggest for each Codex model?
For GPT-6.2 Astra or Sol, start with the effort your client selects; for GPT-6 Luna, start at High; for GPT-6 Astra, start at Light (low). OpenAI's model selection guide pairs models and levels like this:
| Model and effort | OpenAI's example use |
|---|---|
| GPT-6 Luna · Low | Small edits and extracting fields when the result is clear |
| GPT-6 Luna · Extra high | Finding updates across apps, problems with clear constraints |
| GPT-6.1 Terra · Medium | Navigating desktop apps, focused fixes you can verify |
| GPT-6.2 Sol · Medium | Fixing bugs and adding features in an existing codebase |
| GPT-6.2 Sol · Extra high | Multistep tasks that need testing and revision |
| GPT-6.2 Astra · Low | Turning a clear brief into finished work |
| GPT-6.2 Astra · Medium | Planning and carrying out complex projects |
| GPT-6.2 Astra · Extra high | Open-ended problems that weigh trade-offs |
What does higher reasoning effort cost in Codex?
Higher effort "takes longer and uses more tokens", and Codex bills tokens. Signed in with ChatGPT, usage is priced in credits per token; with an API key, it follows API pricing. Rates per million tokens on December 1, 2026:
| Model | Credits: input / cached / output | API key: output per 1M |
|---|---|---|
| GPT-6.2 Astra | 200 / 10 / 1,000 | $40 |
| GPT-6.2 Sol | 50 / 2.5 / 250 | $10 |
| GPT-6.1 Terra | 25 / 1.25 / 125 | $5 |
| GPT-6 Luna | 2.5 / 0.25 / 12.5 | $0.50 |
On these four models, output costs 5 times input in credits, so reasoning lands on the expensive side. OpenAI says model choice, context, reasoning and tool use all affect usage, so prompt length alone doesn't predict it. /status shows the session's token usage; if you export Codex telemetry, turn.token_usage breaks out reasoning_output. What reasoning costs on each API is on the reasoning effort page.
How do I see or hide Codex's reasoning?
model_reasoning_summary sets the summary detail: auto, concise, detailed or none. hide_ hides reasoning events in the TUI and codex exec output, and show_raw_agent_reasoning shows raw reasoning when the model emits it. Hiding it doesn't change the effort or the tokens spent.
How was this page checked?
Every key, command, level and rate above was read on December 1, 2026 from the Codex docs below. We didn't run a Codex test of our own for this page.