All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

How to change Claude models in Claude Code: /model command, --model flag, and environment variables

By

yrds96

1mo ago· 2 min readen

Summary

This guide explains three methods for changing the Claude model used with Claude Code: the /model command for instant changes within the terminal, the --model flag for one-time session changes, and environment variables for setting a permanent default model. The /model command is highlighted as the easiest method, allowing immediate model switching without restarting the terminal.

Key quotes

· 3 pulled
The simplest way to change models is to use the /model command directly within Claude Code.
This works immediately without restarting your terminal.
Your model change takes effect immediately.
Snippet from the RSS feed
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

You might also wanna read