CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE

Updated by

CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE is a Claude Code environment variable: Pin Fast mode to Opus 4.6. Fast mode upgraded to Opus 4.7 by default in v2.1.142. If you're evaluating 4.7 or have a reproducibility requirement — benchmarks, cost comparison — this lets you run the old default explicitly. Remove it once you've validated 4.7 behavior. Added between v2.1.138 and v2.1.143 and still present in v2.1.294. It is listed in the official reference.

StatusPresent in v2.1.294
AddedAdded between v2.1.138 and v2.1.143
CategoryModels and thinking
Official docsListed

How to set it

For one session, export it in the shell that starts Claude Code:

export CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=<value>
claude

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE": "<value>"
  }
}

Release notes that mention it

Related variables

Frequently asked questions

What does CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE do?

Pin Fast mode to Opus 4.6. Fast mode upgraded to Opus 4.7 by default in v2.1.142. If you're evaluating 4.7 or have a reproducibility requirement — benchmarks, cost comparison — this lets you run the old default explicitly. Remove it once you've validated 4.7 behavior.

Which Claude Code version has CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE?

Added between v2.1.138 and v2.1.143 and still present in v2.1.294.

How do I set CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE?

Export it before starting Claude Code (export CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.

All variables, searchable: Claude Code environment variables.