BlogAI Governance
AI Governance12 min read· July 9, 2026

Gemini CLI Free Tier Shut Down

Carolina Fogliato

Published July 7, 2026 · updated July 9, 2026

The free login died June 18, 2026. Here's how to get the CLI running again on a key — and why a vendor policy change shouldn't be able to take your AI stack with it.

On June 18, 2026, Gemini CLI stopped serving requests for the free "Sign in with Google" path, plus the AI Pro and Ultra logins.

The binary is not dead. It is still Apache-2.0, still maintained, and still runs on an API key. If you are staring at "This client is no longer supported for Gemini Code Assist for individuals," you have an auth problem, not a broken install.

This guide does two things. First: the concrete fixes to get the CLI working again, sorted from free-tier stopgap to production setup. Second — the part most guides skip — what this shutdown actually teaches you about depending on a vendor you don't control.

If you'd rather have someone build the resilient version for you, we do that too.


30-SECOND DIAGNOSIS

Is your Gemini CLI broken? Three checks

Most people who think the CLI is broken are one environment variable away from working. Run these in order.

StepWhat to checkWhat it means
1The error text"This client is no longer supported for Gemini Code Assist for individuals" means the free OAuth login is gone. "Quota exceeded … limit: 0" or a 429 means your key has no paid quota.
2Which auth you useRun gemini and watch startup. If it opens a browser to sign in with Google, you're on the retired consumer login. If it reads an env var, you're on API-key auth.
3echo $GEMINI_API_KEYEmpty output plus a browser login prompt confirms you never moved off the free tier. That is the whole problem.

If step 1 shows the "no longer supported" message, skip to Fix 1. If it shows a 429 or limit: 0, you already have a key but no quota — go to Fix 3.


ERROR SIGNATURES

Match your error to the fix

Four errors cover almost every report. A login error points at your auth method. A limit: 0 error points at billing. They look the same in the terminal and need opposite fixes.

Error you seeReal causeFix
This client is no longer supported for Gemini Code Assist for individuals. To continue using Gemini, please migrate to the Antigravity suite of products.You're on the retired free OAuth login. The browser step succeeds, but the token exchange is refused server-side.Fix 1 — switch to an API key
You must be a named user on your organization's Gemini Code Assist Standard edition subscription … (403)A personal account hitting an org-only entitlement gate.Fix 1 or Fix 5 — license / Vertex
Quota exceeded for metric: generativelanguage.googleapis.com/generate_content_free_tier_requests, limit: 0Your key is on the Free Tier with zeroed quota; no paid provisioning behind it.Fix 3 — enable billing
429: rate limit exceeded with limit: 0 on a paid subscriberA Google One AI Pro subscription does not auto-provision paid API quota to your key.Fix 3 — enable billing, set a real cap

FIRST DECISION

Fix in place, or switch tools?

This is the decision that saves you an afternoon of poking at the wrong layer.

Fix Gemini CLI in place (Fixes 1–5) if

  • You have existing scripts, aliases, or CI that call gemini and you don't want to rewrite them.
  • You're fine paying per token and want the same tool you already know.
  • You need the Vertex AI or Code Assist license path — both left untouched by the June 18 change.

Switch to Antigravity CLI if

  • You only ever used the free consumer login, don't want to enable billing, and want the path Google is actively steering consumers toward.
  • You want the newer async background-agent workflow and don't mind that it's a separate, closed-source binary.

Stop rule. If you've re-run the Google login three times, cleared ~/.gemini, and reinstalled the CLI and still see "no longer supported," stop. Reinstalling cannot fix a server-side auth policy. The token exchange is being refused on purpose. Move to an API key and the loop ends.


WHAT ACTUALLY CHANGED

Three auth paths, three outcomes

The popular "Gemini CLI is dead" framing gets it wrong. Google announced this at I/O 2026 and published it on the Developers Blog as "Transitioning Gemini CLI to Antigravity CLI."

On June 18, 2026, Gemini CLI and Gemini Code Assist IDE extensions will stop serving requests for Google AI Pro and Ultra, as well as those using it free of charge using Gemini Code Assist for individuals.

Auth pathStatus after June 18, 2026What to do
OAuth "Sign in with Google" free tier (Code Assist for individuals, AI Pro, Ultra)Shut down. Requests no longer served.Move to an API key, or move to Antigravity CLI.
Gemini API key from AI StudioWorks. Free tier still exists for Flash models; paid tier fully supported.Set GEMINI_API_KEY, enable billing for real quota.
Paid Gemini / Vertex "Gemini Enterprise Agent Platform" key, or Code Assist Standard/Enterprise licenseExplicitly unchanged.Keep going. Nothing to do.

The binary itself is fine. The repo is not archived, the license is still Apache-2.0, and v0.49.0 shipped a week after the shutdown. When someone tells you to abandon your setup, they are conflating "the free login ended" with "the tool ended." Only the first one is true.


THE FIXES

How to keep Gemini CLI running

Sorted from "free, works in five minutes" to "production setup." Apply the tier that matches you.

Free / Individual Tier

Fix 1: Switch from Google login to an AI Studio API key

This is the core move and it resolves the "no longer supported" message directly. Create a key at aistudio.google.com/apikey, then:

export GEMINI_API_KEY="your_ai_studio_key"
gemini "say hi"

A working response means you're back in business. To confirm the CLI is actually on the key and not silently falling back to a cached login:

echo "${GEMINI_API_KEY:0:6}..."   # should show key chars, not empty

For a menu, run /auth inside the CLI and pick the API key option instead of "Login with Google." The setting is saved in ~/.gemini/settings.json so you only do it once.

Precedence caveat: the client libraries accept both GEMINI_API_KEY and GOOGLE_API_KEY, and if both are set, GOOGLE_API_KEY wins. If your key looks correct but behaves oddly, check for a stray GOOGLE_API_KEY in your shell profile left over from an old Vertex experiment.

Fix 2: Reset a broken auth state before you blame the key

If you switched keys but the CLI still tries to log in with Google, the old selectedAuthType is cached. Clear it:

# Back up first, then reset the CLI's saved auth choice
mv ~/.gemini/settings.json ~/.gemini/settings.json.bak
gemini   # will prompt /auth again; pick the API key option

This is also the fix for "Please set an Auth method" and for the case where the CLI refuses to switch auth types while an API key is set. A stale settings file causes more "it still doesn't work" reports than any actual key problem.

Paid / Team Tier

Fix 3: Enable billing to escape the 429 limit: 0 trap

This is the fix for every "I added a key and still get 429" report. A raw AI Studio key sits on the Free Tier, and a Google One AI Pro subscription does not push paid quota into it. The metric comes back limit: 0, which reads like a bug but is just an unprovisioned key.

Do this once:

  • Open AI Studio billing and link a Google Cloud Billing account to the project behind your key.
  • Set a real spend cap. A $0 cap keeps you on the Free Tier and reproduces the 429. Set something you're comfortable with — even $10 is enough to move to paid Tier 1.
  • Refresh the CLI auth: clear the cache from Fix 2 or re-export the key, then retry.

Tiers escalate with spend: Free, then Tier 1 (billing enabled), then Tier 2 and Tier 3 at higher thresholds, each raising your rate limits. Tier 1 alone carries a per-window spend allowance that's plenty for individual use.

Fix 4: Right-size the model so the paid bill stays small

You're paying per token now, so pick the model deliberately. Standard Gemini API pricing per 1M tokens:

ModelInput / 1MOutput / 1MNotes
Gemini 3.1 Flash-Lite$0.25$1.50Cheapest; fine for routine edits and shell tasks.
Gemini 3.5 Flash$1.50$9.00Balanced default for coding.
Gemini 3.1 Pro Preview$2.00 (up to 200k)$12.00Reserve for hard reasoning; price steps up above 200k.

For most terminal work, Flash-Lite is the right default and keeps a heavy day under a dollar. Move up to Flash for real coding and only reach for Pro on the genuinely hard prompts. Re-check exact model IDs at Google's pricing page before you hard-code them into scripts — names move fast.

Enterprise / Production Tier

Fix 5: Use Vertex AI or a Code Assist license

Both paths were untouched by June 18, which makes them the cleanest option if you already have a Google Cloud footprint. For Vertex AI:

export GOOGLE_GENAI_USE_VERTEXAI=true
export GOOGLE_CLOUD_PROJECT="your-project-id"
export GOOGLE_CLOUD_LOCATION="us-central1"
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/service-account.json"
gemini

Vertex uses your Cloud project's billing and IAM, so quota and access are governed by the project — not by a personal Google account that Google can reclassify. If your organization holds a Gemini Code Assist Standard or Enterprise license, the CLI and IDE extensions keep working with no change at all. For teams, this is usually the least fragile answer.

Fix 6: Abstract your model layer so one vendor can't take you down

This is the fix most worth thinking about, because it's the one that protects you from the next shutdown, not just this one.

The pattern: put a thin routing layer between your application and your model providers. One key, one endpoint, and behind it the ability to fail over from Gemini to Claude, GPT, Qwen, or DeepSeek without rewriting your integration. When a single vendor changes its consumer policy, your CLI and your product do not go down with it.

You can run a gateway yourself, use a managed one, or point your tooling at an OpenAI-compatible endpoint that fronts several providers. The specific product matters less than the principle: never let one provider's policy be a single point of failure for a system you rely on.

This is the architectural decision most teams make after a shutdown, not before. The cheaper move is to make it before.


THE SECOND WALL

The key deadline you haven't hit yet

Fixing the login is not the end of the story — and this is the part most "just add a key" guides skip. Google is retiring old-style API keys on a separate schedule.

DateWhat happens
June 19, 2026The Gemini API begins rejecting unrestricted Standard keys. Standard keys with explicit API restrictions keep working.
September 2026The Gemini API rejects all Standard keys. You must be on auth keys, bound to a Cloud service account.

If you dig up an old unrestricted key from 2025 to fix your login today, you may hit a wall again in September. Create a new key now — new keys are issued as auth keys by default — or apply explicit API restrictions to the key you use. Doing the migration once, correctly, is the difference between one bad afternoon and two.


TIMELINE

How the free tier wound down

The shutdown was gradual. Seeing the sequence explains why your setup broke when it did.

DateEvent
March 18, 2026Service update posted (restrictions effective March 25): free OAuth users limited to Flash-tier models, abuse detection added, paid API keys recommended.
May 19, 2026I/O 2026 announcement: Gemini CLI consumer / Pro / Ultra login transitioning to Antigravity CLI.
June 18, 2026Free, AI Pro, and Ultra logins stop serving requests. "No longer supported" errors begin.
June 19, 2026Unrestricted Standard API keys start getting rejected (separate key-security change).
June 25, 2026Gemini CLI v0.49.0 ships, confirming the binary is still maintained.
September 2026Planned cutoff for all Standard keys; auth keys required.

WHAT THIS ACTUALLY TEACHES

A vendor policy change took out your tooling in a day

The fixes above get your terminal back. The rest of this is the part worth acting on before the next shutdown.

You can read the June 18 cutoff two ways. The narrow way: a free login ended, switch to a key, move on. The useful way: a dependency you treated as infrastructure was actually a product someone else controlled — and they changed the terms in an announcement.

We see this in nearly every AI system we audit. A team builds on one model provider's free tier, or one framework's hosted API, or one vendor's login, and months later a pricing change, a rate limit, or a deprecation turns a working system into an incident. The Gemini CLI story is just the most recent, most public version of it.

Three things make a system survive these changes:

Abstract the model layer

Call a routing layer, not a vendor directly. Failover, key rotation, and provider swaps become a config change, not a rewrite.

Own your credentials and your data path

Keys in your own Cloud project, with billing and IAM you control. No personal-account login a vendor can reclassify out from under you.

Design for the deprecation, not the demo

Assume every free tier and hosted path has an expiration date. Build the abstraction before you need it, not the morning a 429 shows up in production.

If your AI system collapses when one vendor changes a policy, the system failed the design test — not the vendor.


FAQ

Questions we get about this

Is Gemini CLI dead after June 18, 2026?+

No. The open-source binary is still Apache-2.0, still shipping, and still runs. What ended is the free consumer login: the "Sign in with Google" path for Code Assist for individuals, plus AI Pro and Ultra sign-in. Set a key and the same tool keeps working.

Why does it say "This client is no longer supported for Gemini Code Assist for individuals"?+

You're logging in with the retired free personal-account flow. The browser step reports success, but the token exchange is refused server-side — which is why reinstalling never helps. Switch auth from Google login to an API key.

How do I switch from Google login to an API key?+

Create a key at aistudio.google.com/apikey with billing enabled, then export GEMINI_API_KEY=your_key and run gemini. For a menu, run /auth in the CLI and choose the API key option. If both GEMINI_API_KEY and GOOGLE_API_KEY are set, GOOGLE_API_KEY wins.

Why do I still get 429 "limit: 0" after adding a key?+

Your key is on the Free Tier with no paid quota behind it, and a Google One AI Pro subscription does not auto-provision that quota. Enable billing in AI Studio, link a Cloud Billing account, and set a real spend cap (not $0). That moves the key to paid Tier 1.

Will my key stop working in September 2026?+

It can, if it's an unrestricted Standard key. Google began rejecting unrestricted Standard keys on June 19, 2026, and plans to reject all Standard keys in September in favor of auth keys bound to a Cloud service account. Create a new key now or apply explicit restrictions to your existing one.

Does enterprise access still work?+

Yes. Organizations on a Gemini Code Assist Standard or Enterprise license, or using Google Cloud, keep access unchanged, and Vertex AI with GOOGLE_GENAI_USE_VERTEXAI keeps working. June 18 targeted individual consumer login only.


About FACTA

FACTA helps startups and growth-stage teams turn AI into production systems that keep running — not demos that impress once.

We design the architecture around the parts that actually break under real usage: model abstraction, credentials you own, failover, cost controls, observability. The boring infrastructure that keeps a system alive after launch.

Led by Matías Baglieri and Carolina Fogliato, we focus on one thing:

AI leadership that builds. Not just advises.

Don't let one vendor shutdown take down your tooling

We build resilient AI automation that keeps running when providers change the rules — model abstraction, credentials you own, and failover built in so a policy change never takes your stack with it.

Explore AI Automation
Book a 30-minute call →

No pitch. No pressure. Just a look at where your AI stack is fragile — and what to fix first.

Stay Updated

Get production AI insights in your inbox

Weekly insights. No spam. Unsubscribe anytime.