reasoningeffort.appHow much a model thinks, and what it costs

Codex reasoning effort: how to set model_reasoning_effort

Codex reads its reasoning effort from model_reasoning_effort in ~/.codex/config.toml. Change it for one session with /model --reasoning=high, or for one run with --config. Levels include low, medium, high, xhigh, max and ultra, depending on the model and client. Higher effort uses more tokens, so it uses up your plan's allowance or your API budget faster.

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_mode_reasoning_effort is unset, Plan mode uses its built-in default; an effort set when a subagent is spawned beats default_subagent_reasoning_effort.

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 ~/.codex/deep-review.config.toml 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:

  1. CLI flags and --config overrides
  2. Project .codex/config.toml files, closest folder first (trusted projects only)
  3. A profile file chosen with --profile
  4. Your ~/.codex/config.toml
  5. Cloud-managed defaults for your workspace
  6. /etc/codex/config.toml on Unix
  7. 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 effortOpenAI's example use
GPT-6 Luna · LowSmall edits and extracting fields when the result is clear
GPT-6 Luna · Extra highFinding updates across apps, problems with clear constraints
GPT-6.1 Terra · MediumNavigating desktop apps, focused fixes you can verify
GPT-6.2 Sol · MediumFixing bugs and adding features in an existing codebase
GPT-6.2 Sol · Extra highMultistep tasks that need testing and revision
GPT-6.2 Astra · LowTurning a clear brief into finished work
GPT-6.2 Astra · MediumPlanning and carrying out complex projects
GPT-6.2 Astra · Extra highOpen-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:

ModelCredits: input / cached / outputAPI key: output per 1M
GPT-6.2 Astra200 / 10 / 1,000$40
GPT-6.2 Sol50 / 2.5 / 250$10
GPT-6.1 Terra25 / 1.25 / 125$5
GPT-6 Luna2.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_agent_reasoning = true 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.

  1. Codex configuration reference
  2. Codex config basics and advanced config
  3. Codex slash commands
  4. Codex models and model selection
  5. Codex pricing and OpenAI API pricing