Answer: Set the `model` key in settings.json to a model alias or full model ID, for example `"model": "claude-sonnet-5"`. This sets the model every new session uses, though `--model` and `ANTHROPIC_MODEL` take precedence for a session. Status: Confirmed Entry: tool/claude-code/models/set-default-model Revision: 2 Digest: sha256:49033aa3fd768b5e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:49Z Last changed: 2026-11-16T12:12:44Z (precedence: — → --model) Last verified: 2026-11-20T12:25:24Z Next check: 2026-11-21T12:25:24Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of setting key | model | [1] | 2026-11-20 example value | claude-sonnet-5 | [1] | 2026-11-20 type | string, a model alias or full model ID | [1] | 2026-11-20 default | unset | [1] | 2026-11-20 scope | Any file | [1] | 2026-11-20 precedence | --model | [1] | 2026-11-20 Sources: [1] Anthropic. "All settings". https://code.claude.com/docs/en/settings-reference.md Role: primary. Accessed: 2026-11-20T12:25:24Z Quote: "Set the model every new session uses, so you don't have to pick one with `/model` each time." (Supports: setting key) Quote: ""model": "claude-sonnet-5"" (Supports: example value) Quote: "**Type**: string, a model alias or full model ID" (Supports: type) Quote: "**Default**: unset, so Claude Code uses your account's default model" (Supports: default) Quote: "**Scope**: [`Any file`](#scopes)" (Supports: scope) Quote: "`--model` takes precedence over [`ANTHROPIC_MODEL`](https://code.claude.com/docs/en/env-vars), and both take precedence over this key for one session" (Supports: precedence) Published: 2026-11-20T02:53:01Z Snapshot SHA-256: 9799f12057acf903fd64918707eb588e4cdf60a1bf4d4dadff10faed965629f4 (captured 2026-11-20T12:25:26Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:24Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:24Z Last attempt: 2026-11-20T12:25:24Z Notes and limitations: Extracted automatically from a single official source (section "`model`"). Related: https://latestn.com/tool/claude-code/models/set-model How do I set which model Claude Code uses? https://latestn.com/tool/claude-code/models/set-model-agent-sdk-session How do I set the model for a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/models/todo-tools-model-availability Which Claude models have the task-tracking tools (TodoWrite, TaskCreate, TaskGet, TaskUpdate, TaskList) available by default in Claude Code? https://latestn.com/tool/claude-code/models/pin-model-versions-foundry How do I pin Claude model versions when deploying Claude Code on Microsoft Foundry? https://latestn.com/tool/claude-code/models/redirect-request-to-model How do I send a request to a different model from a Claude Code mod hook? https://latestn.com/tool/claude-code/models/restrict-available-models How do I restrict which models are available in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T12:12:44Z | changed | precedence: — → --model | [1] 2026-11-13T03:05:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/set-default-model/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/models/set-default-model POST: https://latestn.com/dispute/tool/claude-code/models/set-default-model with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/set-default-model?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the default model in Claude Code settings.json? Revision 2, last verified 2026-11-20T12:25:24Z. https://latestn.com/tool/claude-code/models/set-default-model (accessed 2026-11-21T09:52:32Z). @misc{LatestN_tool_claude_code_models_set_default_model_r2, title = {How do I set the default model in Claude Code settings.json?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/set-default-model}}, note = {Revision 2; digest sha256:49033aa3fd768b5e; last verified 2026-11-20T12:25:24Z; accessed 2026-11-21T09:52:32Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/models/set-default-model