Skip to content
86% off$349 $48.86code BF2026

Guides

Gemini CLI "usage limit reached" on Ultra: Free-Tier Fix

Gemini CLI says "usage limit reached" on Google AI Ultra? Check which sign-in route and account it uses, then use a billed project or metered API key.

TroubleshootingUpdated 6 min read

On this page

You pay for Google AI Ultra, start Gemini CLI, and after a few Pro-model requests it stops with "usage limit reached", as if you were on the free tier. Some people also see "Limit: 0" in the error. Google doesn't document this exact symptom, so parts of this article are based on user reports, and we mark those.

Why Gemini CLI can behave like a free account on Ultra

Ultra's extra quota is described for other products. Google's Ultra benefits page says Ultra gives 5x or 20x usage quota in Gemini and Google Antigravity compared to Google AI Pro. In the text we read, Gemini CLI isn't named. People on Google's Gemini Apps community forum report that a consumer AI plan doesn't raise CLI limits and that the CLI falls back to free-tier numbers. That is user reporting, not a Google statement.

An API key can override your login. The CLI can authenticate with a Google account, a Gemini API key or Vertex AI. Google's codelab says that if you hit the free quota for Google Accounts, you can use a Gemini API key or Google Cloud Vertex AI. If a key from a project without billing is set in your environment, your requests count against that project, whatever your Google account has.

You signed in with the wrong account. A browser that is logged in to several Google accounts can send the CLI through one without Ultra. It works, but on that account's quota. The same community thread advises making sure the logged-in account matches the one holding the subscription.

Limits are shared across models and prompts. Google's Code Assist quota page says daily request limits are aggregated across all interactions with any model version or family, and that one prompt might result in multiple model requests. That page covers Code Assist licenses, not Ultra, but it shows why an agent loop can use up requests faster than you expect.

Ultra may mean more, not unlimited. Replies in the original reports say Ultra is mostly more requests per day. Google's wording is a multiple of the Pro plan, not unlimited use.

We don't know which of these applies to you. The steps below separate them, cheapest check first.

Fixes, most likely first

Fix 1: Remove stray API keys

  1. Quit Gemini CLI.

  2. List related environment variables:

    bash
    env | grep -i -E 'gemini|google'

    This only prints variables and changes nothing. Look for GEMINI_API_KEY, GOOGLE_API_KEY and GOOGLE_CLOUD_PROJECT.

  3. Remove any key you didn't mean to use from the place that sets it, such as ~/.zshrc or a .env file in your project folder.

  4. Open a new terminal and start gemini.

Fix 2: Sign in again with the Ultra account

  1. In the CLI, type /auth and choose the Google account sign-in, not the API key or Vertex AI option.
  2. In the browser window that opens, check which account the consent screen shows. It must be the one that holds Ultra.
  3. If you use several Google accounts, use a private window or switch accounts first.

Google's codelab says the CLI stores your theme and authentication choice in a file called settings.json, so later runs don't ask again. If /auth seems not to stick, look for that file in the CLI's config folder in your home directory.

Fix 3: Use a billed project or metered key

If the CLI still hits the free quota, move it to a route you pay for per use. Google's Code Assist page says the CLI also supports using a Gemini API key to pay as you go.

  1. In the Google Cloud console, find the project your Gemini API key belongs to.

  2. Open that project's billing settings and link a Cloud Billing account. If the labels differ, search the console for "Billing".

  3. Or create a new key in a project that already has billing, then set it as GEMINI_API_KEY:

    bash
    export GEMINI_API_KEY="your-key"

    To undo, run unset GEMINI_API_KEY and remove the line from your profile.

  4. Restart the CLI and retry the same request.

The Vertex AI route needs a project ID and a location for that project, per the codelab. Follow Google's current setup instructions rather than a copied snippet, since variable names can change.

Fix 4: Check whether you used the allowance

If the sign-in is right and the message appears after a lot of work, it may be a real cap. Switching from Pro to Flash may not help, because daily limits can be shared across models. Wait for the reset or use a billed route (Fix 3).

Which route uses which quota

RouteQuota comes fromWhat to check
Google account sign-inThe account's CLI quota, or a Code Assist license if you have oneRight account, no API key set
Gemini API keyThe key's projectBilling linked to that project
Vertex AIYour Google Cloud projectProject, location, billing

Google's page on Ultra benefits is at Use Google AI Ultra benefits. We found no published figure for how much CLI quota Ultra adds, so we give none.

Two other problems from the same reports

The context window "stops working right" at about 25% used. We found no confirmed cause or fix. Starting a fresh session is the only workaround we can suggest.

/init makes random edits. Run it in a git repository with a clean working tree so you can see what changed:

bash
git status
git diff

Both commands are read-only. To discard an unwanted edit to one file, note that this deletes your uncommitted changes to it and can't be undone:

bash
git restore path/to/file

Checklist before you try again

  • No GEMINI_API_KEY or GOOGLE_API_KEY set unless you mean to use it
  • /auth set to the Google sign-in
  • The account on the consent screen is the Ultra one
  • If you use a key: billing is linked to that key's project
  • You haven't simply used up the day's requests

If nothing works

Ask Google through the Google One help channel for plan questions, and open an issue on the Gemini CLI GitHub repository for CLI behavior. Include the exact error text, how you sign in, your plan name, whether billing is linked and your CLI version (gemini --version).

text
Subject: Gemini CLI shows "usage limit reached" on Google AI Ultra

Plan: Google AI Ultra (account: your-account@example.com)
CLI version: output of gemini --version
Sign-in: Google account via /auth, no API key set
Error text: usage limit reached (include any "Limit: 0" line)
When it happens: after N requests on a Pro model
Already tried: removed API keys, signed in again, checked the account
Question: Does Ultra include Gemini CLI quota? If so, why does the
CLI treat my account as free tier?

Common questions

Does Google AI Ultra include Gemini CLI usage?

Google's Ultra benefits page names Gemini and Antigravity quotas. In the text we read, it doesn't name Gemini CLI, so ask Google if you need a firm answer.

Why does a Pro-model request fail after only a few prompts?

One prompt can trigger several model requests, per Google's Code Assist quota page, and users report that preview models can have stricter caps. Check which model you're using and whether the same limit appears on another model.

Will a billed API key fix it?

Moving to a billed project removes the free-tier ceiling on that route, according to user reports, but you pay per use on top of Ultra. Treat it as a workaround, not a refund of the subscription.

Every app.
One purchase.