Gemini CLI: turn off usage statistics and telemetry
How do I disable Gemini CLI telemetry?
Set privacy.usageStatisticsEnabled to false in ~/.gemini/settings.json to stop usage statistics, and keep telemetry.enabled false (it can also be set with GEMINI_TELEMETRY_ENABLED).
Settings
~/.gemini/settings.json
{
"privacy": { "usageStatisticsEnabled": false },
"telemetry": { "enabled": false }
}Project settings in .gemini/settings.json override user settings, and environment variables and command-line flags override both.
Sources
More Gemini CLI guides
- Gemini CLI: YOLO mode, auto_edit and allowing specific shell commands
- Configure Gemini CLI with settings.json
- Gemini CLI extensions and custom commands
- GEMINI.md in Gemini CLI: context file locations, imports and /memory
- Gemini CLI MCP servers: gemini mcp add and mcpServers in settings.json
- Gemini CLI custom slash commands: TOML files, {{args}}, !{shell} and @{file}
- Gemini CLI headless mode: gemini -p, JSON output and exit codes for scripts and CI
- Gemini CLI sandbox: enable Docker, Podman, macOS Seatbelt or gVisor
- Gemini CLI hooks: settings.json, BeforeTool, AfterTool, exit codes and /hooks
Reviewed Oct 18, 2026. Settings change often; the linked vendor docs are the source of truth.
Built an MCP server? Get it listed everywhere →
Shipping an Android app? Google Play needs 12 testers for 14 days first. Get them with Tester Exchange →