How to Set Your Default Model in Claude Code (and Why Claude Sometimes Switches Mid-Chat)

Two support docs landed in the release notes this week that explain stuff a lot of you have probably run into without knowing why. One's a handy trick, the other's an explanation for something that might've looked like a bug.

Two support docs landed in the release notes this week that explain stuff a lot of you have probably run into without knowing why. One's a handy trick, the other's an explanation for something that might've looked like a bug.

Setting Your Default Model in Claude Code

There are three ways to pick which model Claude Code runs on, and they work in Claude Desktop and the terminal:

  • Quick switch, this session only: type /model inside a Claude Code session and pick from the menu. Takes effect immediately. Run /status anytime to see which model you're currently on.
  • One-off session, terminal only: launch with a flag, e.g. claude --model claude-sonnet-5-5.
  • Permanent default: set the ANTHROPIC_MODEL environment variable in your shell config. Run echo $SHELL to check which shell you're on — Mac default (zsh) uses ~/.zshrc, Linux default (bash) uses ~/.bashrc. Add a line like export ANTHROPIC_MODEL="claude-opus-5-5", save, run source on that file, then fully close and reopen your terminal before starting claude again.

Current model IDs if you want to set one directly: claude-fable-5-2, claude-haiku-5-5, claude-sonnet-5-5, claude-opus-5-5, plus older ones like claude-opus-5, claude-sonnet-5, and claude-opus-4-5-20251101 still work if you're pinning to a specific version.


Why Claude Sometimes Switches Models Mid-Conversation

If you've been running Opus 5 or Opus 5.5 and suddenly noticed Claude answered with a different model with no warning you asked for it — this is why. Opus 5 and 5.5 run safety classifiers on every request, and on everything Claude reads along the way: memory, connector content, web search results, files. That means a fallback can get triggered by content you didn't even type yourself.

Most requests are completely unaffected. The narrow set that trips it:

  • Cybersecurity: exploit generation, binary-based vulnerability scanning, and penetration testing can fall back to Opus 4.8. Regular secure-coding and source-code vulnerability scanning are still fine on Opus 5/5.5.
  • Biology: Opus 5 doesn't fall back here at all. Opus 5.5 falls back to Opus 5 for dual-use requests in virology, toxicology, and molecular design — everyday health/education questions are unaffected.
  • Frontier LLM development (Opus 5.5 only): falls back to Opus 5 for a small set of capabilities like kernel development for certain ML accelerators.
  • Distillation attempts (trying to extract Claude's internal reasoning) get blocked outright, no fallback. Just asking Claude to explain its reasoning is fine.

When it happens, you get a notice that the model switched, and the response is labeled with whichever model actually answered. The model picker then stays on the less capable model for the rest of that conversation — you can switch back manually anytime, though that can re-trigger the same fallback if the flagged message is still sitting in the thread. Editing the earlier message before retrying usually clears it.

Watch Out

  • This is on by default the first time you ever select Opus 5 or 5.5. To turn it off: Settings > Capabilities on claude.ai, or Config > MODEL & OUTPUT inside Claude Code — toggle "Switch models when a message is flagged." With it off, a flagged message just pauses the conversation instead of auto-switching, and you edit/retry or send it to a lesser model yourself.
  • Billing isn't uniform: refusals before any output are only charged for the biology, distillation, and frontier-LLM classifiers (others aren't charged). Midstream blocks charge input + streamed output at the original model's rate. A successful fallback response is billed separately at the responding model's rate.
  • On the API this is off by default — devs have to opt in and configure fallbacks themselves. Until then a flagged API call just returns a 200 with a stop reason.
  • If you hit a genuine false-block on legit cybersecurity or life-sciences work, there's a Cyber Verification Program and a Life Sciences Verification Program you can apply to. Opus 5.5 isn't in the Cyber program yet; existing CVP members on Opus 4.8 get Opus 5 with fewer cyber restrictions.

Key Takeaways

  • /model for a quick switch, --model flag for one session, ANTHROPIC_MODEL env var if you want a permanent default so you stop typing /model every time.
  • If Claude Code unexpectedly answers on a weaker model, it's probably the safety classifier, not a glitch — check the response label.
  • You can turn the auto-switch off in Settings > Capabilities (or Config > MODEL & OUTPUT in Claude Code) if you'd rather have it pause and ask than silently downgrade.
  • Got incorrectly blocked on something legit? Use "Send feedback" to report it.

Source

Claude release notes


Source: support.claude.com

We break down Claude Code news like this every day in the free community. Join the crew on Skool.