Answer: The system first resolves the requested model string through alias resolution (looking it up in the merged map of system aliases and user customAliases, recursively resolving the extends chain with child settings winning), then applies overrides by filtering matching overrides, sorting them by specificity (with last one winning on ties), and merging them sequentially onto the base configuration. Status: Confirmed Entry: tool/gemini-cli/models/model-config-resolution-order Revision: 1 Digest: sha256:0a284259b5a33336 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:17:30Z Last changed: 2026-11-13T03:17:30Z Last verified: 2026-11-20T12:50:59Z Next check: 2026-11-21T12:50:59Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Step 1 | Alias Resolution | [1] | 2026-11-20 Alias lookup map | merged map of system `aliases` and user `customAliases` | [1] | 2026-11-20 Merge direction | parent to child (child wins) | [1] | 2026-11-20 Step 2 | Override Application | [1] | 2026-11-20 Sorting priority | specificity | [1] | 2026-11-20 Tie-breaking | last one wins | [1] | 2026-11-20 Merging | merged sequentially onto the base configuration | [1] | 2026-11-20 Sources: [1] Google. "Advanced Model Configuration". https://geminicli.com/docs/cli/generation-settings.md Role: primary. Accessed: 2026-11-20T12:50:59Z Quote: "### Step 1: Alias Resolution" (Supports: Step 1) Quote: "The requested model string is looked up in the merged map of system `aliases` and user `customAliases`." (Supports: Alias lookup map) Quote: "Settings are merged from parent to child (child wins)." (Supports: Merge direction) Quote: "### Step 2: Override Application" (Supports: Step 2) Quote: "Matches are prioritized by **specificity** (the number of" (Supports: Sorting priority) Quote: "the order of definition in the `overrides` array is preserved (last one wins)." (Supports: Tie-breaking) Quote: "The configurations from the sorted overrides are merged sequentially onto the base configuration." (Supports: Merging) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: 54bc4a3daee4f59b9450c1bfe4a83f88166352c910ee7cae7b132f60e9cbcb56 (captured 2026-11-13T03:17:30Z) 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:30Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:50:59Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:50:59Z Last attempt: 2026-11-20T12:50:59Z Notes and limitations: Extracted automatically from a single official source (section "3. Resolution Strategy"). Related: 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/gemini-cli/models/model-selection-precedence What is the model selection precedence in Gemini CLI? https://latestn.com/tool/gemini-cli/models/launch-specific-gemini-3-model How do I launch a specific Gemini 3 model directly in Gemini CLI? https://latestn.com/tool/gemini-cli/models/local-model-routing How do I enable or configure local model routing with Gemma in Gemini CLI? https://latestn.com/tool/gemini-cli/models/manual-local-model-routing-setup How do I set up local model routing with a Gemma model in Gemini CLI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:17:30Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/models/model-config-resolution-order/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-config-resolution-order POST: https://latestn.com/dispute/tool/gemini-cli/models/model-config-resolution-order with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/models/model-config-resolution-order?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does Gemini CLI resolve which model configuration to use when both aliases and overrides are set? Revision 1, last verified 2026-11-20T12:50:59Z. https://latestn.com/tool/gemini-cli/models/model-config-resolution-order (accessed 2026-11-21T09:54:34Z). @misc{LatestN_tool_gemini_cli_models_model_config_resolution_order_r1, title = {How does Gemini CLI resolve which model configuration to use when both aliases and overrides are set?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/models/model-config-resolution-order}}, note = {Revision 1; digest sha256:0a284259b5a33336; last verified 2026-11-20T12:50:59Z; accessed 2026-11-21T09:54:34Z} } 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-config-resolution-order