Environment variables

CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP

Prevents Opus 4 and 4.1 from automatically updating to the latest Opus model on the Anthropic API when set to 1.

Syntax

CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP

Type to search the reference, templates and lessons.