gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

GEMINI CLI NOT RECONGIZING GEMINI CODE ASSIST SUBSCRIPTION - RATE LIMITS AND REVERTS BACK TO FLASH 2.5

Open ybugrara opened this issue 1 year ago • 134 comments

What happened?

Gemini CLI is not recongizing my Google Workspace account to have a gemini code assist standard subscription.

I have enabled the Google Cloud API, I have added the IAM user permissions, I have assigned the licenses, and deleted the .gemini cache. Even though I signed in with my workspace account using /auth, the .gemini/settings.json still says "selectedAuthType": "oauth-personal"

I verified that I can access the Gemini assist for VS Code, but the CLI fails to recognize my subscription and still gives me the following errors:

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. ⚡ To avoid this you can either upgrade to Standard tier. See: https://goo.gle/set-up-gemini-code-assist ⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key ⚡ You can switch authentication methods by typing /auth

The automatic switching to Gemini 2.5 Flash introduced bugs into my code and did not follow the previous plan I had when executing with Gemini 2.5 Pro.

What did you expect to happen?

When I sign in with /auth using my account after enabling the Code Assist, I expect:

  1. A confirmation that my code assist subscription is recognized
  2. An error message if not recognized or not enable
  3. A command /status that allows me to confirm and view the subscription status

Client information

CLI Version        0.1.7                                 
Git Commit         55cc809                               
Model              gemini-2.5-flash                      
Sandbox            no sandbox                            
OS                 darwin                                
Auth Method        OAuth                                 
GCP Project        state-space-464514

Platform = macos

Login information

I am logged in via Google Workspace using /auth command from the CLI

When I login, I get the following message:


bookmark_border

The authentication with Gemini Code Assist, Cloud Code with Gemini Code Assist, or the Gemini CLI was successful.

To learn more about Gemini Code Assist capabilities, see the [Gemini Code Assist documentation](https://developers.google.com/gemini-code-assist/docs/overview).

To learn more about Gemini CLI, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli).

You can close this window and return to your IDE or terminal.```

### Anything else we need to know?

I also set the project ID env 

GOOGLE_CLOUD_PROJECT="state-space-464514” 

ybugrara avatar Jun 30 '25 15:06 ybugrara

I can confirm this issue!

eLyiN avatar Jun 30 '25 16:06 eLyiN

Hi @ybugrara and @eLyiN , I'm from the Gemini CLI team. Thanks for reporting, I'm looking into this.

eddie-santos avatar Jun 30 '25 17:06 eddie-santos

commenting for visibility.

martinb-ai avatar Jun 30 '25 17:06 martinb-ai

Has anyone used pro with gemini cli yet? I got one call before rate limit hit.

orchidfire avatar Jun 30 '25 18:06 orchidfire

Hi all, just a heads up that we have had to reduce our 2.5 pro quota as we manage heavy demand on our available 2.5 pro capacity. This is something we're actively working through.

The GCA license issue appears separate and has been reported for a fix.

eddie-santos avatar Jun 30 '25 18:06 eddie-santos

Duplicate of #2365 ?

ben-vargas avatar Jun 30 '25 18:06 ben-vargas

Hi all, just a heads up that we have had to reduce our 2.5 pro quota as we manage heavy demand on our available 2.5 pro capacity. This is something we're actively working through.

The GCA license issue appears separate and has been reported for a fix.

I fully understand that there are issues right now due to the large number of users on the free version. However, it would be great if users who have subscribed didn’t experience any problems using Gemini 2.5 Pro. I hope you will fix the issues with using Gemini 2.5 Pro under the license as soon as possible.

snaplyze1 avatar Jun 30 '25 19:06 snaplyze1

Confirm an issue. Just bought a subscription to gemini code assist just for Gemini CLI. And realized after an hour of trying that it doesn't actually work. Really disappointed.

UnirionGames avatar Jun 30 '25 19:06 UnirionGames

+1 aslo GDP premium does not work as well.

LichAmnesia avatar Jun 30 '25 20:06 LichAmnesia

Hi all, just a heads up that we have had to reduce our 2.5 pro quota as we manage heavy demand on our available 2.5 pro capacity. This is something we're actively working through.

The GCA license issue appears separate and has been reported for a fix.

An issue was raised 3 days ago: https://github.com/google-gemini/gemini-cli/issues/2365

Some fun with numbers: in terms of money, just for a standard license, this comes out to ~2.3$ wasted on every single license, and counting.

So, any ETA maybe?

UnirionGames avatar Jun 30 '25 20:06 UnirionGames

Looks like the same issue. It fals back to Flash. I bought Standard license. Set up the configuration (o boy, this configuration - I spent hours sorting out how to set this up - it is a nightmare!)

Yet, even with standard license and with enforced starting with pro "gemini --model gemini-2.5-pro" it still switches to Flash.

But why? (1) Wrong settings? How to check if they are correct? (!?) (2) Bug?

konashevich avatar Jul 01 '25 06:07 konashevich

@konashevich It has been acknowledged as a bug... I think that if during auth you get warned to set env variable (I purposely didn't set it because I wanted the ask as confirmation it was seeing standard), and if /about shows correct GCP project, then you're probably setup right and it's just the defect they've got to fix.

ben-vargas avatar Jul 01 '25 06:07 ben-vargas

its really not clear what we must use, only the api then? that overpriced garbage? do they really want to take the data of claude code users? those pays 200$ a month, they wont mind paying the same to try your product if it actually works with a subscription...

Aze1339 avatar Jul 01 '25 06:07 Aze1339

@Aze1339 - I bet a lot of youtubers are using the API Key authentication because what I see pushed by youtubers just doesn't match my experience at all.

Google has a long way to go in earning trust with stability of gemini cli before I'm willing to pay them $200/mo for it over or in addition to claude code - right now with them not being able to service my paid GCA Standard membership, not really responding to a major licensing issue/community, nor provide any kind of timeline on fix... I won't be paying $200 anytime soon.

ben-vargas avatar Jul 01 '25 13:07 ben-vargas

Same issue. Got the hint that I could upgrade subscription to maintain pro usage, so I did, but it keeps going back to flash. Not great.

johannespn avatar Jul 01 '25 17:07 johannespn

@eddie-santos Are the Gemini Code Assist subscribers going to be credited pro-rata for as long as this issue goes on?

wyuenho avatar Jul 01 '25 17:07 wyuenho

@wyuenho I agree, it's not a good look that the system is telling people to buy GCA Standard and then not deliver any better rate limits or model access. I would think this would be more pressing to acknowledge and fix... one would think Google's legal team wouldn't be happy about this current state (this undoubtedly creates class exposure selling a products to general public that provide no additional value as advertised).

ben-vargas avatar Jul 01 '25 17:07 ben-vargas

I'm having the same issue

rcbevans avatar Jul 02 '25 00:07 rcbevans

Looks like they just documented the quota and pricing. It seems the Code Assist Standard plan, which costs $20/month, is only buying you an extra 60 RPM, and 500 RPD on top of the free tier. I don't know about you, but this sounds like Google wants me to unsubscribe. This thing isn't getting much done and it's just wasting my quota anyway.

wyuenho avatar Jul 02 '25 00:07 wyuenho

@wyuenho - That has always been the case, during purchase of GCA Standard it clearly stated what the quota limits are and what you were getting from the paid plan. HOWEVER, the rub is that it's not actually applying the proper quota/rate limits and downgrading as if GCA Standard (and Enterprise) were the free GCA Personal licenses.

I got rate limited trying to use it today with less than 200 requests against my quota, I should have had 1,500 for GCA Standard.

Yes, it only "buys" you "500" more... but the hope is that when it's really busy and they do have to prematurely downgrade users, they'll only do the "free" and not "paid" (Standard/Enterprise) users prematurely... giving us what we opt to pay for over free tier/license. This is implied by the message presented to users saying upgrading will fix it...

⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster  responses for the remainder of this session. ⚡ **To avoid this you can either upgrade to Standard tier.** See: https://goo.gle/set-up-gemini-code-assist

Here I am, limited/downgraded to flash today, with 200 used of 1,500 advertised/applied quota on GCA Standard:

Image

ben-vargas avatar Jul 02 '25 00:07 ben-vargas