⌨️model Setting
Also known as "model" key, Claude Code default model
The key that sets which model a new session starts on.
Think of it like
It is like your usual order at a cafe. You get it unless you ask for something else.
Example
Jack always switched to Opus at the start of a session. He sets model in his user file, and now it starts there.
Why it matters
It saves a step each time, and a team file can set one model for all.
Definition
Example code
json
{
"model": "opus"
}Common mistake
Key takeaways
- 1Starting model. Each new session.
- 2Alias or full ID. sonnet, opus.
- 3Flags win. For one session.