Gemini CLI Stay organized with collections Save and categorize content based on your preferences.
TheGemini command line interface (CLI) is an open sourceAI agent that provides access to Gemini directly in your terminal. TheGemini CLI uses a reason and act (ReAct) loop with your built-in toolsand local or remote MCP servers to complete complex use cases like fixing bugs,creating new features, and improving test coverage. While the GeminiCLI excels at coding, it's also a versatile local utility that you can use fora wide range of tasks, from content generation and problem solving to deepresearch and task management.
EachGemini Code Assist editionprovidesquotas for using theGemini CLI. Note that these quotas are shared between GeminiCLI andGemini Code Assist agent mode. GeminiCLI also supports using a Gemini API key topay as you go.
The Gemini CLI is available without additional setup inCloud Shell. To getstarted with Gemini CLI in other environments, see theGemini CLI documentation.
Privacy
For users of Gemini Code Assist Standard and Enterprise, thedata protection and privacy practices described inSecurity, privacy, and compliance for Gemini Code Assist Standard and Enterprisealso apply to Gemini CLI.
Gemini Code Assist agent mode (Preview)
Gemini Code Assist agent mode in VS Code is powered byGemini CLI. A subset of Gemini CLI functionality isavailable directly in the Gemini Code Assist chat within VS Code.
The following Gemini CLI features are available inGemini Code Assist for VS Code.
- Model Context Protocol (MCP) servers
- Gemini CLIcommands:
/memory,/stats,/tools,/mcp - Yolo mode
- built-in tools like grep, terminal, file read or file write
- Web search
- Web fetch
What's next
- Read more aboutGemini CLI documentation.
- Download andinstall Gemini CLI.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.