Codex vs Claude Code: How to set the model and reasoning effort in each
Developers using both Codex and Claude Code often find the same task behaves differently across sessions, usually because of the model and reasoning effort a session started with rather than the tool itself. Both tools allow these settings to be configured globally, per project, and per session, though their file names and keys differ. Claude Code supports model aliases such as sonnet, opus, and haiku, along with a planning-specific option, while its effort levels range from low to max with some defaults varying by model. Several pitfalls can override expected behavior, including an exported ANTHROPIC_MODEL environment variable taking precedence over settings files and certain effortLevel values being ignored in user settings for newer models. The article compares these configuration points side by side based on documentation read in December 2026.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in