Gemini CLI

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.

The Gemini CLI is available for Gemini Code Assist for individuals, Standard, and Enterprise editions.

Quotas are shared between Gemini CLI and Gemini Code Assist agent mode.

To get started with Gemini CLI, 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.