Claude Opus 4.6 with the 1M context window can be used in Claude Code in two ways.
claude --model claude-opus-4-6\[1m\]This sets the model for the current session only, without changing your default.
Start Claude Code normally:
claudeThen use the slash command to switch models:
/model claude-opus-4-6[1m]
Note:
/modelsaves the choice as your new default. To use a model temporarily without changing your default, use--modelat launch (Option 1).
If /model or another setting change overwrote your default, restore it with:
sed -i '' 's/"model": ".*"/"model": "claude-opus-4-6[1m]"/' ~/.claude/settings.json