Gemini CLIconfigurationbuilt-in
/model set
Choose and optionally persist the active model. Pass --persist to save as default.
Syntax
/model set [--persist]Example
/model set gemini-2.5-pro --persistWhen to use
- ▸Switching to Gemini 2.5 Pro for complex tasks
- ▸Persisting a model choice for future sessions
More Gemini CLI commands
parallel-agents
/agents
Manage subagents — list built-in, local, and remote subagents; enable, disable, or configure.
session-management
/clear
Clear the terminal screen and visible history (same as Ctrl+L).
setup
/commands
List and reload custom .toml slash commands. Run /commands reload after adding or modifying commands without restarting.
context-management
/compress
Replace the current chat context with a summary to save tokens and free up context window space.