BUILD / switch-active-model-in-grok-build

Build

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

  1. Start or resume a session (grok or grok -c).
  2. From the shell, list catalog entries:
grok models
  1. In the TUI, type /model plus an id from that list (or /m), then send.
/model grok-build
/m grok-4.6
  1. With the prompt unfocused, press Ctrl+M to open the model picker (Keyboard Shortcuts). When the prompt is focused, Ctrl+M toggles 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+M while the prompt is focused toggles multiline (/multiline), not the model picker — Tab away from the prompt first, or use /model.
  • /effort changes reasoning effort on the current model; switch models with /model when you need a different catalog entry.