Gemini CLI Quota Exceeded? Fix 429 and Check Antigravity

A Gemini CLI quota exceeded error can mean your API project hit a rate limit, your organization exhausted its allocation, or you are signing in with an individual account that Google moved to Antigravity CLI. Check the command and the authentication method before retrying. Waiting for a reset only makes sense when you have confirmed which limit you hit.

Checked against Google’s transition announcement, Antigravity CLI documentation and Gemini API rate-limit guidance on November 30, 2026.

TL;DR: If you use a personal Google login with the old gemini command, use Google’s Antigravity CLI migration path. If you use agy with account sign-in, open /usage. If you use an eligible API key or organization license, check the quota governing that credential.

Gemini CLI quota exceeded? Identify your login first

What you useWhat to checkNext step
Legacy Gemini CLI with individual Google sign-inWhether you are on the consumer access path Google retiredMigrate to Antigravity CLI using Google’s official instructions
Antigravity CLI with Google account sign-inRemaining quota for the selected model groupOpen /usage and inspect the account-backed quota
Gemini API keyThe Google AI Studio project, model and active rate limitsInspect the actual API error and manage usage in the right project
Gemini Code Assist Standard or EnterpriseOrganization license, configured project and any reported quota metricAsk your administrator to verify the entitlement and project

1. Personal Gemini CLI login stopped working

On June 18, 2026, Google stopped serving Gemini CLI requests for free Gemini Code Assist individual users and Google AI Pro and Ultra subscribers. Google directed these users to Antigravity CLI. Its announcement lists Gemini Code Assist Standard and Enterprise, and qualifying paid API-key access, as continuing paths for Gemini CLI.

If your old setup used a personal Google account, keep your project files and use the official Antigravity setup guide. Finish account sign-in, then verify which CLI is running before opening your project. The commands below are version checks, so they do not make a model request.

gemini --version
agy --version

If the shell cannot find agy after installation, reopen the terminal and check the installation instructions for your operating system. When it does start, send a short question in a new session before resuming a long task. A successful response confirms the basic new setup. It does not transfer settings or verify every older workflow.

Migrate one project before changing your daily workflow

Start with a repository whose normal build and test commands you already know. Record the working branch and check that you can see your existing uncommitted work. Keep the current configuration as a reference while you set up Antigravity. A terminal assistant can start successfully while reading a different project folder, so open the intended repository before you compare its behavior with the older CLI.

Give the new session a harmless first task: summarize the repository’s README and tell you which command runs the tests. Compare the answer with the actual file. This checks that the agent can read the intended project and understand a basic request. Next, try a narrowly scoped read-only task you used in Gemini CLI, such as identifying where a command-line option is defined. Save the result so you can distinguish a migration problem from an unrelated repository issue.

If the project uses custom instructions or integrations, verify each capability individually with the official documentation for the new CLI. Test it against a sample repository or with read-only permissions first. Account access, workspace instructions and tool access are independent. Successful login only establishes the first of those three.

Antigravity CLI header showing Gemini API key authentication
Check the header. The Gemini API key label identifies direct API authentication. Screenshot: Google Antigravity documentation.

2. Check Antigravity CLI quota after a 429 RESOURCE_EXHAUSTED error

For account-backed Antigravity CLI, type the following inside the interactive session.

/usage

Google also documents /quota as an alias. The panel refreshes usage from the backend. Find the group for the model you selected. Google documents shared five-hour and weekly limits within each group, so switching models in the same group may leave the same constraint in place.

Antigravity CLI Models and Quota panel for diagnosing a Gemini CLI quota exceeded error
Models & Quota panel. Screenshot: Google Antigravity documentation.

If the panel still shows capacity and every model fails, capture the error, CLI version, model, timestamp and time zone. A recent public report describes that combination. The report confirms the symptom, while the cause can vary by account. Check official status or support guidance before reinstalling or changing your subscription.

Read the details below the 429 headline

Copy the full error text into a private note and look for the status name, model identifier, quota metric and any suggested retry delay. Some clients show only a summary while the structured response contains more detail. Treat fields absent from the response as unknown. For example, a generic resource-exhausted error does not tell you whether requests per minute or tokens per minute caused the failure.

If your terminal has printed a long error several times, keep the first occurrence and the final occurrence, along with their times. That shows whether a retry was attempted and how long the problem persisted. Redact credentials, private repository paths and prompt text before sharing. A model name and timestamp generally preserve the diagnostic value without exposing the task you were running.

A model list confirms that the client can list models. It is a different check from submitting an inference request on a particular model. If the model appears in the list but a minimal request still fails, include both observations in your support report. Avoid concluding from that mismatch that a subscription upgrade is necessary.

3. A Gemini API key hits a rate limit

Find the Google AI Studio project that owns the key, then check the model and current rate limits in that project. Google measures rate limits across dimensions such as requests per minute, tokens per minute and requests per day. Projects can share one limit across multiple callers, so another script, editor session or CI job can contribute to the load.

Google AI Studio dialog showing the Cloud project selector for a Gemini API key
Find the Google Cloud project associated with your Gemini API key. Check the existing key’s project before looking up its limits. Screenshot: Google Developers Codelab.

An API key identifies the project. Creating another key in that same project does not give it a separate rate limit. If you recently changed a key, confirm that the CLI loaded the intended credential. Keep keys and complete environment dumps out of screenshots, logs and support posts.

For a short request burst, reduce concurrent calls and follow any retry delay supplied by the service. For a sustained limit, narrow the task, reduce the prompt size if token usage is the bottleneck, or wait for the documented quota window. An unattended retry loop can compound the failure. If the error names a model or metric, make that detail the first entry in the troubleshooting notes.

Tell a request-rate problem from a token-rate problem

Suppose a single request succeeds when you run it manually, but a batch of small requests fails when several jobs launch together. That pattern points toward requests per minute. Run the same small workload with one worker and space out calls. If it succeeds, check the current limit and adjust your queue so a restart cannot release all pending work at once.

Now suppose short inputs work, but a task that includes several source files and a long conversation fails. Check input tokens per minute before increasing your worker count or changing models. Start another session with a summary of the relevant context and attach only the files necessary for the next step. Do this as a comparison, using the same model, credential and project, so the shorter context is the main variable you changed.

If the API explicitly identifies requests per day, Google says that Gemini API daily request quotas reset at midnight Pacific time. The equivalent local time moves with daylight saving. For readers in India, that is generally 12:30 p.m. IST during Pacific daylight time and 1:30 p.m. IST during Pacific standard time. Apply this timing to the Gemini API daily request quota only. The Antigravity account model groups have their own windows.

Keep background callers from consuming the same project limit

List the places that can use the API project in parallel: your CLI session, a scheduled CI job, a local script and any app that uses a key from that project. A call from your terminal can be the one that fails even when a different workload used most of the quota. Look for jobs that started at the same time as the error. If you control those jobs, pause or stagger them while testing one request.

When a script can retry, use bounded exponential backoff for temporary responses where the service suggests retrying. Record the number of attempts and preserve the final error instead of silently retrying forever. If the message identifies an exhausted daily allowance, stop the job and resume after the relevant reset or after the project owner confirms a quota change. Retry behavior and daily quota management solve different problems.

4. Work account or organization license

If your organization still uses Gemini CLI with Gemini Code Assist Standard or Enterprise, confirm that the selected account is the licensed work identity. Record the project and the exact error. Keep work data on the approved account and ask the administrator to check the matching entitlement and quota if the error persists.

How to verify a Gemini CLI quota exceeded fix

Start a fresh CLI session and run a short prompt that does not open files or attempt edits. Note whether it succeeds on the same model and credential. If it succeeds but your usual task fails, reproduce with a smaller file or shorter prompt. If even the smallest request fails, preserve the original error and investigate the account or project before changing your code.

For support, include the CLI name and version, whether you use account sign-in or an API key, the model, the time and the exact error with credentials removed. If you can reproduce it with a short harmless prompt, include that prompt. A screenshot of available quota is useful when it contradicts the error.

A worked example you can adapt to your own error

Imagine an individual user sees a quota message in an old terminal shortcut called Gemini. They run the version checks and discover the shortcut opens the legacy client. Repeating the command every few minutes cannot establish whether the account path is still supported. The right first test is to open the officially supported client and sign in. A successful short request ends the legacy login investigation.

Next, imagine the same user has an API-backed test script that hits 429 only when a scheduled job runs. This is now an API project investigation. They identify the project that owns both keys, stop the overlapping job temporarily, and run a short request with one worker. They can then compare the original error metric against the project’s active limits. The first case called for a client migration. The second called for isolating simultaneous traffic.

Use this short template to record what happened. Fill in any details the service supplied and keep the rest marked as unknown.

CLI and version: 
Authentication mode: 
Model and quota metric: 
Time and time zone: 
Exact error, with secrets removed: 
Smallest request that reproduces it: 
What changed immediately before the failure:

Frequently asked questions

Why does Antigravity CLI ignore my Gemini key in a .env file?

The direct Gemini provider reads GEMINI_API_KEY from the process environment and does not load the value from a .env file. Set modelProvider to gemini and pass the variable into the CLI process through your shell or CI secret configuration. Screenshot: Source.

Does /logout remove Gemini API key authentication?

Direct API-key mode has no stored Google account session for /logout to clear. To return to Google sign-in, remove the modelProvider override in the CLI settings and restart. Screenshot: Source.

Can a Gemini API spend cap cause a 429?

Yes. Google says hitting a billing-account or project spend cap can return 429. Check the applicable spend limits even if the rate-limit charts appear below their ceilings. Source.

Does Gemini Batch API use the same limits as interactive requests?

Google documents separate limits for batch jobs, including an enqueued-token limit per model. Batch processing fits work that can finish asynchronously, such as extracting fields from a set of documents. Source.

What if Gemini returns 503 UNAVAILABLE instead of 429?

Check service availability first. If the error appears temporary, retry with bounded backoff and check whether the same request succeeds later. A 503 alone does not indicate an exhausted daily quota. Source.

How do I troubleshoot 403 PERMISSION_DENIED?

Open the matching project in Google AI Studio and look for a verification, billing or access notice. If the response specifies FREE_TIER_VERIFICATION_REQUIRED, follow the account verification prompt. Source.

Related Links

Sources

Related AI Articles

Leave a Reply

Your email address will not be published. Required fields are marked *