▶ General
Preferred Editor
Max Age Max Count Min Retention
▶ Output
Output Format
▶ UI Appearance
UI Theme
Terminal Background Polling Interval
Custom Loading Phrases
▶ IDE Integration
▶ Model Configuration
Model Name
Max Session Turns
Compression Threshold
▶ Context & Files
Memory Discovery Max Dirs
Custom Ignore File Paths
▶ Tools & Shell
Sandbox Profile
Shell Pager
Inactivity Timeout (sec)
Approval Mode
Output Truncation Threshold
Core Tools Allowlist
Auto-Approved Tools
Excluded Tools
Discovery Command
Call Command
▶ Security
Auth Type
Allowed Extensions (Regex List)
▶ Experimental
▶ Skills

Custom Aliases

Define your own model presets by extending built-in ones or creating new configurations.

MCP Servers

Connect to Model Context Protocol servers to provide Gemini with custom tools and data.

Sub-agents

Sub-agents are specialized agents that operate within your main Gemini CLI session to handle specific, complex tasks.

▶ Built-in Sub-agents
Max Turns
Investigator Model
CLI Help Agent (cli_help) - Always enabled. Get expert knowledge about Gemini CLI.
Generalist Agent (generalist_agent) - Always enabled. Routes tasks to specialized agents.
▶ Custom Sub-agents

Create .md files with YAML frontmatter in .gemini/agents/ or ~/.gemini/agents/

Example Template:

---
name: security-auditor
description: Specialized in finding security vulnerabilities.
kind: local
tools: [read_file, grep_search]
model: gemini-2.5-pro
temperature: 0.2
max_turns: 10
---
You are a ruthless Security Auditor. Your job is to analyze code for potential vulnerabilities.
...

Environment Settings

Configure environment variables and key files for the current scope.

.env
system.md
GEMINI.md

IDE Integration Fix

If you see "agy not found" error during IDE integration setup, use this button to fix the command name in your local installation.