AI for code tower · floor

Gemini CLI: open-source client, three sets of terms

Google describes it in six words on the front page of the repository: “an open-source AI agent that brings the power of Gemini directly into your terminal”. Both halves of that are true, and they are true of different things.

Apache 2.0

The program on your machine

“Gemini CLI software is licensed under the Apache 2.0 license.” You can read it, fork it, change it, ship it.

This is the part the phrase “open-source AI agent” is describing, and it is true.

Google’s terms

The service it talks to

“When you use Gemini CLI to access or use Google’s services, the Terms of Service and Privacy Notices applicable to those services apply to such access and use.”

The model does not run on your machine. The licence on the client says nothing about the terms on the other end.

That distinction is not a criticism. Google says it plainly on the same page, and it follows from what the program is: a client. The model is somewhere else, and the client is the part that was opened. But it changes what the word “open” settles. It settles what the program does with your files and how it behaves, because you can read it. It does not settle what happens to what you send. For that you have to know which door you came in through.

Three ways to sign in, three different sets of terms

Google lists them separately, and which one you used decides which documents govern your use.

Your Google account
Routes you into Gemini Code Assist. If you do not already have an account there, Google says “you will be directed to the sign up flow for Gemini Code Assist for individuals”. And a warning worth reading before you try it at work: “If your Google account is managed by your organization, your administrator may not permit access.”
A Gemini API key
Governed by the Gemini API Terms of Service — and Google publishes separate terms for unpaid and paid use of the same API.
A Vertex AI key
Governed by the Google Cloud Platform terms and the Cloud privacy notice instead. Same program, same prompt, different contract.

That table is the most useful thing on this page for anybody deciding whether to point this at work code. The same command, typed the same way, sits under Google Terms of Service, Gemini API terms, or Google Cloud Platform terms depending on which sign-in was used. That choice is made once, during setup, and it is not restated afterwards — so if the answer matters, the thing to go and check is how you authenticated.

The other number people arrive looking for is the limit, and Google publishes it as a table rather than a headline.

What the free tier gives you

Maximum model requests per user per day, from Google’s own table.

Two details in that table are worth pulling out, because the numbers alone do not carry them. The free route through a Google account gives four times the daily requests of the free route through an API key — and the difference is not only volume. Google says the API-key free tier makes “model requests to Flash model only”, while the Google-account route spreads requests “across the Gemini model family as determined by Gemini CLI”. So one free tier is larger and picks its own model; the other is smaller and fixed.

And a caveat attached to all of it: requests “are limited per user per minute and are subject to the availability of the service in times of high demand”. A published ceiling is not a guarantee of a floor.

“Directly accessing the services powering Gemini CLI… using third-party software, tools, or services… is a violation of applicable terms and policies. Such actions may be grounds for suspension or termination of your account.”

This is the sentence that shows where the open licence stops. The code is yours to modify; the credentials are not yours to lend to another program. Google gives an example in the same line — pointing a different tool at the Gemini CLI login — and attaches the consequence directly. It is a specific prohibition rather than general boilerplate: Google names an example — pointing another tool at the Gemini CLI login — and states the consequence in the same sentence.

Getting it, in Google’s own words. Three routes are listed: run it without installing with npx @google/gemini-cli, install it globally with npm install -g @google/gemini-cli, or on macOS and Linux with brew install gemini-cli. The first of those is the one to know about — it lets you try the thing without leaving anything behind on the machine, which for a tool that reads your files and runs shell commands is a reasonable way to start.

What the tool can reach once it is running is stated plainly in the same README, and it is a wider set than “a chat window in a terminal” suggests: Google Search grounding, file operations, shell commands, web fetching, plus support for MCP — the Model Context Protocol — “for custom integrations”. Two items on that list deserve to be read slowly. File operations and shell commands mean the agent is not only answering; it is acting, on the machine you are sitting at.

That is worth being clear-eyed about, and it is stated by Google rather than inferred here: file operations and shell commands are on the published list of what the tool can do. What no documentation settles is how much room to give it. This page’s own suggestion, offered as such: point it first at something you could throw away and rebuild, rather than at the repository you could not.

One last thing Google publishes that is easy to miss, and it is a control rather than a warning. “Your Gemini CLI Usage Statistics are handled in accordance with Google’s Privacy Policy” — and there is an opt-out: the documentation links to a Usage Statistics configuration page for turning the sending off. That is separate from what happens to your prompts, which is governed by whichever of the three sets of terms applies to you.

What this page will not tell you is whether Google trains on what you send. That answer lives in the individual privacy notices for Gemini Code Assist, the Gemini API and Vertex AI respectively — three different documents, for three different sign-in routes, and it is those that have to be read rather than a summary of them.

The floors below take it three ways: the licence and the terms, the limits, and the wider question of what it means to let a program act on your machine.

Where to start

Three ways in. The first is the one people get wrong.

“It is open source, so my code is private, right?”
Not quite. Start at licence and terms
“How much can I use for free?”
That is the limits
“It runs shell commands?”
Yes. Read letting it act

Licence and terms

An Apache 2.0 client in front of a service governed by whichever of three agreements matches how you signed in. The licence and the terms are answering different questions.

The limits

A published table of daily requests, two free tiers that differ in size and in which models they reach, and a caveat about high demand attached to all of it.

Letting it act

File operations and shell commands are on the published feature list. That makes the setup question — what you point it at — the real safety question.

What this tower will not do

It will not tell you the open licence covers your data. Google states in the same document that the terms of the services being called apply to that, and names three different sets of them.

It will not quote one free limit. Google publishes a table with different numbers for different sign-in routes, and picking one figure out of it would be right for some readers and wrong for the rest.

And it will not judge whether the tool is any good. That needs running it against real work for long enough to have an opinion worth publishing, which this site has not done. What holds instead is simple: the description of Gemini CLI as an open-source AI agent, the Apache 2.0 licence and the statement that the terms of the services being accessed apply separately, the three authentication routes and their respective terms, the note about organisation-managed accounts, the daily request table, the difference between the two free tiers including the Flash-only limitation, the high-demand caveat, the prohibition on third-party access to the underlying services, the installation commands, the built-in tool list and the usage-statistics opt-out are quoted from Google’s own Gemini CLI documentation, listed below.

Where this page got its facts

  1. Google, Gemini CLI — README (that Gemini CLI is an open-source AI agent bringing Gemini into the terminal; that the free tier offers 60 requests per minute and 1,000 requests per day with a personal Google account; that it provides access to Gemini 3 models with a 1M token context window; the built-in tools of Google Search grounding, file operations, shell commands and web fetching; support for MCP, the Model Context Protocol, for custom integrations; that it is Apache 2.0 licensed; and the three installation routes via npx, a global npm install and Homebrew) — github.com, read 22 August 2026.
  2. Google, Gemini CLI: Quotas and pricing (the table of maximum model requests per user per day by authentication method and tier — Google account with Gemini Code Assist for individuals at 1,000, Google AI Pro at 1,500, Google AI Ultra at 2,000, a Gemini API key on the free unpaid tier at 250, and Workspace Code Assist Standard at 1,500 with Enterprise and Workspace AI Ultra at 2,000; that requests through the Google-account route are made across the Gemini model family as determined by Gemini CLI while the unpaid API-key tier makes requests to the Flash model only; and that requests are limited per user per minute and are subject to the availability of the service in times of high demand) — github.com, read 22 August 2026.
  3. Google, Gemini CLI: License, Terms of Service, and Privacy Notices (that the Gemini CLI software is licensed under the Apache 2.0 licence, and that when it is used to access Google’s services the terms of service and privacy notices applicable to those services apply to that access and use; that directly accessing the services powering Gemini CLI using third-party software, tools or services is a violation of applicable terms and policies which may be grounds for suspension or termination of an account; the three supported authentication methods — a Google account signing in to Gemini Code Assist, a Gemini Developer API key, and a Vertex AI GenAI API key — each governed by different terms of service and privacy notices, with separate unpaid and paid terms for the Gemini API; that a user signing in with a Google account without an existing Gemini Code Assist account is directed to the sign-up flow for Gemini Code Assist for individuals, and that an administrator of an organisation-managed Google account may not permit that access; that Gemini CLI Usage Statistics are handled in accordance with Google’s Privacy Policy; and that usage statistics can be opted out of via the usage statistics configuration) — github.com, read 22 August 2026.

Written by Alberto Gulotta

Founder and editor of AI Tools Primer, writing from Palermo, Italy. Thirty-five years of taking computers apart, starting with a Commodore 64 — the long version is on the about page.

Something wrong on this page? Write to aitoolsprimer@gmail.com and it gets fixed.

Written on 22 August 2026.

Independence and limits

No affiliate links and no paid placements anywhere on this site. Nobody pays to appear here, and no company has seen this page before you did.

This is general information, not professional advice. Where a page touches money, health, safety or the law, it names its source and the date it was read — and your situation may still differ. See the privacy page and the cookie policy.