Stay organized with collections
Save and categorize content based on your preferences.
The Gemini command line interface (CLI) is an open source
AI agent that provides access to Gemini directly in your terminal. The
Gemini CLI uses a reason and act (ReAct) loop with your built-in tools
and local or remote MCP servers to complete complex use cases like fixing bugs,
creating new features, and improving test coverage. While the Gemini
CLI excels at coding, it's also a versatile local utility that you can use for
a wide range of tasks, from content generation and problem solving to deep
research and task management.
Gemini Code Assist for individuals, Standard, and Enterprise each
provide quotas for using the Gemini CLI. Note that these
quotas are shared between Gemini CLI and Gemini Code Assist
agent mode.
The Gemini CLI is available without additional setup in
Cloud Shell. To get
started with Gemini CLI in other environments, see the
Gemini CLI documentation.
Gemini Code Assist agent mode
Gemini Code Assist agent mode in VS Code is powered by
Gemini CLI. A subset of Gemini CLI functionality is
available directly in the Gemini Code Assist chat within your IDE.
The following Gemini CLI features are available in
Gemini Code Assist for VS Code.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Gemini CLI\n\n| **Preview**\n|\n|\n| This product is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\n\u003cbr /\u003e\n\nThe [Gemini command line interface (CLI)](https://github.com/google-gemini/gemini-cli) is an open source\nAI agent that provides access to Gemini directly in your terminal. The\nGemini CLI uses a reason and act (ReAct) loop with your built-in tools\nand local or remote MCP servers to complete complex use cases like fixing bugs,\ncreating new features, and improving test coverage. While the Gemini\nCLI excels at coding, it's also a versatile local utility that you can use for\na wide range of tasks, from content generation and problem solving to deep\nresearch and task management.\n\nGemini Code Assist for individuals, Standard, and Enterprise each\n[provide quotas](/gemini/docs/quotas) for using the Gemini CLI. Note that these\nquotas are shared between Gemini CLI and Gemini Code Assist\nagent mode.\n\nThe Gemini CLI is available without additional setup in\n[Cloud Shell](https://cloud.google.com/shell/docs/use-cloud-shell-terminal). To get\nstarted with Gemini CLI in other environments, see the\n[Gemini CLI documentation](https://github.com/google-gemini/gemini-cli).\n\nGemini Code Assist agent mode\n-----------------------------\n\n[Gemini Code Assist agent mode](/gemini/docs/codeassist/use-agentic-chat-pair-programmer) in VS Code is powered by\nGemini CLI. A subset of Gemini CLI functionality is\navailable directly in the Gemini Code Assist chat within your IDE.\n\nThe following Gemini CLI features are available in\nGemini Code Assist for VS Code.\n\n- [Model Context Protocol (MCP) servers](/gemini/docs/codeassist/use-agentic-chat-pair-programmer#configure-mcp-servers)\n- Gemini CLI [commands](https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/commands.md): `/memory`, `/stats`, `/tools`, `/mcp`\n- [Yolo mode](/gemini/docs/codeassist/use-agentic-chat-pair-programmer#yolo-mode)\n- built-in tools like grep, terminal, file read or file write\n- Web search\n- Web fetch"]]