Skip to main content
Cloud / Google Cloud / Products / Gemini CLI - AI Agent in the Terminal

Gemini CLI - AI Agent in the Terminal

Gemini CLI: open-source AI agent by Google that brings Gemini into the terminal with a ReAct loop, built-in tools, and MCP extensibility.

Developer Tools
Pricing Model Open-source tool; production access via a Gemini Code Assist subscription (Standard/Enterprise) or a Gemini API key on pay-as-you-go pricing
Availability Cross-platform (macOS, Windows, Linux), usable in EU regions
Data Sovereignty EU regions available via Gemini Code Assist and Vertex AI
Reliability N/A SLA

What is Gemini CLI?

Gemini CLI is an open-source AI agent by Google that makes the Gemini models available directly in the terminal. The agent is published on GitHub under the Apache 2.0 license and uses a reason-and-act (ReAct) loop: it plans a step, runs a tool, evaluates the result, and plans the next step. Built-in tools cover Google Search and grounding, web fetch, reading and writing files, shell commands, and grep. Through the Model Context Protocol (MCP), you can extend its capabilities with custom tools and data sources.

Gemini CLI solves a concrete problem in day-to-day development: many tasks happen on the command line, while AI assistance has so far been tied mostly to the IDE or the browser. With Gemini CLI, developers bring the AI agent to where they already work. The agent can read and change code, run commands, and research on the web without requiring a context switch. In Google Cloud Shell, Gemini CLI is available with no additional setup.

Since June 18, 2026, Gemini CLI and the Gemini Code Assist IDE extensions have stopped serving requests under the former free tier for individuals as well as the Google AI Pro and Ultra tiers. Google migrated these user groups to the new, separate multi-agent platform Antigravity and its Antigravity CLI. Access via a Gemini Code Assist subscription (Standard or Enterprise) or a Gemini API key remains unchanged, and the open-source Gemini CLI project itself remains available.

Core Features

  • ReAct loop with built-in tools: The agent combines reasoning and tool execution in a loop, using built-in tools such as Google Search, web fetch, file operations, shell commands, and grep.
  • MCP extensibility: Local and remote Model Context Protocol servers add tools, APIs, and internal data sources, so the agent can be adapted to your own environment.
  • Slash commands for control: Built-in commands such as /memory, /stats, /tools, and /mcp control context, configuration, and available tools directly within the session.
  • Cross-platform and scriptable: Gemini CLI runs on macOS, Windows, and Linux in any terminal, is usable without setup in Cloud Shell, and supports a non-interactive mode for script-based automation.

Typical Use Cases

Analyze and fix bugs: Developers let the agent read the relevant code, narrow down the root cause of an error, and propose or directly apply a fix without leaving the terminal.

Generate features and tests: The agent creates new functionality, improves test coverage, and adjusts existing files by combining file operations and shell commands within the ReAct loop.

Connect internal systems via MCP: Through custom MCP servers, the agent accesses internal APIs, databases, or tools and becomes part of your own development and operations processes.

Benefits

  • Open source under Apache 2.0: transparent implementation, custom extensions, and no proprietary lock-in
  • AI assistance directly in the terminal instead of context switching between IDE, browser, and command line
  • Extensible via MCP: connect your own tools and data sources to internal processes
  • Flexible access via a Code Assist subscription or pay-as-you-go via API key

Integration with innFactory

As a certified Google Cloud Partner, innFactory supports you with the adoption and operation of this service.

Typical Use Cases

Analyze and fix bugs from the terminal
Generate new features and tests across the codebase
Connect custom tools and data sources via MCP servers
Automate routine tasks non-interactively in scripts

Frequently Asked Questions

What is Gemini CLI?

Gemini CLI is an open-source AI agent (Apache 2.0) by Google that makes the Gemini models available directly in the terminal. The agent uses a reason-and-act (ReAct) loop and built-in tools such as Google Search, web fetch, file operations, shell commands, and grep. Through the Model Context Protocol (MCP), it can be extended with custom tools and data sources. Google announced Gemini CLI on June 25, 2025.

When should I use Gemini CLI?

Gemini CLI is a good fit when you want to work directly in the command line without switching to an IDE: analyzing and fixing bugs, generating new features and tests, doing research and content generation, and automating recurring tasks via scripts in non-interactive mode. It is also useful when you want to connect the agent to your own internal systems through MCP.

How much does Gemini CLI cost?

Gemini CLI itself is open source (Apache 2.0) and free to download. However, since June 18, 2026, the tool no longer serves requests under the former free tier for individuals or the Google AI Pro and Ultra tiers; affected users were migrated to Antigravity CLI. Gemini CLI remains usable with a Gemini Code Assist subscription (Standard or Enterprise) or a Gemini API key on pay-as-you-go pricing. Current limits are listed in the official pricing documentation.

How do I extend Gemini CLI with MCP?

Gemini CLI supports local and remote Model Context Protocol (MCP) servers. With them you connect additional tools, APIs, and internal data sources that the agent can use within its ReAct loop. Configured servers and available tools can be inspected and managed through built-in slash commands such as /mcp and /tools.

Note: All product information on this page has been compiled with care, but is provided without guarantee and may be outdated or incomplete. Cloud services evolve rapidly — features, pricing, SLAs, and availability change frequently. Authoritative and up-to-date information can only be found on the official product page of Google Cloud (official documentation). This page does not represent an offer by Google Cloud.

Google Cloud Partner

innFactory is a certified Google Cloud Partner. We provide expert consulting, implementation, and managed services.

Google Cloud Partner

Similar Products from Other Clouds

Other cloud providers offer comparable services in this category. As a multi-cloud partner, we help you choose the right solution.

STACKIT

STACKIT Container Registry - Secure Image Management

STACKIT Container Registry (Beta): private repository for container images with vulnerability scanning, German data …

Pricing Currently free during the beta phase; …
SLA SLA as published by the provider; the service is currently in beta
Compare →
STACKIT

STACKIT Git - Managed Forgejo Hosting

STACKIT Git: managed Git hosting based on Forgejo with GitHub-Actions-compatible STACKIT Pipelines, GDPR-compliant.

Pricing Monthly billing based on number of users …
SLA SLA as published by the provider
Compare →
AWS

AWS CDK: Infrastructure as Code in Programming Languages

The AWS Cloud Development Kit defines infrastructure in TypeScript, Python, Java, C#, or Go and provisions it through …

Pricing Per the FAQ there is no additional …
SLA N/A (open source framework without its own SLA)
Compare →
AWS

AWS CLI: Control AWS Services from the Command Line

The AWS CLI is an open source command line tool for all AWS services — for scripting, automation, and day-to-day …

Pricing Open source tool; you are billed only …
SLA N/A (open source tool without its own SLA)
Compare →
AWS

AWS Distro for OpenTelemetry - Observability Distribution

AWS Distro for OpenTelemetry (ADOT) is a secure, production-ready open-source distribution of OpenTelemetry for traces, …

Pricing No cost for ADOT itself; you pay for the …
SLA As stated by the provider; see official documentation
Compare →
AWS

AWS SAM: Define and Deploy Serverless Applications

The AWS Serverless Application Model describes serverless applications in shorthand CloudFormation syntax and tests them …

Pricing Open source framework; charges apply for …
SLA N/A (open source framework without its own SLA)
Compare →

38 comparable products found across other clouds.

Ready to start with Gemini CLI - AI Agent in the Terminal?

Our certified Google Cloud experts help you with architecture, integration, and optimization.

Schedule Consultation