[BUG] Login with Google (OAuth-Personal) Fails, Incorrectly Demanding GOOGLE_CLOUD_PROJECT
What happened?
- Run the CLI using npx https://github.com/google-gemini/gemini-cli.
- Select Option 1: Login with Google.
- Log in with a personal Gmail account (confirmed not to be managed by an organization).
Then, after sign in in the browser CLI throws the error: Failed to login. Message: This account requires setting the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID env var.
What did you expect to happen?
- The local config file (.gemini/settings.json) correctly shows "selectedType": "oauth-personal".
- Clearing the local cache (rm -rf ~/.gemini) did not resolve the issue.
Client information
Cannot log in to gemini cli
Login information
No response
Anything else we need to know?
No response
Found possible duplicate issues:
- #10153
- #14443
- #2150
- #9917
- #14313
- #12082
- #10835
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
@vlajov hi can you try to follow this step and see if it helps?
hey hi, I tried that option and got another error: 'Failed to login. Message: Your current account is not eligible for Gemini Code Assist for individuals because it is not currently available in your location.'
But why would be so? In Macedonia we use Google normally with its many features...
@sehoon38 I have the same issue. I'm Google AI Pro (2TB) subscriber.
@vlajov this is the current list of locations we are supporting. individual: https://developers.google.com/gemini-code-assist/resources/available-locations#europe Pro & Ultra: https://developers.google.com/gemini-code-assist/resources/locations-pro-ultra @stn1slv were you also able to follow this step here and see if you ran into any error?
@sehoon38 yeah, I found it when I got the error... However, we (from this region) will be grateful to be included in the list. So, we can also keep up with the technology
Yeah, it is unfortunate that we can't support all the location at the moment. To be honest, these rollouts are often stuck in legal and regulatory limbo, and sometimes there isn't a clear fix or timeline for certain regions. Stay up to date with the news for upcoming changes, hope the better news come in a near future.
Yeah, it is unfortunate that we can't support all the location at the moment. To be honest, these rollouts are often stuck in legal and regulatory limbo, and sometimes there isn't a clear fix or timeline for certain regions. Stay up to date with the news for upcoming changes, hope the better news come in a near future.
In short, Ukrainians won't be able to use this for individual purposes? Single users? Or can I get the same functionality with an API key?