Type object
File match **/.gemini/settings.json **/gemini-cli/settings.json **/GeminiCli/settings.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/gemini-cli-settings/latest.json
Source https://raw.githubusercontent.com/google-gemini/gemini-cli/refs/heads/main/schemas/settings.schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Configuration file schema for Gemini CLI settings. This schema enables IDE completion for settings.json.

Properties

$schema string

The URL of the JSON schema for this settings file. Used by editors for validation and autocompletion.

Default: "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/schemas/settings.schema.json"
mcpServers Record<string, object>

Configuration for MCP servers.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
policyPaths string[]

Additional policy files or directories to load.

  • Category: Advanced
  • Requires restart: yes
  • Default: []
Default:
[]
adminPolicyPaths string[]

Additional admin policy files or directories to load.

  • Category: Advanced
  • Requires restart: yes
  • Default: []
Default:
[]
general object

General application settings.

  • Category: General
  • Requires restart: no
  • Default: {}
Default:
{}
13 nested properties
preferredEditor string

The preferred editor to open files in.

  • Category: General
  • Requires restart: no
vimMode boolean

Enable Vim keybindings

  • Category: General
  • Requires restart: no
  • Default: false
Default: false
defaultApprovalMode string

The default approval mode for tool execution. 'default' prompts for approval, 'auto_edit' auto-approves edit tools, and 'plan' is read-only mode. YOLO mode (auto-approve all actions) can only be enabled via command line (--yolo or --approval-mode=yolo).

  • Category: General
  • Requires restart: no
  • Default: default
Default: "default"
Values: "default" "auto_edit" "plan"
devtools boolean

Enable DevTools inspector on launch.

  • Category: General
  • Requires restart: no
  • Default: false
Default: false
enableAutoUpdate boolean

Enable automatic updates.

  • Category: General
  • Requires restart: no
  • Default: true
Default: true
enableAutoUpdateNotification boolean

Enable update notification prompts.

  • Category: General
  • Requires restart: no
  • Default: true
Default: true
enableNotifications boolean

Enable run-event notifications for action-required prompts and session completion.

  • Category: General
  • Requires restart: no
  • Default: false
Default: false
checkpointing object

Session checkpointing settings.

  • Category: General
  • Requires restart: yes
  • Default: {}
Default:
{}
1 nested properties
enabled boolean

Enable session checkpointing for recovery

  • Category: General
  • Requires restart: yes
  • Default: false
Default: false
plan object

Planning features configuration.

  • Category: General
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
enabled boolean

Enable Plan Mode for read-only safety during planning.

  • Category: General
  • Requires restart: yes
  • Default: true
Default: true
directory string

The directory where planning artifacts are stored. If not specified, defaults to the system temporary directory. A custom directory requires a policy to allow write access in Plan Mode.

  • Category: General
  • Requires restart: yes
modelRouting boolean

Automatically switch between Pro and Flash models based on Plan Mode status. Uses Pro for the planning phase and Flash for the implementation phase.

  • Category: General
  • Requires restart: no
  • Default: true
Default: true
retryFetchErrors boolean

Retry on "exception TypeError: fetch failed sending request" errors.

  • Category: General
  • Requires restart: no
  • Default: true
Default: true
maxAttempts number

Maximum number of attempts for requests to the main chat model. Cannot exceed 10.

  • Category: General
  • Requires restart: no
  • Default: 10
Default: 10
debugKeystrokeLogging boolean

Enable debug logging of keystrokes to the console.

  • Category: General
  • Requires restart: no
  • Default: false
Default: false
sessionRetention object

Settings for automatic session cleanup.

  • Category: General
  • Requires restart: no
4 nested properties
enabled boolean

Enable automatic session cleanup

  • Category: General
  • Requires restart: no
  • Default: true
Default: true
maxAge string

Automatically delete chats older than this time period (e.g., "30d", "7d", "24h", "1w")

  • Category: General
  • Requires restart: no
  • Default: 30d
Default: "30d"
maxCount number

Alternative: Maximum number of sessions to keep (most recent)

  • Category: General
  • Requires restart: no
minRetention string

Minimum retention period (safety limit, defaults to "1d")

  • Category: General
  • Requires restart: no
  • Default: 1d
Default: "1d"
output object

Settings for the CLI output.

  • Category: General
  • Requires restart: no
  • Default: {}
Default:
{}
1 nested properties
format string

The format of the CLI output. Can be text or json.

  • Category: General
  • Requires restart: no
  • Default: text
Default: "text"
Values: "text" "json"
ui object

User interface settings.

  • Category: UI
  • Requires restart: no
  • Default: {}
Default:
{}
34 nested properties
theme string

The color theme for the UI. See the CLI themes guide for available options.

  • Category: UI
  • Requires restart: no
autoThemeSwitching boolean

Automatically switch between default light and dark themes based on terminal background color.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
terminalBackgroundPollingInterval number

Interval in seconds to poll the terminal background color.

  • Category: UI
  • Requires restart: no
  • Default: 60
Default: 60
customThemes Record<string, object>

Custom theme definitions.

  • Category: UI
  • Requires restart: no
  • Default: {}
Default:
{}
hideWindowTitle boolean

Hide the window title bar

  • Category: UI
  • Requires restart: yes
  • Default: false
Default: false
inlineThinkingMode string

Display model thinking inline: off or full.

  • Category: UI
  • Requires restart: no
  • Default: off
Default: "off"
Values: "off" "full"
showStatusInTitle boolean

Show Gemini CLI model thoughts in the terminal window title during the working phase

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
dynamicWindowTitle boolean

Update the terminal window title with current status icons (Ready: ◇, Action Required: ✋, Working: ✦)

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
showHomeDirectoryWarning boolean

Show a warning when running Gemini CLI in the home directory.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
showCompatibilityWarnings boolean

Show warnings about terminal or OS compatibility issues.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
hideTips boolean

Hide helpful tips in the UI

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
escapePastedAtSymbols boolean

When enabled, @ symbols in pasted text are escaped to prevent unintended @path expansion.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
showShortcutsHint boolean

Show the "? for shortcuts" hint above the input.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
compactToolOutput boolean

Display tool outputs (like directory listings and file reads) in a compact, structured format.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
hideBanner boolean

Hide the application banner

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
hideContextSummary boolean

Hide the context summary (GEMINI.md, MCP servers) above the input.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
footer object

Settings for the footer.

  • Category: UI
  • Requires restart: no
  • Default: {}
Default:
{}
6 nested properties
items string[]

List of item IDs to display in the footer. Rendered in order

  • Category: UI
  • Requires restart: no
showLabels boolean

Display a second line above the footer items with descriptive headers (e.g., /model).

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
hideCWD boolean

Hide the current working directory in the footer.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
hideSandboxStatus boolean

Hide the sandbox status indicator in the footer.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
hideModelInfo boolean

Hide the model name and context usage in the footer.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
hideContextPercentage boolean

Hides the context window usage percentage.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
hideFooter boolean

Hide the footer from the UI

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
collapseDrawerDuringApproval boolean

Whether to collapse the UI drawer when a tool is awaiting confirmation.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
showMemoryUsage boolean

Display memory usage information in the UI

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
showLineNumbers boolean

Show line numbers in the chat.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
showCitations boolean

Show citations for generated text in the chat.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
showModelInfoInChat boolean

Show the model name in the chat for each model turn.

  • Category: UI
  • Requires restart: no
  • Default: false
Default: false
showUserIdentity boolean

Show the signed-in user's identity (e.g. email) in the UI.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
useAlternateBuffer boolean

Use an alternate screen buffer for the UI, preserving shell history.

  • Category: UI
  • Requires restart: yes
  • Default: false
Default: false
renderProcess boolean

Enable Ink render process for the UI.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
terminalBuffer boolean

Use the new terminal buffer architecture for rendering.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
useBackgroundColor boolean

Whether to use background colors in the UI.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
incrementalRendering boolean

Enable incremental rendering for the UI. This option will reduce flickering but may cause rendering artifacts. Only supported when useAlternateBuffer is enabled.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
showSpinner boolean

Show the spinner during operations.

  • Category: UI
  • Requires restart: no
  • Default: true
Default: true
loadingPhrases string

What to show while the model is working: tips, witty comments, all, or off.

  • Category: UI
  • Requires restart: no
  • Default: off
Default: "off"
Values: "tips" "witty" "all" "off"
errorVerbosity string

Controls whether recoverable errors are hidden (low) or fully shown (full).

  • Category: UI
  • Requires restart: no
  • Default: low
Default: "low"
Values: "low" "full"
customWittyPhrases string[]

Custom witty phrases to display during loading. When provided, the CLI cycles through these instead of the defaults.

  • Category: UI
  • Requires restart: no
  • Default: []
Default:
[]
accessibility object

Accessibility settings.

  • Category: UI
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
enableLoadingPhrases boolean

@deprecated Use ui.loadingPhrases instead. Enable loading phrases during operations.

  • Category: UI
  • Requires restart: yes
  • Default: true
Default: true
screenReader boolean

Render output in plain-text to be more screen reader accessible

  • Category: UI
  • Requires restart: yes
  • Default: false
Default: false
ide object

IDE integration settings.

  • Category: IDE
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
enabled boolean

Enable IDE integration mode.

  • Category: IDE
  • Requires restart: yes
  • Default: false
Default: false
hasSeenNudge boolean

Whether the user has seen the IDE integration nudge.

  • Category: IDE
  • Requires restart: no
  • Default: false
Default: false
privacy object

Privacy-related settings.

  • Category: Privacy
  • Requires restart: yes
  • Default: {}
Default:
{}
1 nested properties
usageStatisticsEnabled boolean

Enable collection of usage statistics

  • Category: Privacy
  • Requires restart: yes
  • Default: true
Default: true
telemetry object

Telemetry configuration for Gemini CLI.

8 nested properties
enabled boolean

Enables telemetry emission.

target string

Telemetry destination (for example stderr, stdout, or otlp).

otlpEndpoint string

Endpoint for OTLP exporters.

otlpProtocol string

Protocol for OTLP exporters.

Values: "grpc" "http"
logPrompts boolean

Whether prompts are logged in telemetry payloads.

outfile string

File path for writing telemetry output.

useCollector boolean

Whether to forward telemetry to an OTLP collector.

useCliAuth boolean

Whether to use CLI authentication for telemetry (only for in-process exporters).

billing object

Billing and AI credits settings.

  • Category: Advanced
  • Requires restart: no
  • Default: {}
Default:
{}
1 nested properties
overageStrategy string

How to handle quota exhaustion when AI credits are available. 'ask' prompts each time, 'always' automatically uses credits, 'never' disables credit usage.

  • Category: Advanced
  • Requires restart: no
  • Default: ask
Default: "ask"
Values: "ask" "always" "never"
model object

Settings related to the generative model.

  • Category: Model
  • Requires restart: no
  • Default: {}
Default:
{}
6 nested properties
name string

The Gemini model to use for conversations.

  • Category: Model
  • Requires restart: no
maxSessionTurns number

Maximum number of user/model/tool turns to keep in a session. -1 means unlimited.

  • Category: Model
  • Requires restart: no
  • Default: -1
Default: -1
summarizeToolOutput Record<string, object>

Enables or disables summarization of tool output. Configure per-tool token budgets (for example {"run_shell_command": {"tokenBudget": 2000}}). Currently only the run_shell_command tool supports summarization.

  • Category: Model
  • Requires restart: no
compressionThreshold number

The fraction of context usage at which to trigger context compression (e.g. 0.2, 0.3).

  • Category: Model
  • Requires restart: yes
  • Default: 0.5
Default: 0.5
disableLoopDetection boolean

Disable automatic detection and prevention of infinite loops.

  • Category: Model
  • Requires restart: yes
  • Default: false
Default: false
skipNextSpeakerCheck boolean

Skip the next speaker check.

  • Category: Model
  • Requires restart: no
  • Default: true
Default: true
modelConfigs object

Model configurations.

  • Category: Model
  • Requires restart: no
  • Default: { "aliases": { "base": { "modelConfig": { "generateContentConfig": { "temperature": 0, "topP": 1 } } }, "chat-base": { "extends": "base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "includeThoughts": true }, "temperature": 1, "topP": 0.95, "topK": 64 } } }, "chat-base-2.5": { "extends": "chat-base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "thinkingBudget": 8192 } } } }, "chat-base-3": { "extends": "chat-base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "thinkingLevel": "HIGH" } } } }, "gemini-3-pro-preview": { "extends": "chat-base-3", "modelConfig": { "model": "gemini-3-pro-preview" } }, "gemini-3-flash-preview": { "extends": "chat-base-3", "modelConfig": { "model": "gemini-3-flash-preview" } }, "gemini-2.5-pro": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-pro" } }, "gemini-2.5-flash": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-flash" } }, "gemini-2.5-flash-lite": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-flash-lite" } }, "gemini-2.5-flash-base": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash" } }, "gemini-3-flash-base": { "extends": "base", "modelConfig": { "model": "gemini-3-flash-preview" } }, "classifier": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 1024, "thinkingConfig": { "thinkingBudget": 512 } } } }, "prompt-completion": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "temperature": 0.3, "maxOutputTokens": 16000, "thinkingConfig": { "thinkingBudget": 0 } } } }, "fast-ack-helper": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "temperature": 0.2, "maxOutputTokens": 120, "thinkingConfig": { "thinkingBudget": 0 } } } }, "edit-corrector": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "thinkingConfig": { "thinkingBudget": 0 } } } }, "summarizer-default": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 2000 } } }, "summarizer-shell": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 2000 } } }, "web-search": { "extends": "gemini-3-flash-base", "modelConfig": { "generateContentConfig": { "tools": [ { "googleSearch": {} } ] } } }, "web-fetch": { "extends": "gemini-3-flash-base", "modelConfig": { "generateContentConfig": { "tools": [ { "urlContext": {} } ] } } }, "web-fetch-fallback": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "loop-detection": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "loop-detection-double-check": { "extends": "base", "modelConfig": { "model": "gemini-3-pro-preview" } }, "llm-edit-fixer": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "next-speaker-checker": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "chat-compression-3-pro": { "modelConfig": { "model": "gemini-3-pro-preview" } }, "chat-compression-3-flash": { "modelConfig": { "model": "gemini-3-flash-preview" } }, "chat-compression-3.1-flash-lite": { "modelConfig": { "model": "gemini-3.1-flash-lite-preview" } }, "chat-compression-2.5-pro": { "modelConfig": { "model": "gemini-2.5-pro" } }, "chat-compression-2.5-flash": { "modelConfig": { "model": "gemini-2.5-flash" } }, "chat-compression-2.5-flash-lite": { "modelConfig": { "model": "gemini-2.5-flash-lite" } }, "chat-compression-default": { "modelConfig": { "model": "gemini-3-pro-preview" } }, "agent-history-provider-summarizer": { "modelConfig": { "model": "gemini-3-flash-preview" } } }, "overrides": [ { "match": { "model": "chat-base", "isRetry": true }, "modelConfig": { "generateContentConfig": { "temperature": 1 } } } ], "modelDefinitions": { "gemini-3.1-flash-lite-preview": { "tier": "flash-lite", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": true } }, "gemini-3.1-pro-preview": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3.1-pro-preview-customtools": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3-pro-preview": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3-flash-preview": { "tier": "flash", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": true } }, "gemini-2.5-pro": { "tier": "pro", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "gemini-2.5-flash": { "tier": "flash", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "gemini-2.5-flash-lite": { "tier": "flash-lite", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "auto": { "tier": "auto", "isPreview": true, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": false } }, "pro": { "tier": "pro", "isPreview": false, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": false } }, "flash": { "tier": "flash", "isPreview": false, "isVisible": false, "features": { "thinking": false, "multimodalToolUse": false } }, "flash-lite": { "tier": "flash-lite", "isPreview": false, "isVisible": false, "features": { "thinking": false, "multimodalToolUse": false } }, "auto-gemini-3": { "displayName": "Auto (Gemini 3)", "tier": "auto", "isPreview": true, "isVisible": true, "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-3-pro, gemini-3-flash", "features": { "thinking": true, "multimodalToolUse": false } }, "auto-gemini-2.5": { "displayName": "Auto (Gemini 2.5)", "tier": "auto", "isPreview": false, "isVisible": true, "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-2.5-pro, gemini-2.5-flash", "features": { "thinking": false, "multimodalToolUse": false } } }, "modelIdResolutions": { "gemini-3.1-pro-preview": { "default": "gemini-3.1-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" } ] }, "gemini-3.1-pro-preview-customtools": { "default": "gemini-3.1-pro-preview-customtools", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" } ] }, "gemini-3-flash-preview": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-flash" } ] }, "gemini-3-pro-preview": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto-gemini-3": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "pro": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto-gemini-2.5": { "default": "gemini-2.5-pro" }, "gemini-3.1-flash-lite-preview": { "default": "gemini-3.1-flash-lite-preview", "contexts": [ { "condition": { "useGemini3_1FlashLite": false }, "target": "gemini-2.5-flash-lite" } ] }, "flash": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-flash" } ] }, "flash-lite": { "default": "gemini-2.5-flash-lite", "contexts": [ { "condition": { "useGemini3_1FlashLite": true }, "target": "gemini-3.1-flash-lite-preview" } ] } }, "classifierIdResolutions": { "flash": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "requestedModels": [ "auto-gemini-2.5", "gemini-2.5-pro" ] }, "target": "gemini-2.5-flash" }, { "condition": { "requestedModels": [ "auto-gemini-3", "gemini-3-pro-preview" ] }, "target": "gemini-3-flash-preview" } ] }, "pro": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "requestedModels": [ "auto-gemini-2.5", "gemini-2.5-pro" ] }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] } }, "modelChains": { "preview": [ { "model": "gemini-3-pro-preview", "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-3-flash-preview", "isLastResort": true, "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ], "default": [ { "model": "gemini-2.5-pro", "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-flash", "isLastResort": true, "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ], "lite": [ { "model": "gemini-2.5-flash-lite", "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-flash", "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-pro", "isLastResort": true, "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ] } }
Default:
{
  "aliases": {
    "base": {
      "modelConfig": {
        "generateContentConfig": {
          "temperature": 0,
          "topP": 1
        }
      }
    },
    "chat-base": {
      "extends": "base",
      "modelConfig": {
        "generateContentConfig": {
          "thinkingConfig": {
            "includeThoughts": true
          },
          "temperature": 1,
          "topP": 0.95,
          "topK": 64
        }
      }
    },
    "chat-base-2.5": {
      "extends": "chat-base",
      "modelConfig": {
        "generateContentConfig": {
          "thinkingConfig": {
            "thinkingBudget": 8192
          }
        }
      }
    },
    "chat-base-3": {
      "extends": "chat-base",
      "modelConfig": {
        "generateContentConfig": {
          "thinkingConfig": {
            "thinkingLevel": "HIGH"
          }
        }
      }
    },
    "gemini-3-pro-preview": {
      "extends": "chat-base-3",
      "modelConfig": {
        "model": "gemini-3-pro-preview"
      }
    },
    "gemini-3-flash-preview": {
      "extends": "chat-base-3",
      "modelConfig": {
        "model": "gemini-3-flash-preview"
      }
    },
    "gemini-2.5-pro": {
      "extends": "chat-base-2.5",
      "modelConfig": {
        "model": "gemini-2.5-pro"
      }
    },
    "gemini-2.5-flash": {
      "extends": "chat-base-2.5",
      "modelConfig": {
        "model": "gemini-2.5-flash"
      }
    },
    "gemini-2.5-flash-lite": {
      "extends": "chat-base-2.5",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite"
      }
    },
    "gemini-2.5-flash-base": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash"
      }
    },
    "gemini-3-flash-base": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-3-flash-preview"
      }
    },
    "classifier": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "maxOutputTokens": 1024,
          "thinkingConfig": {
            "thinkingBudget": 512
          }
        }
      }
    },
    "prompt-completion": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "temperature": 0.3,
          "maxOutputTokens": 16000,
          "thinkingConfig": {
            "thinkingBudget": 0
          }
        }
      }
    },
    "fast-ack-helper": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "temperature": 0.2,
          "maxOutputTokens": 120,
          "thinkingConfig": {
            "thinkingBudget": 0
          }
        }
      }
    },
    "edit-corrector": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "thinkingConfig": {
            "thinkingBudget": 0
          }
        }
      }
    },
    "summarizer-default": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "maxOutputTokens": 2000
        }
      }
    },
    "summarizer-shell": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-2.5-flash-lite",
        "generateContentConfig": {
          "maxOutputTokens": 2000
        }
      }
    },
    "web-search": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {
        "generateContentConfig": {
          "tools": [
            {
              "googleSearch": {}
            }
          ]
        }
      }
    },
    "web-fetch": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {
        "generateContentConfig": {
          "tools": [
            {
              "urlContext": {}
            }
          ]
        }
      }
    },
    "web-fetch-fallback": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {}
    },
    "loop-detection": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {}
    },
    "loop-detection-double-check": {
      "extends": "base",
      "modelConfig": {
        "model": "gemini-3-pro-preview"
      }
    },
    "llm-edit-fixer": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {}
    },
    "next-speaker-checker": {
      "extends": "gemini-3-flash-base",
      "modelConfig": {}
    },
    "chat-compression-3-pro": {
      "modelConfig": {
        "model": "gemini-3-pro-preview"
      }
    },
    "chat-compression-3-flash": {
      "modelConfig": {
        "model": "gemini-3-flash-preview"
      }
    },
    "chat-compression-3.1-flash-lite": {
      "modelConfig": {
        "model": "gemini-3.1-flash-lite-preview"
      }
    },
    "chat-compression-2.5-pro": {
      "modelConfig": {
        "model": "gemini-2.5-pro"
      }
    },
    "chat-compression-2.5-flash": {
      "modelConfig": {
        "model": "gemini-2.5-flash"
      }
    },
    "chat-compression-2.5-flash-lite": {
      "modelConfig": {
        "model": "gemini-2.5-flash-lite"
      }
    },
    "chat-compression-default": {
      "modelConfig": {
        "model": "gemini-3-pro-preview"
      }
    },
    "agent-history-provider-summarizer": {
      "modelConfig": {
        "model": "gemini-3-flash-preview"
      }
    }
  },
  "overrides": [
    {
      "match": {
        "model": "chat-base",
        "isRetry": true
      },
      "modelConfig": {
        "generateContentConfig": {
          "temperature": 1
        }
      }
    }
  ],
  "modelDefinitions": {
    "gemini-3.1-flash-lite-preview": {
      "tier": "flash-lite",
      "family": "gemini-3",
      "isPreview": true,
      "isVisible": true,
      "features": {
        "thinking": false,
        "multimodalToolUse": true
      }
    },
    "gemini-3.1-pro-preview": {
      "tier": "pro",
      "family": "gemini-3",
      "isPreview": true,
      "isVisible": true,
      "features": {
        "thinking": true,
        "multimodalToolUse": true
      }
    },
    "gemini-3.1-pro-preview-customtools": {
      "tier": "pro",
      "family": "gemini-3",
      "isPreview": true,
      "isVisible": false,
      "features": {
        "thinking": true,
        "multimodalToolUse": true
      }
    },
    "gemini-3-pro-preview": {
      "tier": "pro",
      "family": "gemini-3",
      "isPreview": true,
      "isVisible": true,
      "features": {
        "thinking": true,
        "multimodalToolUse": true
      }
    },
    "gemini-3-flash-preview": {
      "tier": "flash",
      "family": "gemini-3",
      "isPreview": true,
      "isVisible": true,
      "features": {
        "thinking": false,
        "multimodalToolUse": true
      }
    },
    "gemini-2.5-pro": {
      "tier": "pro",
      "family": "gemini-2.5",
      "isPreview": false,
      "isVisible": true,
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    },
    "gemini-2.5-flash": {
      "tier": "flash",
      "family": "gemini-2.5",
      "isPreview": false,
      "isVisible": true,
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    },
    "gemini-2.5-flash-lite": {
      "tier": "flash-lite",
      "family": "gemini-2.5",
      "isPreview": false,
      "isVisible": true,
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    },
    "auto": {
      "tier": "auto",
      "isPreview": true,
      "isVisible": false,
      "features": {
        "thinking": true,
        "multimodalToolUse": false
      }
    },
    "pro": {
      "tier": "pro",
      "isPreview": false,
      "isVisible": false,
      "features": {
        "thinking": true,
        "multimodalToolUse": false
      }
    },
    "flash": {
      "tier": "flash",
      "isPreview": false,
      "isVisible": false,
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    },
    "flash-lite": {
      "tier": "flash-lite",
      "isPreview": false,
      "isVisible": false,
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    },
    "auto-gemini-3": {
      "displayName": "Auto (Gemini 3)",
      "tier": "auto",
      "isPreview": true,
      "isVisible": true,
      "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-3-pro, gemini-3-flash",
      "features": {
        "thinking": true,
        "multimodalToolUse": false
      }
    },
    "auto-gemini-2.5": {
      "displayName": "Auto (Gemini 2.5)",
      "tier": "auto",
      "isPreview": false,
      "isVisible": true,
      "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-2.5-pro, gemini-2.5-flash",
      "features": {
        "thinking": false,
        "multimodalToolUse": false
      }
    }
  },
  "modelIdResolutions": {
    "gemini-3.1-pro-preview": {
      "default": "gemini-3.1-pro-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        }
      ]
    },
    "gemini-3.1-pro-preview-customtools": {
      "default": "gemini-3.1-pro-preview-customtools",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        }
      ]
    },
    "gemini-3-flash-preview": {
      "default": "gemini-3-flash-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-flash"
        }
      ]
    },
    "gemini-3-pro-preview": {
      "default": "gemini-3-pro-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useGemini3_1": true,
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        },
        {
          "condition": {
            "useGemini3_1": true
          },
          "target": "gemini-3.1-pro-preview"
        }
      ]
    },
    "auto-gemini-3": {
      "default": "gemini-3-pro-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useGemini3_1": true,
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        },
        {
          "condition": {
            "useGemini3_1": true
          },
          "target": "gemini-3.1-pro-preview"
        }
      ]
    },
    "auto": {
      "default": "gemini-3-pro-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useGemini3_1": true,
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        },
        {
          "condition": {
            "useGemini3_1": true
          },
          "target": "gemini-3.1-pro-preview"
        }
      ]
    },
    "pro": {
      "default": "gemini-3-pro-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useGemini3_1": true,
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        },
        {
          "condition": {
            "useGemini3_1": true
          },
          "target": "gemini-3.1-pro-preview"
        }
      ]
    },
    "auto-gemini-2.5": {
      "default": "gemini-2.5-pro"
    },
    "gemini-3.1-flash-lite-preview": {
      "default": "gemini-3.1-flash-lite-preview",
      "contexts": [
        {
          "condition": {
            "useGemini3_1FlashLite": false
          },
          "target": "gemini-2.5-flash-lite"
        }
      ]
    },
    "flash": {
      "default": "gemini-3-flash-preview",
      "contexts": [
        {
          "condition": {
            "hasAccessToPreview": false
          },
          "target": "gemini-2.5-flash"
        }
      ]
    },
    "flash-lite": {
      "default": "gemini-2.5-flash-lite",
      "contexts": [
        {
          "condition": {
            "useGemini3_1FlashLite": true
          },
          "target": "gemini-3.1-flash-lite-preview"
        }
      ]
    }
  },
  "classifierIdResolutions": {
    "flash": {
      "default": "gemini-3-flash-preview",
      "contexts": [
        {
          "condition": {
            "requestedModels": [
              "auto-gemini-2.5",
              "gemini-2.5-pro"
            ]
          },
          "target": "gemini-2.5-flash"
        },
        {
          "condition": {
            "requestedModels": [
              "auto-gemini-3",
              "gemini-3-pro-preview"
            ]
          },
          "target": "gemini-3-flash-preview"
        }
      ]
    },
    "pro": {
      "default": "gemini-3-pro-preview",
      "contexts": [
        {
          "condition": {
            "requestedModels": [
              "auto-gemini-2.5",
              "gemini-2.5-pro"
            ]
          },
          "target": "gemini-2.5-pro"
        },
        {
          "condition": {
            "useGemini3_1": true,
            "useCustomTools": true
          },
          "target": "gemini-3.1-pro-preview-customtools"
        },
        {
          "condition": {
            "useGemini3_1": true
          },
          "target": "gemini-3.1-pro-preview"
        }
      ]
    }
  },
  "modelChains": {
    "preview": [
      {
        "model": "gemini-3-pro-preview",
        "actions": {
          "terminal": "prompt",
          "transient": "prompt",
          "not_found": "prompt",
          "unknown": "prompt"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      },
      {
        "model": "gemini-3-flash-preview",
        "isLastResort": true,
        "actions": {
          "terminal": "prompt",
          "transient": "prompt",
          "not_found": "prompt",
          "unknown": "prompt"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      }
    ],
    "default": [
      {
        "model": "gemini-2.5-pro",
        "actions": {
          "terminal": "prompt",
          "transient": "prompt",
          "not_found": "prompt",
          "unknown": "prompt"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      },
      {
        "model": "gemini-2.5-flash",
        "isLastResort": true,
        "actions": {
          "terminal": "prompt",
          "transient": "prompt",
          "not_found": "prompt",
          "unknown": "prompt"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      }
    ],
    "lite": [
      {
        "model": "gemini-2.5-flash-lite",
        "actions": {
          "terminal": "silent",
          "transient": "silent",
          "not_found": "silent",
          "unknown": "silent"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      },
      {
        "model": "gemini-2.5-flash",
        "actions": {
          "terminal": "silent",
          "transient": "silent",
          "not_found": "silent",
          "unknown": "silent"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      },
      {
        "model": "gemini-2.5-pro",
        "isLastResort": true,
        "actions": {
          "terminal": "silent",
          "transient": "silent",
          "not_found": "silent",
          "unknown": "silent"
        },
        "stateTransitions": {
          "terminal": "terminal",
          "transient": "terminal",
          "not_found": "terminal",
          "unknown": "terminal"
        }
      }
    ]
  }
}
8 nested properties
aliases object

Named presets for model configs. Can be used in place of a model name and can inherit from other aliases using an extends property.

  • Category: Model
  • Requires restart: no
  • Default: { "base": { "modelConfig": { "generateContentConfig": { "temperature": 0, "topP": 1 } } }, "chat-base": { "extends": "base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "includeThoughts": true }, "temperature": 1, "topP": 0.95, "topK": 64 } } }, "chat-base-2.5": { "extends": "chat-base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "thinkingBudget": 8192 } } } }, "chat-base-3": { "extends": "chat-base", "modelConfig": { "generateContentConfig": { "thinkingConfig": { "thinkingLevel": "HIGH" } } } }, "gemini-3-pro-preview": { "extends": "chat-base-3", "modelConfig": { "model": "gemini-3-pro-preview" } }, "gemini-3-flash-preview": { "extends": "chat-base-3", "modelConfig": { "model": "gemini-3-flash-preview" } }, "gemini-2.5-pro": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-pro" } }, "gemini-2.5-flash": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-flash" } }, "gemini-2.5-flash-lite": { "extends": "chat-base-2.5", "modelConfig": { "model": "gemini-2.5-flash-lite" } }, "gemini-2.5-flash-base": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash" } }, "gemini-3-flash-base": { "extends": "base", "modelConfig": { "model": "gemini-3-flash-preview" } }, "classifier": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 1024, "thinkingConfig": { "thinkingBudget": 512 } } } }, "prompt-completion": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "temperature": 0.3, "maxOutputTokens": 16000, "thinkingConfig": { "thinkingBudget": 0 } } } }, "fast-ack-helper": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "temperature": 0.2, "maxOutputTokens": 120, "thinkingConfig": { "thinkingBudget": 0 } } } }, "edit-corrector": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "thinkingConfig": { "thinkingBudget": 0 } } } }, "summarizer-default": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 2000 } } }, "summarizer-shell": { "extends": "base", "modelConfig": { "model": "gemini-2.5-flash-lite", "generateContentConfig": { "maxOutputTokens": 2000 } } }, "web-search": { "extends": "gemini-3-flash-base", "modelConfig": { "generateContentConfig": { "tools": [ { "googleSearch": {} } ] } } }, "web-fetch": { "extends": "gemini-3-flash-base", "modelConfig": { "generateContentConfig": { "tools": [ { "urlContext": {} } ] } } }, "web-fetch-fallback": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "loop-detection": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "loop-detection-double-check": { "extends": "base", "modelConfig": { "model": "gemini-3-pro-preview" } }, "llm-edit-fixer": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "next-speaker-checker": { "extends": "gemini-3-flash-base", "modelConfig": {} }, "chat-compression-3-pro": { "modelConfig": { "model": "gemini-3-pro-preview" } }, "chat-compression-3-flash": { "modelConfig": { "model": "gemini-3-flash-preview" } }, "chat-compression-3.1-flash-lite": { "modelConfig": { "model": "gemini-3.1-flash-lite-preview" } }, "chat-compression-2.5-pro": { "modelConfig": { "model": "gemini-2.5-pro" } }, "chat-compression-2.5-flash": { "modelConfig": { "model": "gemini-2.5-flash" } }, "chat-compression-2.5-flash-lite": { "modelConfig": { "model": "gemini-2.5-flash-lite" } }, "chat-compression-default": { "modelConfig": { "model": "gemini-3-pro-preview" } }, "agent-history-provider-summarizer": { "modelConfig": { "model": "gemini-3-flash-preview" } } }
Default:
{
  "base": {
    "modelConfig": {
      "generateContentConfig": {
        "temperature": 0,
        "topP": 1
      }
    }
  },
  "chat-base": {
    "extends": "base",
    "modelConfig": {
      "generateContentConfig": {
        "thinkingConfig": {
          "includeThoughts": true
        },
        "temperature": 1,
        "topP": 0.95,
        "topK": 64
      }
    }
  },
  "chat-base-2.5": {
    "extends": "chat-base",
    "modelConfig": {
      "generateContentConfig": {
        "thinkingConfig": {
          "thinkingBudget": 8192
        }
      }
    }
  },
  "chat-base-3": {
    "extends": "chat-base",
    "modelConfig": {
      "generateContentConfig": {
        "thinkingConfig": {
          "thinkingLevel": "HIGH"
        }
      }
    }
  },
  "gemini-3-pro-preview": {
    "extends": "chat-base-3",
    "modelConfig": {
      "model": "gemini-3-pro-preview"
    }
  },
  "gemini-3-flash-preview": {
    "extends": "chat-base-3",
    "modelConfig": {
      "model": "gemini-3-flash-preview"
    }
  },
  "gemini-2.5-pro": {
    "extends": "chat-base-2.5",
    "modelConfig": {
      "model": "gemini-2.5-pro"
    }
  },
  "gemini-2.5-flash": {
    "extends": "chat-base-2.5",
    "modelConfig": {
      "model": "gemini-2.5-flash"
    }
  },
  "gemini-2.5-flash-lite": {
    "extends": "chat-base-2.5",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite"
    }
  },
  "gemini-2.5-flash-base": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash"
    }
  },
  "gemini-3-flash-base": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-3-flash-preview"
    }
  },
  "classifier": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "maxOutputTokens": 1024,
        "thinkingConfig": {
          "thinkingBudget": 512
        }
      }
    }
  },
  "prompt-completion": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "temperature": 0.3,
        "maxOutputTokens": 16000,
        "thinkingConfig": {
          "thinkingBudget": 0
        }
      }
    }
  },
  "fast-ack-helper": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "temperature": 0.2,
        "maxOutputTokens": 120,
        "thinkingConfig": {
          "thinkingBudget": 0
        }
      }
    }
  },
  "edit-corrector": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "thinkingConfig": {
          "thinkingBudget": 0
        }
      }
    }
  },
  "summarizer-default": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "maxOutputTokens": 2000
      }
    }
  },
  "summarizer-shell": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-2.5-flash-lite",
      "generateContentConfig": {
        "maxOutputTokens": 2000
      }
    }
  },
  "web-search": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {
      "generateContentConfig": {
        "tools": [
          {
            "googleSearch": {}
          }
        ]
      }
    }
  },
  "web-fetch": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {
      "generateContentConfig": {
        "tools": [
          {
            "urlContext": {}
          }
        ]
      }
    }
  },
  "web-fetch-fallback": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {}
  },
  "loop-detection": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {}
  },
  "loop-detection-double-check": {
    "extends": "base",
    "modelConfig": {
      "model": "gemini-3-pro-preview"
    }
  },
  "llm-edit-fixer": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {}
  },
  "next-speaker-checker": {
    "extends": "gemini-3-flash-base",
    "modelConfig": {}
  },
  "chat-compression-3-pro": {
    "modelConfig": {
      "model": "gemini-3-pro-preview"
    }
  },
  "chat-compression-3-flash": {
    "modelConfig": {
      "model": "gemini-3-flash-preview"
    }
  },
  "chat-compression-3.1-flash-lite": {
    "modelConfig": {
      "model": "gemini-3.1-flash-lite-preview"
    }
  },
  "chat-compression-2.5-pro": {
    "modelConfig": {
      "model": "gemini-2.5-pro"
    }
  },
  "chat-compression-2.5-flash": {
    "modelConfig": {
      "model": "gemini-2.5-flash"
    }
  },
  "chat-compression-2.5-flash-lite": {
    "modelConfig": {
      "model": "gemini-2.5-flash-lite"
    }
  },
  "chat-compression-default": {
    "modelConfig": {
      "model": "gemini-3-pro-preview"
    }
  },
  "agent-history-provider-summarizer": {
    "modelConfig": {
      "model": "gemini-3-flash-preview"
    }
  }
}
customAliases object

Custom named presets for model configs. These are merged with (and override) the built-in aliases.

  • Category: Model
  • Requires restart: no
  • Default: {}
Default:
{}
customOverrides array

Custom model config overrides. These are merged with (and added to) the built-in overrides.

  • Category: Model
  • Requires restart: no
  • Default: []
Default:
[]
overrides array

Apply specific configuration overrides based on matches, with a primary key of model (or alias). The most specific match will be used.

  • Category: Model
  • Requires restart: no
  • Default: []
Default:
[]
modelDefinitions Record<string, object>

Registry of model metadata, including tier, family, and features.

  • Category: Model
  • Requires restart: yes
  • Default: { "gemini-3.1-flash-lite-preview": { "tier": "flash-lite", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": true } }, "gemini-3.1-pro-preview": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3.1-pro-preview-customtools": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3-pro-preview": { "tier": "pro", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": true, "multimodalToolUse": true } }, "gemini-3-flash-preview": { "tier": "flash", "family": "gemini-3", "isPreview": true, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": true } }, "gemini-2.5-pro": { "tier": "pro", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "gemini-2.5-flash": { "tier": "flash", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "gemini-2.5-flash-lite": { "tier": "flash-lite", "family": "gemini-2.5", "isPreview": false, "isVisible": true, "features": { "thinking": false, "multimodalToolUse": false } }, "auto": { "tier": "auto", "isPreview": true, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": false } }, "pro": { "tier": "pro", "isPreview": false, "isVisible": false, "features": { "thinking": true, "multimodalToolUse": false } }, "flash": { "tier": "flash", "isPreview": false, "isVisible": false, "features": { "thinking": false, "multimodalToolUse": false } }, "flash-lite": { "tier": "flash-lite", "isPreview": false, "isVisible": false, "features": { "thinking": false, "multimodalToolUse": false } }, "auto-gemini-3": { "displayName": "Auto (Gemini 3)", "tier": "auto", "isPreview": true, "isVisible": true, "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-3-pro, gemini-3-flash", "features": { "thinking": true, "multimodalToolUse": false } }, "auto-gemini-2.5": { "displayName": "Auto (Gemini 2.5)", "tier": "auto", "isPreview": false, "isVisible": true, "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-2.5-pro, gemini-2.5-flash", "features": { "thinking": false, "multimodalToolUse": false } } }
Default:
{
  "gemini-3.1-flash-lite-preview": {
    "tier": "flash-lite",
    "family": "gemini-3",
    "isPreview": true,
    "isVisible": true,
    "features": {
      "thinking": false,
      "multimodalToolUse": true
    }
  },
  "gemini-3.1-pro-preview": {
    "tier": "pro",
    "family": "gemini-3",
    "isPreview": true,
    "isVisible": true,
    "features": {
      "thinking": true,
      "multimodalToolUse": true
    }
  },
  "gemini-3.1-pro-preview-customtools": {
    "tier": "pro",
    "family": "gemini-3",
    "isPreview": true,
    "isVisible": false,
    "features": {
      "thinking": true,
      "multimodalToolUse": true
    }
  },
  "gemini-3-pro-preview": {
    "tier": "pro",
    "family": "gemini-3",
    "isPreview": true,
    "isVisible": true,
    "features": {
      "thinking": true,
      "multimodalToolUse": true
    }
  },
  "gemini-3-flash-preview": {
    "tier": "flash",
    "family": "gemini-3",
    "isPreview": true,
    "isVisible": true,
    "features": {
      "thinking": false,
      "multimodalToolUse": true
    }
  },
  "gemini-2.5-pro": {
    "tier": "pro",
    "family": "gemini-2.5",
    "isPreview": false,
    "isVisible": true,
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  },
  "gemini-2.5-flash": {
    "tier": "flash",
    "family": "gemini-2.5",
    "isPreview": false,
    "isVisible": true,
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  },
  "gemini-2.5-flash-lite": {
    "tier": "flash-lite",
    "family": "gemini-2.5",
    "isPreview": false,
    "isVisible": true,
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  },
  "auto": {
    "tier": "auto",
    "isPreview": true,
    "isVisible": false,
    "features": {
      "thinking": true,
      "multimodalToolUse": false
    }
  },
  "pro": {
    "tier": "pro",
    "isPreview": false,
    "isVisible": false,
    "features": {
      "thinking": true,
      "multimodalToolUse": false
    }
  },
  "flash": {
    "tier": "flash",
    "isPreview": false,
    "isVisible": false,
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  },
  "flash-lite": {
    "tier": "flash-lite",
    "isPreview": false,
    "isVisible": false,
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  },
  "auto-gemini-3": {
    "displayName": "Auto (Gemini 3)",
    "tier": "auto",
    "isPreview": true,
    "isVisible": true,
    "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-3-pro, gemini-3-flash",
    "features": {
      "thinking": true,
      "multimodalToolUse": false
    }
  },
  "auto-gemini-2.5": {
    "displayName": "Auto (Gemini 2.5)",
    "tier": "auto",
    "isPreview": false,
    "isVisible": true,
    "dialogDescription": "Let Gemini CLI decide the best model for the task: gemini-2.5-pro, gemini-2.5-flash",
    "features": {
      "thinking": false,
      "multimodalToolUse": false
    }
  }
}
modelIdResolutions Record<string, object>

Rules for resolving requested model names to concrete model IDs based on context.

  • Category: Model
  • Requires restart: yes
  • Default: { "gemini-3.1-pro-preview": { "default": "gemini-3.1-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" } ] }, "gemini-3.1-pro-preview-customtools": { "default": "gemini-3.1-pro-preview-customtools", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" } ] }, "gemini-3-flash-preview": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-flash" } ] }, "gemini-3-pro-preview": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto-gemini-3": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "pro": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] }, "auto-gemini-2.5": { "default": "gemini-2.5-pro" }, "gemini-3.1-flash-lite-preview": { "default": "gemini-3.1-flash-lite-preview", "contexts": [ { "condition": { "useGemini3_1FlashLite": false }, "target": "gemini-2.5-flash-lite" } ] }, "flash": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "hasAccessToPreview": false }, "target": "gemini-2.5-flash" } ] }, "flash-lite": { "default": "gemini-2.5-flash-lite", "contexts": [ { "condition": { "useGemini3_1FlashLite": true }, "target": "gemini-3.1-flash-lite-preview" } ] } }
Default:
{
  "gemini-3.1-pro-preview": {
    "default": "gemini-3.1-pro-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      }
    ]
  },
  "gemini-3.1-pro-preview-customtools": {
    "default": "gemini-3.1-pro-preview-customtools",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      }
    ]
  },
  "gemini-3-flash-preview": {
    "default": "gemini-3-flash-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-flash"
      }
    ]
  },
  "gemini-3-pro-preview": {
    "default": "gemini-3-pro-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useGemini3_1": true,
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      },
      {
        "condition": {
          "useGemini3_1": true
        },
        "target": "gemini-3.1-pro-preview"
      }
    ]
  },
  "auto-gemini-3": {
    "default": "gemini-3-pro-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useGemini3_1": true,
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      },
      {
        "condition": {
          "useGemini3_1": true
        },
        "target": "gemini-3.1-pro-preview"
      }
    ]
  },
  "auto": {
    "default": "gemini-3-pro-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useGemini3_1": true,
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      },
      {
        "condition": {
          "useGemini3_1": true
        },
        "target": "gemini-3.1-pro-preview"
      }
    ]
  },
  "pro": {
    "default": "gemini-3-pro-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useGemini3_1": true,
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      },
      {
        "condition": {
          "useGemini3_1": true
        },
        "target": "gemini-3.1-pro-preview"
      }
    ]
  },
  "auto-gemini-2.5": {
    "default": "gemini-2.5-pro"
  },
  "gemini-3.1-flash-lite-preview": {
    "default": "gemini-3.1-flash-lite-preview",
    "contexts": [
      {
        "condition": {
          "useGemini3_1FlashLite": false
        },
        "target": "gemini-2.5-flash-lite"
      }
    ]
  },
  "flash": {
    "default": "gemini-3-flash-preview",
    "contexts": [
      {
        "condition": {
          "hasAccessToPreview": false
        },
        "target": "gemini-2.5-flash"
      }
    ]
  },
  "flash-lite": {
    "default": "gemini-2.5-flash-lite",
    "contexts": [
      {
        "condition": {
          "useGemini3_1FlashLite": true
        },
        "target": "gemini-3.1-flash-lite-preview"
      }
    ]
  }
}
classifierIdResolutions Record<string, object>

Rules for resolving classifier tiers (flash, pro) to concrete model IDs.

  • Category: Model
  • Requires restart: yes
  • Default: { "flash": { "default": "gemini-3-flash-preview", "contexts": [ { "condition": { "requestedModels": [ "auto-gemini-2.5", "gemini-2.5-pro" ] }, "target": "gemini-2.5-flash" }, { "condition": { "requestedModels": [ "auto-gemini-3", "gemini-3-pro-preview" ] }, "target": "gemini-3-flash-preview" } ] }, "pro": { "default": "gemini-3-pro-preview", "contexts": [ { "condition": { "requestedModels": [ "auto-gemini-2.5", "gemini-2.5-pro" ] }, "target": "gemini-2.5-pro" }, { "condition": { "useGemini3_1": true, "useCustomTools": true }, "target": "gemini-3.1-pro-preview-customtools" }, { "condition": { "useGemini3_1": true }, "target": "gemini-3.1-pro-preview" } ] } }
Default:
{
  "flash": {
    "default": "gemini-3-flash-preview",
    "contexts": [
      {
        "condition": {
          "requestedModels": [
            "auto-gemini-2.5",
            "gemini-2.5-pro"
          ]
        },
        "target": "gemini-2.5-flash"
      },
      {
        "condition": {
          "requestedModels": [
            "auto-gemini-3",
            "gemini-3-pro-preview"
          ]
        },
        "target": "gemini-3-flash-preview"
      }
    ]
  },
  "pro": {
    "default": "gemini-3-pro-preview",
    "contexts": [
      {
        "condition": {
          "requestedModels": [
            "auto-gemini-2.5",
            "gemini-2.5-pro"
          ]
        },
        "target": "gemini-2.5-pro"
      },
      {
        "condition": {
          "useGemini3_1": true,
          "useCustomTools": true
        },
        "target": "gemini-3.1-pro-preview-customtools"
      },
      {
        "condition": {
          "useGemini3_1": true
        },
        "target": "gemini-3.1-pro-preview"
      }
    ]
  }
}
modelChains Record<string, object[]>

Availability policy chains defining fallback behavior for models.

  • Category: Model
  • Requires restart: yes
  • Default: { "preview": [ { "model": "gemini-3-pro-preview", "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-3-flash-preview", "isLastResort": true, "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ], "default": [ { "model": "gemini-2.5-pro", "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-flash", "isLastResort": true, "actions": { "terminal": "prompt", "transient": "prompt", "not_found": "prompt", "unknown": "prompt" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ], "lite": [ { "model": "gemini-2.5-flash-lite", "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-flash", "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } }, { "model": "gemini-2.5-pro", "isLastResort": true, "actions": { "terminal": "silent", "transient": "silent", "not_found": "silent", "unknown": "silent" }, "stateTransitions": { "terminal": "terminal", "transient": "terminal", "not_found": "terminal", "unknown": "terminal" } } ] }
Default:
{
  "preview": [
    {
      "model": "gemini-3-pro-preview",
      "actions": {
        "terminal": "prompt",
        "transient": "prompt",
        "not_found": "prompt",
        "unknown": "prompt"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    },
    {
      "model": "gemini-3-flash-preview",
      "isLastResort": true,
      "actions": {
        "terminal": "prompt",
        "transient": "prompt",
        "not_found": "prompt",
        "unknown": "prompt"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    }
  ],
  "default": [
    {
      "model": "gemini-2.5-pro",
      "actions": {
        "terminal": "prompt",
        "transient": "prompt",
        "not_found": "prompt",
        "unknown": "prompt"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    },
    {
      "model": "gemini-2.5-flash",
      "isLastResort": true,
      "actions": {
        "terminal": "prompt",
        "transient": "prompt",
        "not_found": "prompt",
        "unknown": "prompt"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    }
  ],
  "lite": [
    {
      "model": "gemini-2.5-flash-lite",
      "actions": {
        "terminal": "silent",
        "transient": "silent",
        "not_found": "silent",
        "unknown": "silent"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    },
    {
      "model": "gemini-2.5-flash",
      "actions": {
        "terminal": "silent",
        "transient": "silent",
        "not_found": "silent",
        "unknown": "silent"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    },
    {
      "model": "gemini-2.5-pro",
      "isLastResort": true,
      "actions": {
        "terminal": "silent",
        "transient": "silent",
        "not_found": "silent",
        "unknown": "silent"
      },
      "stateTransitions": {
        "terminal": "terminal",
        "transient": "terminal",
        "not_found": "terminal",
        "unknown": "terminal"
      }
    }
  ]
}
agents object

Settings for subagents.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
overrides Record<string, object>

Override settings for specific agents, e.g. to disable the agent, set a custom model config, or run config.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
browser object

Settings specific to the browser agent.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
9 nested properties
sessionMode string

Session mode: 'persistent', 'isolated', or 'existing'.

  • Category: Advanced
  • Requires restart: yes
  • Default: persistent
Default: "persistent"
Values: "persistent" "isolated" "existing"
headless boolean

Run browser in headless mode.

  • Category: Advanced
  • Requires restart: yes
  • Default: false
Default: false
profilePath string

Path to browser profile directory for session persistence.

  • Category: Advanced
  • Requires restart: yes
visualModel string

Model for the visual agent's analyze_screenshot tool. When set, enables the tool.

  • Category: Advanced
  • Requires restart: yes
allowedDomains string[]

A list of allowed domains for the browser agent (e.g., ["github.com", "*.google.com"]).

  • Category: Advanced
  • Requires restart: yes
  • Default: [ "github.com", "*.google.com", "localhost" ]
Default:
[
  "github.com",
  "*.google.com",
  "localhost"
]
disableUserInput boolean

Disable user input on browser window during automation.

  • Category: Advanced
  • Requires restart: no
  • Default: true
Default: true
maxActionsPerTask number

The maximum number of tool calls allowed per browser task. Enforcement is hard: the agent will be terminated when the limit is reached.

  • Category: Advanced
  • Requires restart: no
  • Default: 100
Default: 100
confirmSensitiveActions boolean

Require manual confirmation for sensitive browser actions (e.g., fill_form, evaluate_script).

  • Category: Advanced
  • Requires restart: yes
  • Default: false
Default: false
blockFileUploads boolean

Hard-block file upload requests from the browser agent.

  • Category: Advanced
  • Requires restart: yes
  • Default: false
Default: false
context object

Settings for managing context provided to the model.

  • Category: Context
  • Requires restart: no
  • Default: {}
Default:
{}
8 nested properties
fileName string | string[]

Accepts either a single string or an array of strings.

importFormat string

The format to use when importing memory.

  • Category: Context
  • Requires restart: no
includeDirectoryTree boolean

Whether to include the directory tree of the current working directory in the initial request to the model.

  • Category: Context
  • Requires restart: no
  • Default: true
Default: true
discoveryMaxDirs number

Maximum number of directories to search for memory.

  • Category: Context
  • Requires restart: no
  • Default: 200
Default: 200
memoryBoundaryMarkers string[]

File or directory names that mark the boundary for GEMINI.md discovery. The upward traversal stops at the first directory containing any of these markers. An empty array disables parent traversal.

  • Category: Context
  • Requires restart: yes
  • Default: [ ".git" ]
Default:
[
  ".git"
]
includeDirectories string[]

Additional directories to include in the workspace context. Missing directories will be skipped with a warning.

  • Category: Context
  • Requires restart: no
  • Default: []
Default:
[]
loadMemoryFromIncludeDirectories boolean

Controls how /memory reload loads GEMINI.md files. When true, include directories are scanned; when false, only the current directory is used.

  • Category: Context
  • Requires restart: no
  • Default: false
Default: false
fileFiltering object

Settings for git-aware file filtering.

  • Category: Context
  • Requires restart: yes
  • Default: {}
Default:
{}
5 nested properties
respectGitIgnore boolean

Respect .gitignore files when searching.

  • Category: Context
  • Requires restart: yes
  • Default: true
Default: true
respectGeminiIgnore boolean

Respect .geminiignore files when searching.

  • Category: Context
  • Requires restart: yes
  • Default: true
Default: true
enableRecursiveFileSearch boolean

Enable recursive file search functionality when completing @ references in the prompt.

  • Category: Context
  • Requires restart: yes
  • Default: true
Default: true
enableFuzzySearch boolean

Enable fuzzy search when searching for files.

  • Category: Context
  • Requires restart: yes
  • Default: true
Default: true
customIgnoreFilePaths string[]

Additional ignore file paths to respect. These files take precedence over .geminiignore and .gitignore. Files earlier in the array take precedence over files later in the array, e.g. the first file takes precedence over the second one.

  • Category: Context
  • Requires restart: yes
  • Default: []
Default:
[]
tools object

Settings for built-in and custom tools.

  • Category: Tools
  • Requires restart: yes
  • Default: {}
Default:
{}
12 nested properties
sandbox boolean | string | object

Accepts either a boolean flag, a string command name, or a configuration object.

sandboxAllowedPaths string[]

List of additional paths that the sandbox is allowed to access.

  • Category: Tools
  • Requires restart: yes
  • Default: []
Default:
[]
sandboxNetworkAccess boolean

Whether the sandbox is allowed to access the network.

  • Category: Tools
  • Requires restart: yes
  • Default: false
Default: false
shell object

Settings for shell execution.

  • Category: Tools
  • Requires restart: no
  • Default: {}
Default:
{}
6 nested properties
enableInteractiveShell boolean

Use node-pty for an interactive shell experience. Fallback to child_process still applies.

  • Category: Tools
  • Requires restart: yes
  • Default: true
Default: true
backgroundCompletionBehavior string

Controls what happens when a background shell command finishes. 'silent' (default): quietly exits in background. 'inject': automatically returns output to agent. 'notify': shows brief message in chat.

  • Category: Tools
  • Requires restart: no
  • Default: silent
Default: "silent"
Values: "silent" "inject" "notify"
pager string

The pager command to use for shell output. Defaults to cat.

  • Category: Tools
  • Requires restart: no
  • Default: cat
Default: "cat"
showColor boolean

Show color in shell output.

  • Category: Tools
  • Requires restart: no
  • Default: true
Default: true
inactivityTimeout number

The maximum time in seconds allowed without output from the shell command. Defaults to 5 minutes.

  • Category: Tools
  • Requires restart: no
  • Default: 300
Default: 300
enableShellOutputEfficiency boolean

Enable shell output efficiency optimizations for better performance.

  • Category: Tools
  • Requires restart: no
  • Default: true
Default: true
core string[]

Restrict the set of built-in tools with an allowlist. Match semantics mirror tools.allowed; see the built-in tools documentation for available names.

  • Category: Tools
  • Requires restart: yes
allowed string[]

Tool names that bypass the confirmation dialog. Useful for trusted commands (for example ["run_shell_command(git)", "run_shell_command(npm test)"]). See shell tool command restrictions for matching details.

  • Category: Advanced
  • Requires restart: yes
exclude string[]

Tool names to exclude from discovery.

  • Category: Tools
  • Requires restart: yes
discoveryCommand string

Command to run for tool discovery.

  • Category: Tools
  • Requires restart: yes
callCommand string

Defines a custom shell command for invoking discovered tools. The command must take the tool name as the first argument, read JSON arguments from stdin, and emit JSON results on stdout.

  • Category: Tools
  • Requires restart: yes
useRipgrep boolean

Use ripgrep for file content search instead of the fallback implementation. Provides faster search performance.

  • Category: Tools
  • Requires restart: no
  • Default: true
Default: true
truncateToolOutputThreshold number

Maximum characters to show when truncating large tool outputs. Set to 0 or negative to disable truncation.

  • Category: General
  • Requires restart: yes
  • Default: 40000
Default: 40000
disableLLMCorrection boolean

Disable LLM-based error correction for edit tools. When enabled, tools will fail immediately if exact string matches are not found, instead of attempting to self-correct.

  • Category: Tools
  • Requires restart: yes
  • Default: true
Default: true
mcp object

Settings for Model Context Protocol (MCP) servers.

  • Category: MCP
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
serverCommand string

Command to start an MCP server.

  • Category: MCP
  • Requires restart: yes
allowed string[]

A list of MCP servers to allow.

  • Category: MCP
  • Requires restart: yes
excluded string[]

A list of MCP servers to exclude.

  • Category: MCP
  • Requires restart: yes
useWriteTodos boolean

Enable the write_todos tool.

  • Category: Advanced
  • Requires restart: no
  • Default: true
Default: true
security object

Security-related settings.

  • Category: Security
  • Requires restart: yes
  • Default: {}
Default:
{}
11 nested properties
toolSandboxing boolean

Tool-level sandboxing. Isolates individual tools instead of the entire CLI process.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
disableYoloMode boolean

Disable YOLO mode, even if enabled by a flag.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
disableAlwaysAllow boolean

Disable "Always allow" options in tool confirmation dialogs.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
enablePermanentToolApproval boolean

Enable the "Allow for all future sessions" option in tool confirmation dialogs.

  • Category: Security
  • Requires restart: no
  • Default: false
Default: false
autoAddToPolicyByDefault boolean

When enabled, the "Allow for all future sessions" option becomes the default choice for low-risk tools in trusted workspaces.

  • Category: Security
  • Requires restart: no
  • Default: false
Default: false
blockGitExtensions boolean

Blocks installing and loading extensions from Git.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
allowedExtensions string[]

List of Regex patterns for allowed extensions. If nonempty, only extensions that match the patterns in this list are allowed. Overrides the blockGitExtensions setting.

  • Category: Security
  • Requires restart: yes
  • Default: []
Default:
[]
folderTrust object

Settings for folder trust.

  • Category: Security
  • Requires restart: no
  • Default: {}
Default:
{}
1 nested properties
enabled boolean

Setting to track whether Folder trust is enabled.

  • Category: Security
  • Requires restart: yes
  • Default: true
Default: true
environmentVariableRedaction object

Settings for environment variable redaction.

  • Category: Security
  • Requires restart: no
  • Default: {}
Default:
{}
3 nested properties
allowed string[]

Environment variables to always allow (bypass redaction).

  • Category: Security
  • Requires restart: yes
  • Default: []
Default:
[]
blocked string[]

Environment variables to always redact.

  • Category: Security
  • Requires restart: yes
  • Default: []
Default:
[]
enabled boolean

Enable redaction of environment variables that may contain secrets.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
auth object

Authentication settings.

  • Category: Security
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
selectedType string

The currently selected authentication type.

  • Category: Security
  • Requires restart: yes
enforcedType string

The required auth type. If this does not match the selected auth type, the user will be prompted to re-authenticate.

  • Category: Advanced
  • Requires restart: yes
useExternal boolean

Whether to use an external authentication flow.

  • Category: Security
  • Requires restart: yes
enableConseca boolean

Enable the context-aware security checker. This feature uses an LLM to dynamically generate and enforce security policies for tool use based on your prompt, providing an additional layer of protection against unintended actions.

  • Category: Security
  • Requires restart: yes
  • Default: false
Default: false
advanced object

Advanced settings for power users.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
4 nested properties
autoConfigureMemory boolean

Automatically configure Node.js memory limits

  • Category: Advanced
  • Requires restart: yes
  • Default: true
Default: true
dnsResolutionOrder string

The DNS resolution order.

  • Category: Advanced
  • Requires restart: yes
excludedEnvVars string[]

Environment variables to exclude from project context.

  • Category: Advanced
  • Requires restart: no
  • Default: [ "DEBUG", "DEBUG_MODE" ]
Default:
[
  "DEBUG",
  "DEBUG_MODE"
]
bugCommand object

Configuration for the bug report helper command.

1 nested properties
urlTemplate string required

Template used to open a bug report URL. Variables in the template are populated at runtime.

experimental object

Setting to enable experimental features

  • Category: Experimental
  • Requires restart: yes
  • Default: {}
Default:
{}
20 nested properties
adk object

Settings for the Agent Development Kit (ADK).

  • Category: Experimental
  • Requires restart: yes
  • Default: {}
Default:
{}
1 nested properties
agentSessionNoninteractiveEnabled boolean

Enable non-interactive agent sessions.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
enableAgents boolean

Enable local and remote subagents.

  • Category: Experimental
  • Requires restart: yes
  • Default: true
Default: true
worktrees boolean

Enable automated Git worktree management for parallel work.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
extensionManagement boolean

Enable extension management features.

  • Category: Experimental
  • Requires restart: yes
  • Default: true
Default: true
extensionConfig boolean

Enable requesting and fetching of extension settings.

  • Category: Experimental
  • Requires restart: yes
  • Default: true
Default: true
extensionRegistry boolean

Enable extension registry explore UI.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
extensionRegistryURI string

The URI (web URL or local file path) of the extension registry.

  • Category: Experimental
  • Requires restart: yes
  • Default: https://geminicli.com/extensions.json
Default: "https://geminicli.com/extensions.json"
extensionReloading boolean

Enables extension loading/unloading within the CLI session.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
jitContext boolean

Enable Just-In-Time (JIT) context loading.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
useOSC52Paste boolean

Use OSC 52 for pasting. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it).

  • Category: Experimental
  • Requires restart: no
  • Default: false
Default: false
useOSC52Copy boolean

Use OSC 52 for copying. This may be more robust than the default system when using remote terminal sessions (if your terminal is configured to allow it).

  • Category: Experimental
  • Requires restart: no
  • Default: false
Default: false
taskTracker boolean

Enable task tracker tools.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
modelSteering boolean

Enable model steering (user hints) to guide the model during tool execution.

  • Category: Experimental
  • Requires restart: no
  • Default: false
Default: false
directWebFetch boolean

Enable web fetch behavior that bypasses LLM summarization.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
dynamicModelConfiguration boolean

Enable dynamic model configuration (definitions, resolutions, and chains) via settings.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
gemmaModelRouter object

Enable Gemma model router (experimental).

  • Category: Experimental
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
enabled boolean

Enable the Gemma Model Router (experimental). Requires a local endpoint serving Gemma via the Gemini API using LiteRT-LM shim.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
classifier object

Classifier configuration.

  • Category: Experimental
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
host string

The host of the classifier.

  • Category: Experimental
  • Requires restart: yes
  • Default: http://localhost:9379
Default: "http://localhost:9379"
model string

The model to use for the classifier. Only tested on gemma3-1b-gpu-custom.

  • Category: Experimental
  • Requires restart: yes
  • Default: gemma3-1b-gpu-custom
Default: "gemma3-1b-gpu-custom"
memoryManager boolean

Replace the built-in save_memory tool with a memory manager subagent that supports adding, removing, de-duplicating, and organizing memories.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
generalistProfile boolean

Suitable for general coding and software development tasks.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
contextManagement boolean

Enable logic for context management.

  • Category: Experimental
  • Requires restart: yes
  • Default: false
Default: false
topicUpdateNarration boolean

Enable the experimental Topic & Update communication model for reduced chattiness and structured progress reporting.

  • Category: Experimental
  • Requires restart: no
  • Default: false
Default: false
extensions object

Settings for extensions.

  • Category: Extensions
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
disabled string[]

List of disabled extensions.

  • Category: Extensions
  • Requires restart: yes
  • Default: []
Default:
[]
workspacesWithMigrationNudge string[]

List of workspaces for which the migration nudge has been shown.

  • Category: Extensions
  • Requires restart: no
  • Default: []
Default:
[]
skills object

Settings for agent skills.

  • Category: Advanced
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
enabled boolean

Enable Agent Skills.

  • Category: Advanced
  • Requires restart: yes
  • Default: true
Default: true
disabled string[]

List of disabled skills.

  • Category: Advanced
  • Requires restart: yes
  • Default: []
Default:
[]
hooksConfig object

Hook configurations for intercepting and customizing agent behavior.

  • Category: Advanced
  • Requires restart: no
  • Default: {}
Default:
{}
3 nested properties
enabled boolean

Canonical toggle for the hooks system. When disabled, no hooks will be executed.

  • Category: Advanced
  • Requires restart: yes
  • Default: true
Default: true
disabled string[]

List of hook names (commands) that should be disabled. Hooks in this list will not execute even if configured.

  • Category: Advanced
  • Requires restart: no
  • Default: []
Default:
[]
notifications boolean

Show visual indicators when hooks are executing.

  • Category: Advanced
  • Requires restart: no
  • Default: true
Default: true
hooks Record<string, array>

Event-specific hook configurations.

  • Category: Advanced
  • Requires restart: no
  • Default: {}
Default:
{}
11 nested properties
BeforeTool object[]

Array of hook definition objects for a specific event.

AfterTool object[]

Array of hook definition objects for a specific event.

BeforeAgent object[]

Array of hook definition objects for a specific event.

AfterAgent object[]

Array of hook definition objects for a specific event.

Notification object[]

Array of hook definition objects for a specific event.

SessionStart object[]

Array of hook definition objects for a specific event.

SessionEnd object[]

Array of hook definition objects for a specific event.

PreCompress object[]

Array of hook definition objects for a specific event.

BeforeModel object[]

Array of hook definition objects for a specific event.

AfterModel object[]

Array of hook definition objects for a specific event.

BeforeToolSelection object[]

Array of hook definition objects for a specific event.

contextManagement object

Settings for agent history and tool distillation context management.

  • Category: Experimental
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
historyWindow object

Description not provided.

  • Category: Context Management
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
maxTokens number

The number of tokens to allow before triggering compression.

  • Category: Context Management
  • Requires restart: yes
  • Default: 150000
Default: 150000
retainedTokens number

The number of tokens to always retain.

  • Category: Context Management
  • Requires restart: yes
  • Default: 40000
Default: 40000
messageLimits object

Description not provided.

  • Category: Context Management
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
normalMaxTokens number

The target number of tokens to budget for a normal conversation turn.

  • Category: Context Management
  • Requires restart: yes
  • Default: 2500
Default: 2500
retainedMaxTokens number

The maximum number of tokens a single conversation turn can consume before truncation.

  • Category: Context Management
  • Requires restart: yes
  • Default: 12000
Default: 12000
normalizationHeadRatio number

The ratio of tokens to retain from the beginning of a truncated message (0.0 to 1.0).

  • Category: Context Management
  • Requires restart: yes
  • Default: 0.25
Default: 0.25
tools object

Description not provided.

  • Category: Context Management
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
distillation object

Description not provided.

  • Category: Context Management
  • Requires restart: yes
  • Default: {}
Default:
{}
2 nested properties
maxOutputTokens number

Maximum tokens to show to the model when truncating large tool outputs.

  • Category: Context Management
  • Requires restart: yes
  • Default: 10000
Default: 10000
summarizationThresholdTokens number

Threshold above which truncated tool outputs will be summarized by an LLM.

  • Category: Context Management
  • Requires restart: yes
  • Default: 20000
Default: 20000
outputMasking object

Advanced settings for tool output masking to manage context window efficiency.

  • Category: Context Management
  • Requires restart: yes
  • Default: {}
Default:
{}
3 nested properties
protectionThresholdTokens number

Minimum number of tokens to protect from masking (most recent tool outputs).

  • Category: Context Management
  • Requires restart: yes
  • Default: 50000
Default: 50000
minPrunableThresholdTokens number

Minimum prunable tokens required to trigger a masking pass.

  • Category: Context Management
  • Requires restart: yes
  • Default: 30000
Default: 30000
protectLatestTurn boolean

Ensures the absolute latest turn is never masked, regardless of token count.

  • Category: Context Management
  • Requires restart: yes
  • Default: true
Default: true
admin object

Settings configured remotely by enterprise admins.

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
4 nested properties
secureModeEnabled boolean

If true, disallows YOLO mode and "Always allow" options from being used.

  • Category: Admin
  • Requires restart: no
  • Default: false
Default: false
extensions object

Extensions-specific admin settings.

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
1 nested properties
enabled boolean

If false, disallows extensions from being installed or used.

  • Category: Admin
  • Requires restart: no
  • Default: true
Default: true
mcp object

MCP-specific admin settings.

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
3 nested properties
enabled boolean

If false, disallows MCP servers from being used.

  • Category: Admin
  • Requires restart: no
  • Default: true
Default: true
config Record<string, object>

Admin-configured MCP servers (allowlist).

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
requiredConfig Record<string, object>

Admin-required MCP servers that are always injected.

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
skills object

Agent Skills-specific admin settings.

  • Category: Admin
  • Requires restart: no
  • Default: {}
Default:
{}
1 nested properties
enabled boolean

If false, disallows agent skills from being used.

  • Category: Admin
  • Requires restart: no
  • Default: true
Default: true

Definitions

MCPServerConfig object

Definition of a Model Context Protocol (MCP) server configuration.

command string

Executable invoked for stdio transport.

args string[]

Command-line arguments for the stdio transport command.

env Record<string, string>

Environment variables to set for the server process.

cwd string

Working directory for the server process.

url string

URL for SSE or HTTP transport. Use with "type" field to specify transport type.

httpUrl string

Streaming HTTP transport URL.

headers Record<string, string>

Additional HTTP headers sent to the server.

tcp string

TCP address for websocket transport.

type string

Transport type. Use "stdio" for local command, "sse" for Server-Sent Events, or "http" for Streamable HTTP.

Values: "stdio" "sse" "http"
timeout number

Timeout in milliseconds for MCP requests.

trust boolean

Marks the server as trusted. Trusted servers may gain additional capabilities.

description string

Human-readable description of the server.

includeTools string[]

Subset of tools that should be enabled for this server. When omitted all tools are enabled.

excludeTools string[]

Tools that should be disabled for this server even if exposed.

extension Record<string, string | boolean | number>

Metadata describing the Gemini CLI extension that owns this MCP server.

oauth object

OAuth configuration for authenticating with the server.

authProviderType string

Authentication provider used for acquiring credentials (for example dynamic_discovery).

Values: "dynamic_discovery" "google_credentials" "service_account_impersonation"
targetAudience string

OAuth target audience (CLIENT_ID.apps.googleusercontent.com).

targetServiceAccount string

Service account email to impersonate ([email protected]).

RequiredMcpServerConfig object

Admin-required MCP server configuration (remote transports only).

url string

URL for the required MCP server.

type string

Transport type for the required server.

Values: "sse" "http"
headers Record<string, string>

Additional HTTP headers sent to the server.

timeout number

Timeout in milliseconds for MCP requests.

trust boolean

Marks the server as trusted. Defaults to true for admin-required servers.

description string

Human-readable description of the server.

includeTools string[]

Subset of tools enabled for this server.

excludeTools string[]

Tools disabled for this server.

oauth object

OAuth configuration for authenticating with the server.

authProviderType string

Authentication provider used for acquiring credentials.

Values: "dynamic_discovery" "google_credentials" "service_account_impersonation"
targetAudience string

OAuth target audience (CLIENT_ID.apps.googleusercontent.com).

targetServiceAccount string

Service account email to impersonate ([email protected]).

TelemetrySettings object

Telemetry configuration for Gemini CLI.

enabled boolean

Enables telemetry emission.

target string

Telemetry destination (for example stderr, stdout, or otlp).

otlpEndpoint string

Endpoint for OTLP exporters.

otlpProtocol string

Protocol for OTLP exporters.

Values: "grpc" "http"
logPrompts boolean

Whether prompts are logged in telemetry payloads.

outfile string

File path for writing telemetry output.

useCollector boolean

Whether to forward telemetry to an OTLP collector.

useCliAuth boolean

Whether to use CLI authentication for telemetry (only for in-process exporters).

BugCommandSettings object

Configuration for the bug report helper command.

urlTemplate string required

Template used to open a bug report URL. Variables in the template are populated at runtime.

SummarizeToolOutputSettings object

Controls summarization behavior for individual tools. All properties are optional.

tokenBudget number

Maximum number of tokens used when summarizing tool output.

AgentOverride object

Override settings for a specific agent.

modelConfig object
runConfig object

Run configuration for an agent.

2 nested properties
maxTimeMinutes number

The maximum execution time for the agent in minutes.

maxTurns number

The maximum number of conversational turns.

enabled boolean

Whether to enable the agent.

CustomTheme object

Custom theme definition used for styling Gemini CLI output. Colors are provided as hex strings or named ANSI colors.

type string required
Default: "custom"
Values: "custom"
name string required

Theme display name.

text object
4 nested properties
primary string
secondary string
link string
accent string
background object
2 nested properties
primary string
diff object
2 nested properties
added string
removed string
border object
2 nested properties
default string
focused string
ui object
3 nested properties
comment string
symbol string
gradient string[]
status object
3 nested properties
error string
success string
warning string
Background string
Foreground string
LightBlue string
AccentBlue string
AccentPurple string
AccentCyan string
AccentGreen string
AccentYellow string
AccentRed string
DiffAdded string
DiffRemoved string
Comment string
Gray string
DarkGray string
GradientColors string[]
StringOrStringArray string | string[]

Accepts either a single string or an array of strings.

BooleanOrStringOrObject boolean | string | object

Accepts either a boolean flag, a string command name, or a configuration object.

HookDefinitionArray object[]

Array of hook definition objects for a specific event.

ModelDefinition object

Model metadata registry entry.

displayName string
tier enum
Values: "pro" "flash" "flash-lite" "custom" "auto"
family string
isPreview boolean
isVisible boolean
dialogDescription string
features object
2 nested properties
thinking boolean
multimodalToolUse boolean
ModelResolution object

Model resolution rule.

default string
contexts object[]
ModelPolicyChain object[]

A chain of model policies for fallback behavior.

ModelPolicy object

Defines the policy for a single model in the availability chain.

model string required
isLastResort boolean
actions object
4 nested properties
terminal string
Values: "silent" "prompt"
transient string
Values: "silent" "prompt"
not_found string
Values: "silent" "prompt"
unknown string
Values: "silent" "prompt"
stateTransitions object
4 nested properties
terminal string
Values: "terminal" "sticky_retry"
transient string
Values: "terminal" "sticky_retry"
not_found string
Values: "terminal" "sticky_retry"
unknown string
Values: "terminal" "sticky_retry"