🔐 Clarifying Authentication and Google Cloud Project Settings #13516
Replies: 10 comments 6 replies
-
|
to be clear, if we are using the |
Beta Was this translation helpful? Give feedback.
-
|
@srithreepo can you explicitly clarify the above as well in the context of a Google Developer Program Premium subscriber, which should have access to a Google Code Assist Standard license. The instructions for setting that up very vaguely describe selecting/creating a Google Cloud project, but also describe that there is no seat license assignment. I've previously assumed that GOOGLE_CLOUD_PROJECT needs to be configured with an empty project in order to apply the Standard license for gemini-cli, however questionable quota errors have made it unclear what the right combination of configuration settings is correct. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
You were following the case where some Google accounts were being forced, for some reason, to add the Google Project Cloud variable. However, if I do set the variable, I get a second error: You must be a named user on your organization's Gemini Code Assist Standard edition subscription to use this service. Please contact your administrator to request an entitlement to Gemini Code Assist Standard. So I can't use anything, and it's been like this for over two months. I have one account that's still working—it's my main account—but it's shameful that a few weeks ago another error appeared, related to the first one. I.F. i configured
ℹ Waiting for authentication... ℹ Authentication succeeded
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the detailed guide on authentication. However, I believe there may be inaccuracies in the instructions regarding when to set the GOOGLE_CLOUD_PROJECT environment variable, based on my personal experience. I have multiple Google Cloud projects for personal use, and when I attempted to log in via the gemini-cli, it prompted me to set GOOGLE_CLOUD_PROJECT. Contrary to the guidance stating that individual users with free accounts, AI Pro, or AI Ultra should NOT set this variable, setting it resolved the issue for me and allowed successful authentication. This suggests that the requirement might apply more broadly than indicated, even for personal accounts. I recommend revisiting the documentation to clarify this, as it could prevent confusion for users like myself who manage multiple projects. If there's additional context or an update to the CLI that addresses this, I'd appreciate more details. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Google's policies are always vague, but the moment money is involved, everything suddenly becomes crystal clear. Anything that's free is deliberately blurry. The more people try to figure out how to deal with it, the more Google sees them as a bunch of idiots. Can't they fix it? No—they just don't want to. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Has the user login problem been resolved? I’ve followed your earlier operation steps, but it still fails. |
Beta Was this translation helpful? Give feedback.
-
|
Any updates? This operation doesn’t seem to solve any problems. |
Beta Was this translation helpful? Give feedback.
-
|
https://www.xiaohongshu.com/explore/685d49df000000000b02e80a?xsec_token=ABYB1rFSkiucyQilb1PRs9yqSYgojVqGkUR9QIYcBsA6s=&xsec_source=pc_like |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi friends,
We’ve noticed a lot of questions popping up regarding authentication, so I wanted to share a quick guide to help clarify things while we work on permanent improvements to both the product and the documentation.
Here is a quick breakdown to help you if you are currently blocked.
When to use a Google Cloud Project
There is often confusion about when to set the GOOGLE_CLOUD_PROJECT or GOOGLE_CLOUD_PROJECT_ID environment variables.
You should NOT set these variables if you are signing in as an individual using:
ONLY set these variables if you or your administrator purchased your Gemini Code Assist license through the Gemini Code Assist Admin Console.
Troubleshooting Access Errors
If you believe you are running into an access error (e.g., you are unable to sign in), please follow these steps:
Check your environment: Ensure you have not set the Google Cloud Project environment variables if you are an individual user.
Try an interim solution that will be able to tell you through meaningful error messages why you are unable to access the service.
(we are working on getting this commited)
a. Check for existing variables.
b. Run the CLI from our fix branch.
npx https://github.com/google-gemini/gemini-cli.git#feat/ineligible-tier-errorNote: Since this may not be fully uptodate please do not restart CLI if it offers a message saying updated to latest nightly.
c. Authenticate.
/authd. Select login with Google .
Hope this helps clear things up! Let us know if you're still seeing issues.
Beta Was this translation helpful? Give feedback.
All reactions