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

│ Failed to login

Open CooperJiang opened this issue 1 year ago • 17 comments

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

CooperJiang avatar Jun 26 '25 02:06 CooperJiang

same with gmail login

Image

Fr0zenForest avatar Jun 26 '25 03:06 Fr0zenForest

same

balnkmint avatar Jun 26 '25 03:06 balnkmint

same

moon-zhangyue avatar Jun 26 '25 03:06 moon-zhangyue

Can you share what version of gemini and Node.js runtime that you are running? Thanks!

iennae avatar Jun 26 '25 03:06 iennae

Yeah, I think it's down - my previously authorized account is getting rate limited on simple "hello" right now

Hangry-eggplant avatar Jun 26 '25 03:06 Hangry-eggplant

https://t.me/SafeVibeCode/437/3808

AdvikSudM12 avatar Jun 26 '25 03:06 AdvikSudM12

same

Image

XingjianLee avatar Jun 26 '25 04:06 XingjianLee

same

Image

windows (base) PS C:\Users\Administrator> gemini -v 0.1.4 (base) PS C:\Users\Administrator> node -v v20.17.0

XingjianLee avatar Jun 26 '25 04:06 XingjianLee

same here

wlchn avatar Jun 26 '25 05:06 wlchn

same

C:\code>gemini -v 0.1.4

C:\code>node -v v20.19.0

Image

hotgalvanizing avatar Jun 26 '25 05:06 hotgalvanizing

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

Image

Xelio avatar Jun 26 '25 06:06 Xelio

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

FatGhosta avatar Jun 26 '25 07:06 FatGhosta

guys, i write a detail steps on x. may help you. https://x.com/2also397879/status/1938162254211604792

loethen avatar Jun 26 '25 09:06 loethen

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

Hades32 avatar Jun 26 '25 15:06 Hades32

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.

ptone avatar Jun 26 '25 16:06 ptone