Answer: You can set the model in several ways, in order of priority: during a session with `/model `, at startup with `claude --model `, via the `ANTHROPIC_MODEL=` environment variable, or permanently in your settings file using the `model` field. Status: Confirmed Entry: tool/claude-code/models/set-model Revision: 3 Digest: sha256:59e48301be329b55 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:44Z Last changed: 2026-11-20T12:22:16Z (Default for new sessions: — → ANTHROPIC_DEFAULT_MODEL=) Last verified: 2026-11-20T12:22:16Z Next check: 2026-11-21T12:22:16Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of During session | /model | [1] | 2026-11-20 At startup | claude --model | [1] | 2026-11-20 Environment variable | ANTHROPIC_MODEL= | [1] | 2026-11-20 Settings field | model | [1] | 2026-11-20 Default for new sessions | ANTHROPIC_DEFAULT_MODEL= | [1] | 2026-11-20 Sources: [1] Anthropic. "Model configuration". https://code.claude.com/docs/en/model-config.md Role: primary. Accessed: 2026-11-20T12:22:16Z Quote: "use `/model ` to switch immediately" (Supports: During session) Quote: "launch with `claude --model `" (Supports: At startup) Quote: "set `ANTHROPIC_MODEL=`" (Supports: Environment variable) Quote: "configure permanently in your settings file using the `model` field" (Supports: Settings field) Quote: "set `ANTHROPIC_DEFAULT_MODEL=`" (Supports: Default for new sessions) Published: 2026-11-20T02:51:47Z Snapshot SHA-256: 0eb85bfd05da194833d741b15172de8430cee5920a4ecd11ec07787db8d2c0cf (captured 2026-11-20T12:22:16Z) 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:22:16Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:16Z Last attempt: 2026-11-20T12:22:16Z Notes and limitations: Extracted automatically from a single official source (section "Setting your model"). Related: 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/permissions-and-security/additional-working-directories How do I let Claude Code read and edit files outside the working directory? 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/claude-code/models/set-default-model How do I set the default model in Claude Code settings.json? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:22:16Z | changed | Default for new sessions: — → ANTHROPIC_DEFAULT_MODEL= | [1] 2026-11-19T12:17:44Z | changed | Default for new sessions: ANTHROPIC_DEFAULT_MODEL= → — | [1] 2026-11-13T03:04:44Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/models/set-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-model POST: https://latestn.com/dispute/tool/claude-code/models/set-model with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/models/set-model?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set which model Claude Code uses? Revision 3, last verified 2026-11-20T12:22:16Z. https://latestn.com/tool/claude-code/models/set-model (accessed 2026-11-21T09:52:18Z). @misc{LatestN_tool_claude_code_models_set_model_r3, title = {How do I set which model Claude Code uses?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/models/set-model}}, note = {Revision 3; digest sha256:59e48301be329b55; last verified 2026-11-20T12:22:16Z; accessed 2026-11-21T09:52:18Z} } 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-model