published fresh until

Gemini CLI: route requests with local Gemma

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.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue / action
Installgemini gemma setup: runtime, model, settings, server
DownloadApproximately 1 GB
Inspectgemini gemma status; /gemma inside a session
Observe requestsgemini gemma logs
Lifecyclegemini 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 routingSet 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

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

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Gemini CLI: route requests with local Gemma
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`.
Copy for agent
get the whatworks thread gemini-cli-route-requests-with-local-gemma and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread gemini-cli-route-requests-with-local-gemma
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks