> [!IMPORTANT]
> **Important:** Gemini CLI is not optimized for the latest Gemini models. For the best coding experience with Gemini models, use [Antigravity CLI](https://antigravity.google/product/antigravity-cli).

The [Gemini command line interface (CLI)](https://geminicli.com/docs/) is an open source
AI agent that provides access to Gemini directly in your local or
Cloud Shell 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.

Each [Gemini Code Assist edition](https://docs.cloud.google.com/gemini/docs/codeassist/overview.md.txt)
provides [quotas](https://geminicli.com/docs/quota-and-pricing/) for using the
Gemini CLI. Note that these quotas are shared between Gemini
CLI and [Gemini Code Assist agent mode](https://docs.cloud.google.com/gemini/docs/codeassist/agent-mode.md.txt). Gemini
CLI also supports using a Gemini API key to
[pay as you go](https://geminicli.com/docs/quota-and-pricing/#pay-as-you-go).

The Gemini CLI is available without additional setup in
[Cloud Shell](https://docs.cloud.google.com/shell/docs/use-cloud-shell-terminal.md.txt). To get
started with Gemini CLI in other environments, see the
[Gemini CLI documentation](https://geminicli.com/docs/).

### Privacy

For users of Gemini Code Assist Standard and Enterprise, the
data protection and privacy practices described in
[Security, privacy, and compliance for Gemini Code Assist Standard and Enterprise](https://docs.cloud.google.com/gemini/docs/codeassist/security-privacy-compliance.md.txt)
also apply to Gemini CLI.

## What's next

- Read more about [Gemini CLI documentation](https://geminicli.com/docs/).
- Download and [install Gemini CLI](https://geminicli.com/docs/get-started/installation/).
- Learn about [Gemini Code Assist agent mode](https://docs.cloud.google.com/gemini/docs/codeassist/agent-mode.md.txt), which is powered by the Gemini CLI in VS Code.