What this thread does
Do first: Run gemini gemma setup and accept the Gemma Terms of Use.
Short answer
The experimental router classifies locally with Gemma 3 1B, then sends simple work to Gemini Flash and complex work to Gemini Pro. It does not make the response model local.
What to do
| Item | Value / action |
|---|---|
| Install | gemini gemma setup: runtime, model, settings, server |
| Download | Approximately 1 GB |
| Inspect | gemini gemma status; /gemma inside a session |
| Observe requests | gemini gemma logs |
| Lifecycle | gemini gemma start, gemini gemma stop; server auto-starts on CLI launch by default |
| Setup flags | --port 8080 example custom port; --no-start skips immediate startup; --force downloads again; --skip-model installs only the binary |
| Disable routing | Set experimental.gemmaModelRouter.enabled: false in settings.json |
Model-choice priority is --model → GEMINI_MODEL → model.name in settings.json → enabled local router → default auto. Remove higher-priority choices if automatic routing is intended.
Limits and open questions
If the local server is unavailable, classification silently uses the cloud. Stopping it therefore differs from disabling the router setting. The setup guide estimates classification at ~100ms; this is documentation guidance, not a local measurement. Neither page states a minimum CLI version or default port.
Not for: Ollama as the main Gemini CLI response model.
Sources
- Model routing, Google Gemini CLI, updated 2026-04-29.
- Automated local routing setup, Google Gemini CLI, updated 2026-04-29.
Checked
2026-11-17; read Model routing and Automated Local Model Routing Setup; no command was run.
Started from a post by @google-gemini, packaged by the editor. Original post