Answer: Add an export line setting ANTHROPIC_MODEL to your shell config file (~/.zshrc for zsh or ~/.bashrc for bash), then apply it with source and restart Terminal. For example, for Sonnet 4.5 on zsh: echo 'export ANTHROPIC_MODEL="claude-sonnet-4-5-20250929"' >> ~/.zshrc. Status: Confirmed Entry: tool/claude-apps/settings/set-default-model-env-var Revision: 4 Digest: sha256:fd82282d6dfaa22c (changes whenever the content changes) Timeline: Created: 2026-11-13T02:57:43Z Last changed: 2026-11-19T11:57:46Z (start command: — → claude .) Last verified: 2026-11-20T12:01:06Z Next check: 2026-11-21T12:01:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of environment variable | ANTHROPIC_MODEL | [1] | 2026-11-20 zsh config file | ~/.zshrc | [1] | 2026-11-20 bash config file | ~/.bashrc | [1] | 2026-11-20 apply zsh changes | source ~/.zshrc | [1] | 2026-11-20 apply bash changes | source ~/.bashrc | [1] | 2026-11-20 start command | claude . | [1] | 2026-11-20 Sources: [1] Anthropic. "Claude Code model configuration | Claude Help Center". https://support.claude.com/en/articles/11940350-claude-code-model-configuration Role: primary. Accessed: 2026-11-20T12:01:06Z Quote: "export ANTHROPIC_MODEL="claude-sonnet-4-5-20250929"" (Supports: environment variable) Quote: ">> ~/.zshrc" (Supports: zsh config file) Quote: ">> ~/.bashrc" (Supports: bash config file) Quote: "For ZSH: source ~/.zshrc" (Supports: apply zsh changes) Quote: "For BASH: source ~/.bashrc" (Supports: apply bash changes) Quote: "Start Claude Code in a fresh Terminal session: claude ." (Supports: start command) Snapshot SHA-256: c45cfcc97e9196f0910307addfebeeaa050f50471d5363009fefb1804d28240d (captured 2026-11-19T11:57:44Z) 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]. On this check the text of [1] was unchanged since 2026-11-19T11:57:46Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:01:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:01:06Z Last attempt: 2026-11-20T12:01:06Z Notes and limitations: Extracted automatically from a single official source (section "Change default model for all future sessions"). Related: https://latestn.com/tool/claude-apps/settings/set-instructions-for-claude How do I set my instructions for Claude? https://latestn.com/tool/claude-apps/settings/set-quiet-hours How do I set quiet hours in Claude? https://latestn.com/tool/claude-apps/settings/switch-light-dark-mode How do I switch between light and dark mode in Claude? https://latestn.com/tool/claude-apps/settings/set-api-key-env-var-permanently How do I set an ANTHROPIC_API_KEY environment variable permanently for Claude Code? https://latestn.com/tool/claude-apps/settings/set-break-reminder How do I set a break reminder in Claude? https://latestn.com/tool/claude-apps/settings/set-default-effort-level How do I set the default effort level for new conversations in Claude? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T11:57:46Z | changed | start command: — → claude . | [1] 2026-11-19T11:57:46Z | changed | check shell type: echo $SHELL → — | [1] 2026-11-18T11:57:42Z | changed | check shell type: — → echo $SHELL | [1] 2026-11-18T11:57:42Z | changed | apply bash changes: — → source ~/.bashrc | [1] 2026-11-18T11:57:42Z | changed | apply zsh changes: — → source ~/.zshrc | [1] 2026-11-18T11:57:42Z | changed | bash config file: — → ~/.bashrc | [1] 2026-11-18T11:57:42Z | changed | zsh config file: — → ~/.zshrc | [1] 2026-11-18T11:57:42Z | changed | shell check command: echo $SHELL → — | [1] 2026-11-18T11:57:42Z | changed | apply BASH changes: source ~/.bashrc → — | [1] 2026-11-18T11:57:42Z | changed | apply ZSH changes: source ~/.zshrc → — | [1] 2026-11-18T11:57:42Z | changed | BASH config file: ~/.bashrc → — | [1] 2026-11-18T11:57:42Z | changed | ZSH config file: ~/.zshrc → — | [1] 2026-11-15T11:59:43Z | changed | shell check command: — → echo $SHELL | [1] 2026-11-15T11:59:43Z | changed | apply BASH changes: — → source ~/.bashrc | [1] 2026-11-15T11:59:43Z | changed | apply ZSH changes: — → source ~/.zshrc | [1] 2026-11-15T11:59:43Z | changed | environment variable: — → ANTHROPIC_MODEL | [1] 2026-11-15T11:59:43Z | changed | Start command: claude . → — | [1] 2026-11-15T11:59:43Z | changed | Apply BASH changes: source ~/.bashrc → — | [1] 2026-11-15T11:59:43Z | changed | Apply ZSH changes: source ~/.zshrc → — | [1] 2026-11-15T11:59:43Z | changed | Environment variable: ANTHROPIC_MODEL → — | [1] 2026-11-13T02:57:43Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-apps/settings/set-default-model-env-var/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-apps/settings/set-default-model-env-var POST: https://latestn.com/dispute/tool/claude-apps/settings/set-default-model-env-var with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-apps/settings/set-default-model-env-var?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set a default Claude model for all future Claude Code sessions using environment variables? Revision 4, last verified 2026-11-20T12:01:06Z. https://latestn.com/tool/claude-apps/settings/set-default-model-env-var (accessed 2026-11-21T09:57:36Z). @misc{LatestN_tool_claude_apps_settings_set_default_model_env_var_r4, title = {How do I set a default Claude model for all future Claude Code sessions using environment variables?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-apps/settings/set-default-model-env-var}}, note = {Revision 4; digest sha256:fd82282d6dfaa22c; last verified 2026-11-20T12:01:06Z; accessed 2026-11-21T09:57:36Z} } 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-apps/settings/set-default-model-env-var