gemini-cli - 💡(How to fix) Fix 429 RESOURCE_EXHAUSTED on ALL models via OAuth — Google One AI Pro subscriber [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26375Fetched 2026-05-03 04:52:27
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Error Message

Every request to every model (including a simple "hello") returns 429 RESOURCE_EXHAUSTED when authenticated via Google OAuth. This affects ALL models without exception.

Code Example

> /about
About Gemini CLI│                                                                                                                                                                   │
CLI Version                                             0.40.1Git Commit                                              7a382e066                                                                                                 │
Model                                                   gemini-3.1-flash-lite-preview                                                                             │
Sandbox                                                 no sandbox                                                                                                │
OS                                                      darwin                                                                                                    │
Auth Method                                             Signed in with Google (xxxxxxxxxxxxx@gmail.com)Tier                                                    Gemini Code Assist in Google One AI Pro
RAW_BUFFERClick to expand / collapse

What happened?

Every request to every model (including a simple "hello") returns 429 RESOURCE_EXHAUSTED when authenticated via Google OAuth. This affects ALL models without exception.

The retrieveUserQuota endpoint itself returns 429, so the CLI cannot even check my quota at startup.

Debug logs extract :

Failed to retrieve user quota _GaxiosError: Resource has been exhausted (e.g. check quota). URL: https://cloudcode-pa.googleapis.com/v1internal:retrieveUserQuota status: 429 reason: rateLimitExceeded

Attempt 1-5 failed with status 429. Max attempts reached. URL: https://cloudcode-pa.googleapis.com/v1internal:generateContent status: 429 reason: rateLimitExceeded

What did you expect to happen?

As a Google One AI Pro subscriber, I should be able to send requests via OAuth without hitting quota errors, including a simple "hello". I didn't use Gemini CLI since 24h so my quota should be full.

What I have tried

  • Downgrading to 0.39.1 → same issue (confirms it's server-side, not CLI)
  • gemini auth logout + re-login → same issue
  • Switching to API key (GEMINI_API_KEY) → works but hits Free Tier daily limit immediately (Pro subscription not recognized on this path)
  • Tested every available model → all return 429 via OAuth

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
│ About Gemini CLI                                                                                                                                                  │
│                                                                                                                                                                   │
│ CLI Version                                             0.40.1                                                                                                    │
│ Git Commit                                              7a382e066                                                                                                 │
│ Model                                                   gemini-3.1-flash-lite-preview                                                                             │
│ Sandbox                                                 no sandbox                                                                                                │
│ OS                                                      darwin                                                                                                    │
│ Auth Method                                             Signed in with Google ([email protected])                                                            │
│ Tier                                                    Gemini Code Assist in Google One AI Pro
</details>

Login information

Google Account (Pro)

Anything else we need to know?

Issue started: May 1, 2026. Worked fine the day before with no changes on my side.

Environment

  • OS: macOS darwin arm64
  • CLI version: 0.40.1 (also tested 0.39.1)
  • Auth Method: OAuth (Signed in with Google)
  • Tier: Gemini Code Assist in Google One AI Pro
  • Project: quick-hallway-jhxlw

Is there a backend issue with the Code Assist quota service (cloudcode-pa.googleapis.com) for Google One AI Pro accounts that started around May 1, 2026?

extent analysis

TL;DR

The issue is likely due to a backend quota service problem for Google One AI Pro accounts, causing all requests to return 429 RESOURCE_EXHAUSTED errors.

Guidance

  • Verify that the issue persists across different models and requests to confirm it's a quota service problem.
  • Try using the API key authentication method (GEMINI_API_KEY) as a temporary workaround, although this may hit the Free Tier daily limit.
  • Check the Gemini CLI version and ensure it's up-to-date, as downgrading to 0.39.1 didn't resolve the issue.
  • Monitor the Gemini project's status page or support channels for any updates on the quota service issue, which may have started around May 1, 2026.
  • Consider reaching out to Google One AI Pro support to investigate potential account-specific issues with quota recognition.

Notes

The issue seems to be server-side, as downgrading the CLI version and re-authenticating didn't resolve the problem. The fact that API key authentication works (although with limitations) suggests that the issue is specific to OAuth authentication for Google One AI Pro accounts.

Recommendation

Apply workaround: Use API key authentication (GEMINI_API_KEY) as a temporary solution, while monitoring for updates on the quota service issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix 429 RESOURCE_EXHAUSTED on ALL models via OAuth — Google One AI Pro subscriber [1 participants]