Gemini CLI is Google's open source AI agent for the terminal, under Apache 2.0. Access now needs a Code Assist licence or a paid key. Checked 30 Nov 2026.
Gemini CLI is Google’s open source AI agent for your terminal: you type a request and it reads your code, edits files and runs commands. It is free software under Apache 2.0, but it has no free tier now: you need a Gemini Code Assist licence from your organisation or a paid API key. Checked 30 Nov 2026.
What is Gemini CLI? # #
Gemini CLI is a command line program, run as gemini, that works on the project in the folder where you start it. Its README, read 30 Nov 2026, calls it “an open-source terminal agent maintained for enterprise Gemini Code Assist workflows on Google Cloud.” The features it lists include “Query and edit large codebases”, building apps “from PDFs, images, or sketches”, and running “non-interactively in scripts for workflow automation”.
It works through built in tools for the file system, shell commands and web fetch and search. The README’s script example is gemini -p "Explain the architecture of this codebase"; add --output-format json for structured output.
Its model menu offers Gemini 3 and Gemini 2.5. The model docs, read 30 Nov 2026, offer Auto (Gemini 3), which chooses between gemini-3-pro-preview and gemini-3-flash-preview, Auto (Gemini 2.5) with gemini-2.5-pro and gemini-2.5-flash, or Manual. The README warns it is “Not tuned for the Gemini 4 series”.
Here are the basics, each read on 30 Nov 2026:
| Fact | Detail | Source |
|---|---|---|
| Latest stable release | v0.71.1, 24 Nov 2026 | GitHub release |
| Licence | Apache License 2.0 | LICENSE file |
| GitHub stars | 109,388 | Repository |
| Recommended systems | macOS 15+, Windows 11 24H2+, Ubuntu 20.04+; Node 20.0.0 or later | Installation page |
| Who can use it | Code Assist Standard or Enterprise, Code Assist for GitHub on Google Cloud, legacy paid API or Vertex keys | README |
| Auto model options | Gemini 3 and Gemini 2.5 | Model docs |
Is Gemini CLI free? # #
The code is free, but model access for individuals is not. The README opens with a notice: “No free tier or Google AI plans”, since “Free individual access and Google AI Pro / Ultra (Google One) moved to Antigravity CLI on June 18, 2026”. So since 18 Jun 2026, Gemini CLI no longer serves free or Google AI Pro and Ultra sign ins.
Google’s transition post of 19 May 2026 set that date. For organisations on a Gemini Code Assist Standard or Enterprise licence it says “your access remains unchanged”, and adds that Gemini CLI “will remain accessible via paid Gemini and Gemini Enterprise Agent Platform API keys.” The README’s own table now describes the tool as for “Organizations with Gemini Code Assist Standard / Enterprise or Code Assist for GitHub on Google Cloud (plus legacy paid API / Vertex keys)”.
What is the Gemini CLI quota? # #
On 30 Nov 2026, Google lists at most 1,500 model requests per user per day on Gemini Code Assist Standard and 2,000 on Gemini Code Assist Enterprise. Its quota and pricing page puts both under the heading “Through your organization”, for a work licence. The page was last updated 18 Jun 2026 and also says “Requests are limited per user per minute and are subject to the availability of the service in times of high demand.”
On a paid Gemini API key the quota “Varies by pricing tier”, and Vertex AI uses “a dynamic shared quota system or pre-purchased provisioned throughput.” The page says the /stats model command shows your session’s token usage and the limits on your quota.
Read that page with care. Its banner says “Unpaid tier and Google One users: Gemini CLI was replaced by Antigravity CLI on June 18th, 2026”, yet its table still shows rows for the old free and personal plans. We think the banner is the current word.
What can Gemini CLI do beyond chat? # #
Its docs cover three features beyond chat: MCP servers, GEMINI.md context files and sandboxing.
MCP servers. The MCP docs, read 30 Nov 2026, say “Gemini CLI supports three MCP transport types”: Stdio, SSE and Streamable HTTP. You list servers under mcpServers in ~/.gemini/settings.json, or add one with gemini mcp add. A server can connect the agent to databases, APIs or your own scripts.
Context files. The context file docs describe the place for project rules, a persona or a style guide. The CLI loads a global ~/.gemini/GEMINI.md, then GEMINI.md files in your workspace and its parent folders. It “concatenates the contents of all found files, and sends them to the model with every prompt.” /memory show prints what it loaded, and a context.fileName setting can set other names, such as AGENTS.md.
Sandboxing. You turn it on with -s, --sandbox, the GEMINI_SANDBOX variable or settings.json. The sandbox docs, read 30 Nov 2026, list five methods. They include macOS Seatbelt, whose default profile “confines writes to the project directory while allowing broad file reads and network access”, and Docker or Podman containers.
How do you start? # #
Install it with npm, then run gemini in your project folder. This is the README’s global install command:
npm install -g @google/gemini-cli
The README also lists npx @google/gemini-cli to run it without installing, and brew install gemini-cli on macOS and Linux. It offers three sign ins: Sign in with Google (with a Code Assist licence, set GOOGLE_CLOUD_PROJECT first), a GEMINI_API_KEY, or Vertex AI. Our Gemini CLI install guide walks through each method.
Should you use Antigravity CLI or Claude Code instead? # #
If you sign in with a personal Google account, Antigravity CLI is Google’s answer. The README’s table describes Antigravity CLI (agy) as an “Interactive multi-agent coding terminal” to use for “Gemini 4 Argon+, free / Google AI Pro & Ultra accounts, or Google Cloud.”
If you would rather leave Google, our Gemini CLI alternatives page covers the other options, and Gemini CLI vs Claude Code goes feature by feature. Our view: stay on Gemini CLI if your company already pays for Code Assist, since Google says that access remains unchanged.
Can you run it with other agents? # #
Yes. Munder Difflin is free and open source: a desktop app that runs a team of AI agents for all kinds of knowledge work, coding included, on your own computer. Its README, read 30 Nov 2026, lists Gemini CLI as an engine beside Claude Code and Codex, and says “Each agent picks its own, so one office can mix them.” It adds that “Each agent runs the real CLI you already use, signed in with your own plan.” Agents can also run in its Cloud Office, always on, with your computer off. Setup is in how to install and use Munder Difflin, and more explainers sit in our Concepts hub.
FAQ #
Is Gemini CLI free?
The code is: it is open source under the Apache License 2.0. Using it is no longer free for individuals. Its README, read 30 Nov 2026, says "No free tier or Google AI plans", because free individual access and Google AI Pro and Ultra moved to Antigravity CLI on 18 Jun 2026. Gemini Code Assist Standard or Enterprise, Code Assist for GitHub on Google Cloud and legacy paid API or Vertex keys still work.
What is the Gemini CLI quota?
Google's quota page, read 30 Nov 2026, lists a maximum of 1,500 model requests per user per day on Gemini Code Assist Standard and 2,000 on Gemini Code Assist Enterprise, and says requests are also limited per user per minute. On a paid Gemini API key the quota "Varies by pricing tier." The /stats model command shows your own limits.
Does Gemini CLI support MCP servers?
Yes. Its MCP docs, read 30 Nov 2026, list three transports: Stdio, SSE and Streamable HTTP. You define servers under mcpServers in settings.json, or add one with gemini mcp add.
What is GEMINI.md?
It is Gemini CLI's context file. Its docs, read 30 Nov 2026, say the CLI loads ~/.gemini/GEMINI.md, then GEMINI.md files in your workspace and its parent folders, and sends them to the model with every prompt. The context.fileName setting can set other names, such as AGENTS.md.
Should I use Antigravity CLI instead?
If you sign in with a personal Google account, yes. Gemini CLI's README, read 30 Nov 2026, sends free and Google AI Pro and Ultra accounts, and Gemini 4 Argon users, to Antigravity CLI (agy). If your organisation pays for Code Assist Standard or Enterprise, Google's post of 19 May 2026 says "your access remains unchanged."