│ Failed to login
What happened?
│ Failed to login. Ensure the Google account you are using is not a Workspace account and that you are not a licensed Code Assist user (see │ │ https://goo.gle/gemini-cli-auth-docs#workspace-gca). │ │ Message: Request contains an invalid argument.
What did you expect to happen?
can not login
Client information
$ gemini /about
# paste output here
Login information
No response
Anything else we need to know?
No response
same with gmail login
same
same
Can you share what version of gemini and Node.js runtime that you are running? Thanks!
Yeah, I think it's down - my previously authorized account is getting rate limited on simple "hello" right now
https://t.me/SafeVibeCode/437/3808
same
same
windows (base) PS C:\Users\Administrator> gemini -v 0.1.4 (base) PS C:\Users\Administrator> node -v v20.17.0
same here
same
C:\code>gemini -v 0.1.4
C:\code>node -v v20.19.0
Same here, using my gmail account, said that it workspace accounts or licensed code assis users, but my account is not both.
gemini version: 0.1.4 node version: 22.14.0
I found my solution:
it is important to follow the doc (https://goo.gle/gemini-cli-auth-docs#workspace-gca)
step1: enable the Gemini for Cloud API
step2: configure access permissions
step3(IMPORTANT): set the environment variable export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID"
you can find your id in https://console.cloud.google.com/
if you used Google Cloud, your account must be a Google Workspace account
guys, i write a detail steps on x. may help you. https://x.com/2also397879/status/1938162254211604792
I just created a completely new account and it still doesn't work, with the same error as above
also this is a duplicate of https://github.com/google-gemini/gemini-cli/issues/1432
And the solutions above don't make sense for a private account
There are some conditions where a gmail account is not being picked up as a free user, we are investigating. The workaround is to add a GCP project env var, or switch to one of the API key methods.