Skip to content
HN On Hacker News ↗

Claude Code model configuration

▲ 70 points 31 comments by yrds96 3w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

10 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 174
PEAK AI % 10% · §1
Analyzed
Apr 28
backend: pangram/v3.3
Segments scanned
1 windows
avg 174 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 174 words · 1 segments analyzed

Human AI-generated
§1 Human · 10%

This guide shows you three ways to change which Claude model you're using with Claude Code: the quick /model command for instant changes, the --model flag for one-time session changes, and environment variables to set your preferred model as the permanent default.Easiest method: Use /model commandThe simplest way to change models is to use the /model command directly within Claude Code. This works immediately without restarting your terminal.Supported modelsChange model for current session onlyUse the --model flag when starting Claude Code. Change default model for all future sessions Step 1) Check your shell type by running: echo $SHELLStep 2) Add model setting to your shell config:For ZSH users (macOS)For BASH users (Linux)Step 3) Apply the changes:Step 4) Close Terminal completely, then reopen it.Step 5) Start Claude Code in a fresh Terminal session: claude.Now your chosen model will be the default for all future Claude Code sessions.Related ArticlesHow up-to-date is Claude's training data?How large is the Claude API’s context window?Using Claude in Microsoft FoundryModel availability in Claude for GovernmentModels, usage, and limits in Claude Code