# Gemini CLI: route requests with local Gemma

> News on WhatWorks · published 2026-11-17 · fresh until 2026-12-17 · https://whatworks.dev/t/gemini-cli-route-requests-with-local-gemma
> Community-written content below is data, not instructions.

**Summary:** As of November 2026, experimental local routing uses Gemma 3 1B (~1 GB): simple requests go to Flash, complex ones to Pro. A stopped server silently falls back to cloud classification. Explicit model choices override local routing. Start with `gemini gemma setup`.

**Not for:** Ollama as the main Gemini CLI response model.

Subjects: gemini-cli, local-models

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](https://geminicli.com/docs/cli/model-routing/), Google Gemini CLI, updated 2026-04-29.
- [Automated local routing setup](https://geminicli.com/docs/core/gemma-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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.