Answer: The model selection precedence in Gemini CLI is: first the `--model` command-line flag, then the `GEMINI_MODEL` environment variable, then `model.name` in `settings.json`, then the local Gemma model (experimental) if the local model router is enabled, and finally the default model `auto`. Status: Confirmed Entry: tool/gemini-cli/models/model-selection-precedence Revision: 1 Digest: sha256:e23d0dfe06d6b8df (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:36Z Last changed: 2026-11-13T03:17:36Z Last verified: 2026-11-20T12:51:07Z Next check: 2026-11-21T12:51:07Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of First precedence | --model | [1] | 2026-11-20 Second precedence | GEMINI_MODEL | [1] | 2026-11-20 Third precedence | model.name | [1] | 2026-11-20 Fourth precedence | Local model (experimental) | [1] | 2026-11-20 Fifth precedence | Default model | [1] | 2026-11-20 Default model value | auto | [1] | 2026-11-20 Sources: [1] Google. "Model routing". https://geminicli.com/docs/cli/model-routing.md Role: primary. Accessed: 2026-11-20T12:51:07Z Quote: "**`--model` command-line flag:** A model specified with the `--model` flag" (Supports: First precedence) Quote: "**`GEMINI_MODEL` environment variable:** If the `--model` flag is not used," (Supports: Second precedence) Quote: "**`model.name` in `settings.json`:** If neither of the above are set, the" (Supports: Third precedence) Quote: "**Local model (experimental):** If the Gemma local model router is enabled" (Supports: Fourth precedence) Quote: "**Default model:** If none of the above are set, the default model will be" (Supports: Fifth precedence) Quote: "used. The default model is `auto`" (Supports: Default model value) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 3b01ffe8f655997f7099c256f37bacdcb65fa05c089aa0424099143fa9fda3a2 (captured 2026-11-13T03:17:34Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:17:36Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:51:07Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:51:07Z Last attempt: 2026-11-20T12:51:07Z Notes and limitations: Extracted automatically from a single official source (section "Model selection precedence"). Related: https://latestn.com/tool/gemini-cli/models/select-model How do I select a model in Gemini CLI? https://latestn.com/tool/gemini-cli/permissions-and-security/create-policy-block-shell-command How do I create a policy in Gemini CLI to block a specific shell command? https://latestn.com/tool/gemini-cli/permissions-and-security/disable-yolo-mode How do I disable YOLO mode in Gemini CLI for enterprise deployments? https://latestn.com/tool/gemini-cli/models/model-config-resolution-order How does Gemini CLI resolve which model configuration to use when both aliases and overrides are set? https://latestn.com/tool/gemini-cli/models/model-fallback How does model fallback work in Gemini CLI? https://latestn.com/tool/gemini-cli/models/model-options What model options are available in Gemini CLI's /model command? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:36Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/models/model-selection-precedence/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/models/model-selection-precedence POST: https://latestn.com/dispute/tool/gemini-cli/models/model-selection-precedence with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/models/model-selection-precedence?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the model selection precedence in Gemini CLI? Revision 1, last verified 2026-11-20T12:51:07Z. https://latestn.com/tool/gemini-cli/models/model-selection-precedence (accessed 2026-11-21T09:53:30Z). @misc{LatestN_tool_gemini_cli_models_model_selection_precedence_r1, title = {What is the model selection precedence in Gemini CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/models/model-selection-precedence}}, note = {Revision 1; digest sha256:e23d0dfe06d6b8df; last verified 2026-11-20T12:51:07Z; accessed 2026-11-21T09:53:30Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/models/model-selection-precedence