Switch the active model in Grok Build
Switch the active model in Grok Build
/model <id> (alias /m) switches the model for the current Grok Build session. Official: Modes and Commands, Overview, CLI Reference.
List and pick
- Start or resume a session (
grokorgrok -c). - From the shell, list catalog entries:
grok models
- In the TUI, type
/modelplus an id from that list (or/m), then send.
/model grok-build
/m grok-4.6
- With the prompt unfocused, press
Ctrl+Mto open the model picker (Keyboard Shortcuts). When the prompt is focused,Ctrl+Mtoggles multiline instead.
Headless and defaults
| Path | How |
|---|---|
| One headless run | grok -p "…" -m <id> |
| Default for new sessions | [models] default = "…" in ~/.grok/config.toml |
| Custom / third-party endpoint | Define [model.<name>] then switch with /model <name> — see Add a custom model in Grok Build |
After editing config, run grok inspect so you can see which sources loaded.
Pitfalls
- Pressing
Ctrl+Mwhile the prompt is focused toggles multiline (/multiline), not the model picker —Tabaway from the prompt first, or use/model. /effortchanges reasoning effort on the current model; switch models with/modelwhen you need a different catalog entry.