Fix it
- See your usage: in Gemini CLI run
/stats model. It shows token counts and quota information for the session. - 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.
- Switch model. Accept the fallback model when Gemini CLI offers it (model routing asks by default), or set one:
/model set <model-name>. - 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.
- 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 method | Tier | Requests per day |
|---|---|---|
| Google account | Gemini Code Assist (individual, free) | 1,000 |
| Google account | Google AI Pro / Ultra | 1,500 / 2,000 |
| Gemini API key | Free tier | 250, Flash model only |
| Gemini API key / Vertex AI | Pay-as-you-go | Varies |
| Google Workspace | Code Assist Standard / Enterprise | 1,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 modelshows 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
| Code | Meaning | Retry? |
|---|---|---|
400 INVALID_ARGUMENT | Request malformed or has invalid parameters | No: fix the request |
400 FAILED_PRECONDITION | A prerequisite isn't met, for example disabled billing | No: check billing |
403 PERMISSION_DENIED | The key lacks permission; can read "Your project has been denied access" | No: check key permissions, verification and billing |
429 RESOURCE_EXHAUSTED | Per-minute request/token limit or daily quota exceeded | Yes, with backoff |
500 INTERNAL | Unexpected server error | Yes; contact support if it persists |
503 UNAVAILABLE | Service temporarily overloaded or down | Yes, 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: aGOOGLE_CLOUD_PROJECTorGOOGLE_CLOUD_PROJECT_IDvariable forces an organization check. Individual users should unset both, including in.bashrc,.zshrcand.envfiles.Failed to sign in. Message: Request contains an invalid argument: Workspace or Cloud-linked Gmail accounts may not get the free tier. SetGOOGLE_CLOUD_PROJECTto 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
- Claude API error 529 overloaded_error
- Codex CLI: stdin is not a terminal
- MCP error -32000: Connection closed
Sources
Read 29 Nov 2026. These tools change often: if a step no longer matches, the linked page wins.
- Gemini CLI docs: FAQ: github.com/google-gemini/gemini-cli/blob/main/docs/resources/faq.md
- Gemini CLI docs: Quotas and pricing: github.com/google-gemini/gemini-cli/blob/main/docs/resources/quota-and-pricing.md
- Gemini CLI docs: Model routing: github.com/google-gemini/gemini-cli/blob/main/docs/cli/model-routing.md
- Gemini CLI docs: Commands: github.com/google-gemini/gemini-cli/blob/main/docs/reference/commands.md
- Gemini CLI docs: Troubleshooting: github.com/google-gemini/gemini-cli/blob/main/docs/resources/troubleshooting.md
- Google AI Studio docs: Rate limits: aistudio.google.com/docs/rate-limits
- Google AI Studio docs: API errors: aistudio.google.com/docs/api-errors
- Google AI Studio docs: Troubleshooting: aistudio.google.com/docs/troubleshooting
- LLM API cost checker: find LLM calls with no limits or retries capped
- Guide: API rate limiting and 429 Too Many Requests: rate limits on your own API
- Exposed API key checker: find API keys committed to a repo or shipped to the browser