CLI tool
google-gemini/gemini-cli avatar
google-gemini/gemini-cli

Gemini CLI: Google's Terminal Agent, Its Quotas, and Its Release Cadence

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

107,004 stars14,584 forksTypeScriptApache-2.0

At a glance

What is it?
Gemini CLI puts Gemini models, Google Search grounding, and MCP support in a terminal tool with a free tier. The weekly preview-to-stable pipeline and three authentication paths are the details that matter before you adopt it.
Who is it for?
Adopt Gemini CLI if you are an individual developer who wants a free, terminal-based Gemini agent with Google Search grounding and MCP extensibility, and you can tolerate a weekly release cadence. Do not adopt it if you need enterprise-grade support, strict model control, or a stable API; the preview and nightly channels are explicitly unvetted, and the stable channel still changes weekly.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What Gemini CLI Actually Solves

Gemini CLI is a TypeScript-based command-line agent that gives you direct access to Gemini models without leaving the terminal. It solves the problem of context switching: instead of pasting code into a web chat, you run commands against your local files and get model responses that can read and edit those files. The intended user is a developer who lives in the shell and wants AI assistance for code understanding, generation, and operational tasks like querying pull requests or handling rebases. The README also mentions generating apps from PDFs, images, or sketches via multimodal input, which broadens the audience to anyone prototyping from visual specs. The free tier is a core selling point: 60 requests per minute and 1,000 requests per day with a personal Google account. That is a concrete limit, not marketing fluff, and it shapes whether this tool is viable for heavy automation.

The Mechanism: Built-in Tools and MCP Extensibility

The agent works by combining Gemini's model capabilities with a set of built-in tools. The README lists Google Search grounding for real-time information, file operations, shell commands, and web fetching. That means the agent can read a file, run a shell command, fetch a URL, and then reason over the results, all within a single session. The data flow is prompt in, tool calls out, results back into the model context. The 1M token context window for Gemini 3 models is significant because it lets the agent hold large codebases in context, which is what makes codebase-wide edits feasible. Extensibility comes through the Model Context Protocol (MCP), which lets you plug in custom servers. The README points to an example for media generation with Imagen, Veo, or Lyria, but MCP is a general standard, so you can connect any MCP server. This is a differentiator from a plain chat wrapper, because it turns the CLI into a hub for external tools, not just a text interface.

Getting It Running: Four Install Paths and Three Auth Modes

Installation is straightforward, with options for every environment. You can run it instantly with `npx @google/gemini-cli`, install globally with `npm install -g @google/gemini-cli`, use Homebrew with `brew install gemini-cli` on macOS/Linux, or use MacPorts with `sudo port install gemini-cli` on macOS. For restricted environments, the README shows a conda-based install: create a conda env with nodejs, activate it, then run `npm install -g @google/gemini-cli` inside that env. Authentication has three paths. Option 1 is OAuth sign-in with a Google account, which gives you the free tier and no API key management, but if you have a paid Code Assist License you must set `export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"` before running `gemini`. Option 2 is a Gemini API key, set via `export GEMINI_API_KEY="YOUR_API_KEY"`, which gives model selection and usage-based billing. Option 3 is Vertex AI, set via `export GOOGLE_API_KEY="YOUR_API_KEY"` and `export GOOGLE_GENAI_USE_VERTEXAI=true`, aimed at enterprise teams. The trade-off is clear: OAuth is simplest but ties you to Google account quotas, while an API key gives you control over which Gemini model you call.

Release Channels: The Real Operational Risk

Gemini CLI publishes three channels with a strict weekly cadence. Stable releases go out every Tuesday at 20:00 UTC, and they are the full promotion of the previous week's preview release plus bug fixes and validations. Preview releases go out every Tuesday at 23:59 UTC, and the README warns they 'may contain regressions or other outstanding issues.' Nightly releases are published every day at 00:00 UTC and 'should be assumed there are pending validations and issues.' This is a fast-moving project, and the release notes are explicit about the risk. For a production workflow, you would install with `npm install -g @google/gemini-cli@latest` to get the stable channel, but even stable changes weekly. That means your scripts and MCP configs could break on a Tuesday without notice. The nightly tag is for people who want to test the latest main-branch changes and are willing to file issues. This cadence is a genuine limitation: if you need a frozen, long-term-supported version, this tool does not offer one.

Authentication as a Decision Point: Free Tier vs. Enterprise

The three auth options are not interchangeable; they lead to different quotas and model access. The OAuth free tier gives 60 requests/min and 1,000 requests/day, which is a hard cap. If you are running automated scripts that make many calls, you will hit that limit quickly. The API key option also has a free tier of 1,000 requests/day with Gemini 3, but it lets you upgrade for higher limits with usage-based billing. Vertex AI is the enterprise path, with higher rate limits tied to a billing account and integration with Google Cloud infrastructure. The README mentions that OAuth is also for anyone with a Gemini Code Assist License, which suggests a paid tier exists for organizations. The choice matters because the free tier's 1,000 requests/day is a boundary on what you can automate. For a CI pipeline that runs dozens of reviews per day, that might be fine. For a team running hundreds of agent invocations, it will not be.

Where It Falls Short: Limitations and Wrong Use Cases

The most obvious limitation is the quota. The free tier's 1,000 requests per day is a ceiling that the README states plainly, and it applies to both OAuth and API key auth. If your workload involves large-scale codebase analysis or heavy automation, you will need a paid tier or Vertex AI, which adds cost and complexity. A second limitation is the release cadence. The README itself warns that preview and nightly releases are not fully vetted, and even stable releases come out weekly. That makes it a poor fit for environments where you need reproducibility and long-term stability, such as regulated industries or production systems that cannot tolerate a Tuesday update breaking a script. A third limitation is that the tool is tied to Google's hosted models. You cannot run it against a local model or a different provider, which is a dealbreaker for teams with data residency requirements. The wrong use case is any scenario where you need offline operation, strict version pinning, or non-Google model access.

Alternatives and How They Differ

The closest alternatives are other terminal-based AI agents, such as OpenAI's Codex CLI or open-source projects like Continue. The key difference is the model and the integration. Gemini CLI is built specifically for Gemini models, with Google Search grounding built in, so it leverages Google's infrastructure. Codex CLI, by contrast, is tied to OpenAI's models, and its tool set and authentication are different. Continue is a different approach: it is an IDE extension rather than a terminal-first agent, so it integrates with editors like VS Code and JetBrains, whereas Gemini CLI is purely command-line. If you want a terminal agent that works with multiple model providers, you might look at a tool like Open Interpreter, which is model-agnostic and lets you plug in different APIs. The practical difference is that Gemini CLI gives you the tightest integration with Gemini's 1M context and Google Search, but that also means you are locked into Google's ecosystem. For someone who already uses Google Cloud or Gemini, that is a benefit; for someone who wants provider flexibility, it is a constraint.

Maintenance, License, and What to Verify First

The project is actively maintained, with nightly releases every day and a last push date of August 29, 2026, which indicates continuous development. The license is Apache-2.0, which is permissive for commercial use, but note that the tool itself is a client to Google's hosted Gemini API, so the service terms for that API apply separately. That is a license implication worth checking: the code is open, but the model access is not. The maintenance cost for you is low in terms of code, since the CLI is a dependency, but the upgrade cost is real because of the weekly releases. You will need to track the changelog and test your MCP servers and scripts after each stable promotion. Before adopting, verify three things: your Google account's actual quota limits, which can change, the current list of supported models, since the README mentions `gemini -m gemini-2.5-flash` as an example, and the state of the MCP ecosystem, because the README only shows one example. The documentation at geminicli.com/docs is the authoritative source for these details, since the README is truncated and may not reflect the latest changes.

Editorial conclusion

Adopt Gemini CLI if you are an individual developer who wants a free, terminal-based Gemini agent with Google Search grounding and MCP extensibility, and you can tolerate a weekly release cadence. Do not adopt it if you need enterprise-grade support, strict model control, or a stable API; the preview and nightly channels are explicitly unvetted, and the stable channel still changes weekly. Before using it, verify your Google account's quota limits, decide between OAuth and API key authentication, and check the documentation for the current model list and any breaking changes in the changelog. The project's value is tied to Google's hosted service, so your adoption hinges on the free tier's 1,000 requests per day being enough for your workflow.

Official sources

  1. Official documentation
  2. Official README
  3. Project repository
  4. Release notes
Community notes

Community notes