Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / Gemini CLI 429
Fix · Gemini CLI

Gemini CLI error 429 Resource exhausted: the fix

A 429 means you went over a request limit: a per-minute limit, or your daily quota for the way you signed in. Which fix works depends on whether you use a Google login, a Gemini API key or Vertex AI.

Fix it

  1. See your usage: in Gemini CLI run /stats model. It shows token counts and quota information for the session.
  2. If you were sending many requests quickly, wait and retry. Per-minute limits clear on their own; Google's docs recommend exponential backoff for 429s.
  3. Switch model. Accept the fallback model when Gemini CLI offers it (model routing asks by default), or set one: /model set <model-name>.
  4. If you hit the daily quota, wait for it to reset or move to a sign-in method with a higher limit (table below). For a Gemini API key, requests-per-day limits reset at midnight Pacific time.
  5. For uninterrupted use, Gemini CLI's docs recommend pay-as-you-go: sign in with a Gemini API key on a billed project, or Vertex AI. Change method with /auth.

Which limit you hit

From the Gemini CLI quotas page (maximum requests per user per day):

Sign-in methodTierRequests per day
Google accountGemini Code Assist (individual, free)1,000
Google accountGoogle AI Pro / Ultra1,500 / 2,000
Gemini API keyFree tier250, Flash model only
Gemini API key / Vertex AIPay-as-you-goVaries
Google WorkspaceCode Assist Standard / Enterprise1,500 / 2,000

Requests are also limited per user per minute and depend on service availability at times of high demand. Google AI Plus is not a supported tier, and Gemini for Workspace plans don't apply to the API behind Gemini CLI.

Causes, and how to check

  • Too many requests per minute. Long agent runs send many model calls in a row. If the 429 clears after a short wait, this was it.
  • Daily quota used up. /stats model shows quota information; the API-key limits also show in AI Studio's rate limit page.
  • Pro/Ultra limits feel lower than expected. The higher limits are shared between Gemini CLI and agent mode in Gemini Code Assist IDE extensions.
  • A new API key doesn't help. Gemini API rate limits apply per project, not per key, so another key in the same project shares the same quota.

The other Gemini API errors

CodeMeaningRetry?
400 INVALID_ARGUMENTRequest malformed or has invalid parametersNo: fix the request
400 FAILED_PRECONDITIONA prerequisite isn't met, for example disabled billingNo: check billing
403 PERMISSION_DENIEDThe key lacks permission; can read "Your project has been denied access"No: check key permissions, verification and billing
429 RESOURCE_EXHAUSTEDPer-minute request/token limit or daily quota exceededYes, with backoff
500 INTERNALUnexpected server errorYes; contact support if it persists
503 UNAVAILABLEService temporarily overloaded or downYes, with backoff

Google's guidance: retry only transient errors (429, 408, 5xx), never 400, 402 or 403, and cap the number of retries.

Sign-in errors that look like quota problems

  • You must be a named user on your organization's Gemini Code Assist Standard edition subscription: a GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID variable forces an organization check. Individual users should unset both, including in .bashrc, .zshrc and .env files.
  • Failed to sign in. Message: Request contains an invalid argument: Workspace or Cloud-linked Gmail accounts may not get the free tier. Set GOOGLE_CLOUD_PROJECT to your project ID, or use an AI Studio API key.
  • ...not currently available in your location: Gemini CLI isn't offered in your country.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

When does the Gemini API daily limit reset?

Google's rate-limit docs say requests-per-day quotas reset at midnight Pacific time. That page covers Gemini API keys; the Gemini CLI quota page doesn't state a reset time for Google-login quotas.

Will creating another Gemini API key get around the 429?

No. Gemini API rate limits are applied per project, not per API key.

I pay for Google AI Pro. Why do I still hit quota limits in Gemini CLI?

Gemini CLI's FAQ says the higher Pro and Ultra limits are shared across Gemini CLI and agent mode in the Gemini Code Assist IDE extensions.

How do I see how much Gemini CLI quota I have left?

Run /stats model inside Gemini CLI. A usage summary is also shown when a session ends.

Related errors

Sources

Read 29 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools