Understand model configuration precedence
mainModel settings are applied based on the following priority. If a higher-priority source is present, the lower-priority source is ignored.
- Highest Priority:
_meta.claudeCode.options.settingsprovided by the caller in thesessions/createrequest. - Fallback Priority:
CLAUDE_MODEL_CONFIGenvironment variable (used only if the caller provides no settings).