# How to set the model and effort (Low, Medium, High) for Claude Code and Codex

> Set Codex reasoning effort (low, medium, high) and the Claude Code model from config files, CLI flags, or mid-chat, and when higher effort is worth it.

Canonical: https://herdbell.com/blog/set-claude-code-and-codex-model-and-effort
Author: Herdbell team
Published: 2026-11-10
Last updated: 2026-11-30

Claude Code and Codex both let you pick a model and how hard it thinks. The setting lives in a different place for each, and a chat you already started keeps its model unless you resume it with a new one. This is what we found when building Herdbell, checked against current versions in November 2026. Names and options change quickly, so confirm against each tool's own help. For a wider comparison of the two, see [Codex vs Claude Code](https://herdbell.com/blog/claude-code-vs-codex).

## Claude Code

- **Default model:** the `model` key in `~/.claude/settings.json`, or the `--model` flag on one run.
- **Effort:** type `/effort <level>` in a session (or `/effort` for a slider), pass `--effort <level>` for one session, or set `effortLevel` in settings. Levels are `low`, `medium`, `high`, `xhigh` and `max`, depending on the model.
- **Which setting wins:** the `CLAUDE_CODE_EFFORT_LEVEL` environment variable, then the level you pick in the session, then `--effort`, then `effortLevel` in settings, then the model default. That is why a settings value can seem to do nothing.
- **Resume a chat with another model:** `claude -p --resume <session-id> --model <model> --effort <level> "your message"`. The same conversation continues on the new model.

## Codex

- **Default model and effort:** the top-level `model` and `model_reasoning_effort` keys in `~/.codex/config.toml`.
- **Effort levels:** values such as `low`, `medium`, `high` and `xhigh`. Which ones you can use depends on the model.
- **Mid-chat:** type `/model --reasoning=high` (or open `/model`) to change the model and reasoning effort in an active session.
- **One run:** `-m <model>` and `-c model_reasoning_effort="high"`.
- **Resume a chat with another model:** `codex exec resume -m <model> -c model_reasoning_effort="high" <session-id> "your message"`.
- **Which models you can pick:** Codex keeps the list, and the effort levels each model accepts, in a cache file under `~/.codex`.

A Codex chat that is open in the Codex app is held by that app, so a second program cannot write to it. Close it there first, or start a new chat.

## Which effort level should you use?

| Effort | Good for | Cost |
|---|---|---|
| Low | Quick edits, renames, simple questions | Fastest and cheapest |
| Medium | Everyday coding | Balanced |
| High | Hard bugs, refactors, design questions | Slower and uses more of your limit |
| Extra high and Max | The hardest problems, when High is not enough | Slowest, and uses the most of your limit |

Higher effort uses more of your usage limit, so keep it for the work that needs it. See [how to monitor Claude Code and Codex usage](https://herdbell.com/blog/monitor-claude-code-usage-mac-menu-bar).

## Doing this from Herdbell

Herdbell version 2 puts these choices in one place. When you start a chat, pick Claude or Codex, the model and the effort. When you reply to a finished chat, you can switch its model. Herdbell runs the same commands shown above and shows the model on every chat. Cursor and Antigravity pick their model inside their own apps, so Herdbell only displays it. See [what is new in Herdbell version 2](https://herdbell.com/blog/herdbell-version-2-whats-new).

## Common questions

### How do I change the model in Claude Code?
Set the model key in ~/.claude/settings.json for a default, use the --model flag for one run, or resume a chat with --resume and a new --model.

### How do I set reasoning effort in Codex?
Set model_reasoning_effort in ~/.codex/config.toml, pass -c model_reasoning_effort="high" for one run, or type /model --reasoning=high in an active session.

### Can I switch the model in the middle of a chat?
Yes. In Claude Code use /model or /effort, and in Codex use /model. You can also resume a chat with a different model.

### Why does the settings-file effort level not change anything in Claude Code?
Other settings win over it: the CLAUDE_CODE_EFFORT_LEVEL environment variable, the level picked in the session and the --effort flag all take priority over effortLevel in settings.

## Related
- [Herdbell: pricing](https://herdbell.com/#pricing)
- [All posts](https://herdbell.com/blog)
- [Herdbell version 2: what is new (the Wheel, model and effort picker, light mode)](https://herdbell.com/blog/herdbell-version-2-whats-new)
- [How to monitor Claude Code and Codex usage from your Mac menu bar](https://herdbell.com/blog/monitor-claude-code-usage-mac-menu-bar)
- [Claude Code vs Codex vs Cursor vs Antigravity: how to monitor all of them in one place](https://herdbell.com/blog/claude-code-vs-codex-vs-cursor)
- [How to run multiple Claude Code sessions at once and keep track of them](https://herdbell.com/blog/run-multiple-claude-code-sessions)
