⌨️CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP
Also known as CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP=1
Set to 1, it keeps old Opus 4 names from moving to the new Opus.
Think of it like
It is like you ask the shop not to swap your old book for the new one.
Example
Lucy is checking how an old test ran on Opus 4.1. With this set, her request really goes to Opus 4.1, not to the newest Opus.
Why it matters
To test against an old model, you need that old model, not the new one in its place.
Definition
Example code
bash
export CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP=1
claude --model claude-opus-4-1Common mistake
Key takeaways
- 1Opus 4 and 4.1. The only ones moved.
- 2Anthropic API only. Not cloud providers.
- 31 stops it. You get what you ask for.