{"name":"ANTHROPIC_DEFAULT_SONNET_MODEL","slug":"anthropic-default-sonnet-model","family":"env","title":"Environment variables","noun":"environment variable","description":"Model ID that the `sonnet` alias resolves to, and that `opusplan` uses when Plan Mode is not active. See [Model configuration](\/docs\/en\/model-config#environment-variables)","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.207","released_at":"2026-07-10 22:25:09","spans":1}},"aliases":[],"entries":[{"version":"2.1.293","anchor":"haiku-models-no-longer-exempt-from-the-sonnet-default-probe","heading":"Haiku model names now go through the third-party Sonnet default check","line":"On third-party providers, Haiku model names are no longer skipped by the check that sets up the Sonnet default model","released_at":"2026-10-07 17:18:04","reason":"found in this entry's text, named in this entry"},{"version":"2.1.288","anchor":"auto-mode-classifier-ignores-anthropic-default-sonnet-model","heading":"Auto mode ignores an excluded model set in ANTHROPIC_DEFAULT_SONNET_MODEL","line":"If `ANTHROPIC_DEFAULT_SONNET_MODEL` names an excluded model, auto mode's classifier uses the Sonnet 5 default and logs the reason once","released_at":"2026-10-02 18:30:40","reason":"found in this entry's text, named in this entry"},{"version":"2.1.227","anchor":"bedrock-and-vertex-share-one-stale-model-check","heading":"Bedrock and Vertex share one stale-model check","line":"Bedrock and Vertex now share one check for outdated pinned model variables.","released_at":"2026-08-10 20:56:57","reason":"found in this entry's text"},{"version":"2.1.207","anchor":"default-model-upgraded-to-claude-opus-4-8","heading":"Default Model Upgraded to Claude Opus 4.8","line":null,"released_at":"2026-07-10 22:25:09","reason":"found in this entry's text"},{"version":"2.1.207","anchor":"model-env-var-whitespace-trimming","heading":"Model Env Var Whitespace Trimming","line":null,"released_at":"2026-07-10 22:25:09","reason":"found in this entry's text"}],"entries_total":5,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"amazon-bedrock","title":"Claude Code on Amazon Bedrock","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"claude-platform-on-aws","title":"Claude Code on Claude Platform on AWS","documented":false},{"source":"claude-code","path":"claude-security","title":"Scan your codebase for vulnerabilities","documented":false},{"source":"claude-code","path":"google-vertex-ai","title":"Claude Code on Google Cloud's Agent Platform","documented":false},{"source":"claude-code","path":"llm-gateway-connect","title":"Connect Claude Code to an LLM gateway","documented":false},{"source":"claude-code","path":"microsoft-foundry","title":"Claude Code on Microsoft Foundry","documented":false},{"source":"claude-code","path":"model-config","title":"Model configuration","documented":false},{"source":"claude-code","path":"permission-modes","title":"Choose a permission mode","documented":false}],"docs_total":11,"gates":[],"related":[{"name":"ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","slug":"anthropic-default-sonnet-model-description","description":"Display description for the pinned Sonnet model in the `\/model` picker. When not set, the row shows a default description that begins `Custom Sonnet model`. See [Model configuration](\/docs\/en\/model-config#customize-pinned-model-display-and-capabilities)"},{"name":"ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","slug":"anthropic-default-sonnet-model-name","description":"Display name for the pinned Sonnet model in the `\/model` picker. When not set, the row shows the model's name if Claude Code recognizes the pinned ID, and the pinned ID otherwise. See [Model configuration](\/docs\/en\/model-config#customize-pinned-model-display-and-capabilities)"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/anthropic-default-sonnet-model","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}