Skip to content
The Agents Index

Gemini CLI

Open-source Apache-2.0 terminal agent that runs Google's Gemini models against your local codebase.

Gemini CLI is Google's open-source AI agent for the terminal, driving Gemini models against local files, shell commands and web search. It ships built-in subagents, an MCP client, a tool policy engine and a headless JSON mode for scripting.

Best for
Developers who want an open-source terminal agent on their own Gemini key
Not for
Developers who want Claude, GPT or open models: it runs Gemini only. Google now points free users to Antigravity CLI.

What we checked

Pages last read
Facts checked
35 factsFrom 13 sources
AI answers
Named in 4 of 151Our October check

What we checked on Gemini CLI

YesPartlyNo

What it doesYes

Writes code

Authors new code from a description and from multimodal input, with a write_file tool that creates files after you confirm the change.

Generate new apps from PDFs, images, or sketches using multimodal capabilities

github.com/google-gemini/gemini-cliChecked

What it doesYes

Debugs and fixes

The vendor names debugging and troubleshooting as a core use, and the agent can edit files and run shell commands to land a fix after confirmation.

Debug issues and troubleshoot with natural language

github.com/google-gemini/gemini-cliChecked

What it doesYes

Whole-codebase work

Built for repository-wide work: the vendor claims querying and editing large codebases, and a built-in codebase_investigator subagent maps dependencies across the repo.

Query and edit large codebases

github.com/google-gemini/gemini-cliChecked

What it doesPartly

Ships it

It does not deploy as a product feature; it executes arbitrary shell commands, so a release runs through your own scripts and each mutating call needs manual confirmation.

Executes arbitrary shell commands. Supports interactive sessions and background processes. Requires manual confirmation.

geminicli.com/docs/reference/toolsChecked

What it doesNo

Done-for-you service

No people-delivered service: this is software you install yourself from npm, Homebrew or MacPorts and run on your own machine.

Gemini CLI is an open-source AI agent that brings the power of Gemini directly into your terminal.

github.com/google-gemini/gemini-cliChecked

How much it does unattendedPartly

Runs autonomously

Default mode asks before any write or shell call; a yolo approval mode auto-approves every tool, and in non-interactive runs an ask_user decision is treated as a denial.

yolo: A mode where all tools are auto-approved (use with extreme caution).

geminicli.com/docs/reference/policy-eng…Checked

How much it does unattendedYes

Multi-agent

Several specialist subagents run inside one session with their own context and tools; the main agent delegates to them automatically or via @name, and remote subagents are flagged experimental.

Subagents are specialized agents that operate within your main Gemini CLI session.

geminicli.com/docs/core/subagentsChecked

How much it does unattendedYes

Agent permissions

A rule-based policy engine decides per tool call whether to allow, deny or ask the user, with priority tiers running from built-in defaults up to administrator rules.

It allows users and administrators to define rules that determine whether a tool call should be allowed, denied, or require user confirmation.

geminicli.com/docs/reference/policy-eng…Checked

Which models it runs onNo

Claude

The model picker enumerates only Gemini options and every supported authentication path is a Google inference service, so Anthropic's models are not among the choices.

On the page: How to use the /model command, options table

geminicli.com/docs/cli/modelChecked

Which models it runs onNo

GPT

The /model dialog lists Gemini 3 and Gemini 2.5 families only, and authentication is limited to Gemini Code Assist, the Gemini Developer API and Vertex AI, so OpenAI models cannot be selected.

Supported authentication methods include: Logging in with your Google account to Gemini Code Assist. Using an API key with Gemini Developer API.…

geminicli.com/docs/resources/tos-privacyChecked

Which models it runs onYes

Gemini

Gemini is the only model family: you pick Auto for Gemini 3 or 2.5, or select a specific Pro, Flash or Flash-Lite model manually.

Select your Gemini CLI model. The /model command lets you configure the model used by Gemini CLI, giving you more control over your results.

geminicli.com/docs/cli/modelChecked

Which models it runs onNo

Open models

No open-weight option: the model dialog offers Gemini models only and all three documented authentication paths are hosted Google services.

On the page: Supported authentication methods, bulleted list

geminicli.com/docs/resources/tos-privacyChecked

Which models it runs onPartly

Model choice

You choose the model, but only within Gemini: Auto routing is recommended, Manual exposes specific Gemini Pro and Flash models, and no third-party family appears.

We recommend selecting one of the above Auto options. However, you can select Manual to select a specific model from those available.

geminicli.com/docs/cli/modelChecked

Where you use itYes

In your editor

A VS Code companion extension supplies open-file context and native diff review, and the Agent Client Protocol registry carries it into JetBrains IDEs and Zed.

The Gemini CLI Companion extension grants Gemini CLI direct access to your VS Code compatible IDEs and improves your experience by providing…

geminicli.com/docs/ide-integrationChecked

Where you use itYes

On the command line

The terminal is the primary surface: an interactive TUI started with the gemini command, installed globally through npm, Homebrew, MacPorts or run via npx.

Gemini CLI brings the power of Gemini models directly into your terminal. Use it to understand code, automate tasks, and build workflows with your…

geminicli.com/docsChecked

Where you use itPartly

In your pipeline

Headless mode gives scripts a JSON or streaming-JSON interface with documented exit codes, but confirmation prompts become denials when non-interactive, so unattended CI needs explicit policy rules.

Headless mode provides a programmatic interface to Gemini CLI, returning structured text or JSON output without an interactive terminal UI.

geminicli.com/docs/cli/headlessChecked

Whose machine it runs onYes

Self-hosted

The agent itself runs entirely on your own machine or container: install it from npm or Homebrew, and tool execution can be isolated in a sandbox or Docker.

npm install -g @google/gemini-cli

geminicli.com/docsChecked

Whose machine it runs onYes

Open source

Source is public on GitHub under Apache 2.0, and the vendor invites code contributions and community extensions.

We welcome contributions! Gemini CLI is fully open source (Apache 2.0), and we encourage the community to:

github.com/google-gemini/gemini-cliChecked

Whose machine it runs onYes

Licence

open source: the CLI is licensed Apache 2.0, which permits commercial redistribution, while use of the Google services it calls is governed separately by each service's terms.

Gemini CLI software is licensed under the Apache 2.0 license. When you use Gemini CLI to access or use Google's services, the Terms of Service and…

geminicli.com/docs/resources/tos-privacyChecked

Whose machine it runs onPartly

Open-source runtime

The binary is yours to run offline of any vendor account, but every model call needs a Google credential: an OAuth login, a Gemini API key or Vertex AI.

Your authentication method refers to the method you use to log into and access Google's services with Gemini CLI.

geminicli.com/docs/resources/tos-privacyChecked

Whose machine it runs onPartly

Runs in your cloud

Inference can run in your own Google Cloud project through Vertex AI with its own quota and billing, but no other cloud is offered as a backend.

An enterprise-grade platform for building, deploying, and managing AI models, including Gemini. It offers enhanced security, data governance, and…

geminicli.com/docs/resources/quota-and-…Checked

Building with itYes

Tracing and evals

Built-in OpenTelemetry emits logs, metrics and traces for each run, exportable to any OTLP backend or straight to Google Cloud Trace, Monitoring and Logging; it is off by default.

Gemini CLI provides built-in support for OpenTelemetry, transforming every agent interaction into a rich stream of logs, metrics, and traces.

geminicli.com/docs/cli/telemetryChecked

What it costs to runYes

How it meters

Two models run side by side: fixed-price subscriptions metered as model requests per user per day, or pay-as-you-go billed per token through an API key or Vertex AI.

It's important to highlight that when using an API key, you pay per token/call.

geminicli.com/docs/resources/quota-and-…Checked

What it costs to runPartly

Cost of one job

On the cheapest route a developer-day costs nothing but is capped at 1,000 model requests when you sign in with Google, or 250 on a free Gemini API key; no per-task price is published.

1000 maximum model requests / user / day

geminicli.com/docs/resources/quota-and-…Checked

What it costs to runYes

Free tier

No sales call: install the package, sign in with a Google account and the free tier starts immediately, or use a free-tier Gemini API key instead.

Gemini CLI offers a generous free tier that covers many individual developers' use cases.

geminicli.com/docs/resources/quota-and-…Checked

What it costs to runYes

API access

Headless mode is the programmatic path: drive the agent with -p from your own stack and parse single-object JSON or newline-delimited event streams, with documented exit codes.

Headless mode is triggered when the CLI is run in a non-TTY environment or when providing a query with the -p (or --prompt) flag.

geminicli.com/docs/cli/headlessChecked

What it costs to runYes

Bring your own key

You can supply your own inference credentials: a Gemini API key from AI Studio, or Google Cloud credentials and a project for Vertex AI, set through environment variables.

Ideal for developers who want to quickly build applications with the Gemini models. This is the most direct way to use the models.

geminicli.com/docs/resources/quota-and-…Checked

Buying it for a teamYes

A company can buy it

An organisation can buy it as licensed seats: Gemini Code Assist Standard or Enterprise through Google Cloud, or Workspace AI Ultra on a Workspace account.

Quotas and pricing are based on a fixed price subscription with assigned license seats.

geminicli.com/docs/resources/quota-and-…Checked

Buying it for a teamPartly

Seat model

Organisation buying is per assigned licence seat with a per-user daily request ceiling of 1,500 on Standard and 2,000 on Enterprise; no seat minimum or seat price is published here.

Gemini Code Assist Standard edition: 1500 maximum model requests / user / day

geminicli.com/docs/resources/quota-and-…Checked

Buying it for a teamPartly

Pooled budget

Subscription quota is per user per day rather than a shared pot, while the pay-as-you-go Vertex path draws on project-level dynamic shared quota instead.

Quota: Governed by a dynamic shared quota system or pre-purchased provisioned throughput.

geminicli.com/docs/resources/quota-and-…Checked

Buying it for a teamYes

Admin controls

Administrators constrain the agent through machine-wide settings files that override user and workspace settings, plus an Admin policy tier that outranks user rules on every tool call.

These files allow you to define a baseline configuration (system-defaults.json) and a set of overrides (settings.json) that apply to all users on a…

geminicli.com/docs/cli/enterpriseChecked

What happens to your codePartly

Opt out of training

You can switch off the CLI's own usage statistics, but what happens to prompts depends on the service you authenticate against, and AI Studio's free tier states data may be used to improve products.

You may opt-out from sending Gemini CLI Usage Statistics to Google by following the instructions available here: Usage Statistics Configuration.

geminicli.com/docs/resources/tos-privacyChecked

What happens to your codePartly

Data residency

Regional data residency is offered only on the Vertex AI path, which the vendor pairs with an SLA; the Google-account and API-key routes carry no residency commitment on these pages.

SLA and regional data residency

geminicli.com/plansChecked

What happens to your codePartly

Certifications

Enterprise security and compliance is claimed for the Vertex AI route under Google Cloud terms; no SOC 2, ISO 27001 or GDPR certificate is named for Gemini CLI on its own pages.

Enterprise security & compliance

geminicli.com/plansChecked

Gemini CLI price and terms

Terms

Free plan
YesYes
The terms in full

Standing free tier with no card: 1,000 model requests per user per day signing in with a Google account, or 250 requests per day on a free Gemini API key (Flash model only). Vertex AI Express mode is free for 90 days before billing must be enabled.

For AI agents

API
Yes

Where these prices come from

geminicli.com/docs/resources/quota-and-pricing, checked

All plans and limits

PlanPriceMain limits
Gemini CLIFreeNone stated

Read from geminicli.com/docs/resources/quota-and-pricing.

Gemini CLI alternatives

All 8 alternatives

Head to headGemini CLI vs Claude Code

Questions about Gemini CLI

How much does Gemini CLI cost?
Gemini CLI is free to use. From geminicli.com/docs/resources/quota-and-pricing, checked 24 October 2026.
Does Gemini CLI have an API or an MCP server?
It has an API.
Is Gemini CLI open source, and can you host it yourself?
It is open source. You can host it yourself.
What have we checked on Gemini CLI?
35 facts, under these headings: What it does, how much it does unattended, which models it runs on, where you use it, whose machine it runs on, building with it, what it costs to run, buying it for a team, what happens to your code.
How do we check Gemini CLI?
We hold 35 facts on Gemini CLI, quoted from 13 pages. Facts and price last checked 24 October 2026.

How we check every listing

Similar to Gemini CLI

See all in Terminal coding agents

From our research

All research

Is this yours?

Claiming is free. You get this page's reader numbers and the verified owner mark.

Report an error if a fact is wrong.