# settings.json: { "theme": "dark", "defaultModel": "gemini-3.1-pro-preview" }

Category: Gemini CLI

# settings.json: { "theme": "dark", "defaultModel": "gemini-3.1-pro-preview" }

Set Gemini 3.1 Pro as the default model in settings.json

The Gemini CLI settings.json file (in ~/.gemini/ or the project root) persists preferences across sessions. As of April 2026, valid model IDs include: gemini-3.1-pro-preview (flagship), gemini-3-flash-preview (fast/cheap), gemini-2.5-pro (stable GA, retires June 17, 2026), and gemini-2.5-flash (retires June 17, 2026).
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.