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

Cannot auth! Do I need a PhD to auth to Gemini

Open younes-io opened this issue 1 year ago • 7 comments

What happened?

Image

Why can't given this:

Image

What did you expect to happen?

Authorize me to connect!!!!

Client information

$ gemini /about
╭──────────────────────────────────────────────────────╮
│                                                      │
│ About Gemini CLI                                     │
│                                                      │
│ CLI Version       0.1.4                              │
│ Git Commit        1078a54                            │
│ Model             gemini-2.5-flash                   │
│ Sandbox           no sandbox                         │
│ OS                linux                              │
│                                                      │
╰──────────────────────────────────────────────────────╯

Login information

No response

Anything else we need to know?

No response

younes-io avatar Jun 26 '25 13:06 younes-io

log in with your gmail acc cuz api if youre a newbie , you will end up with tier 1 where you cant do many requests per minute or hour at all...very limited regardless of your $

Aze1339 avatar Jun 26 '25 14:06 Aze1339

Image

when I lunch gemini, it just shows "waiting...", not sure how to login to my gmail acc. I already login in my chrome btw.

liqianghe73 avatar Jun 26 '25 14:06 liqianghe73

Same issue here--Gemini is not launching the web browser for authentication (like Claude). I also can't exit (or terminate) the CLI without getting past the authentication.

jtklinger avatar Jun 26 '25 14:06 jtklinger

I had this issue and it turned out my project-level config was incorrect: one of MCPs I defined couldn't start because of a typo in args. Fixed the typo -> all MCP servers started -> login window started popping up

chvanikoff avatar Jun 26 '25 17:06 chvanikoff

I did not modify anything, all use default settings.

liqianghe73 avatar Jun 26 '25 17:06 liqianghe73

Hi, the original issue here is likely the same issue as in #1502 We are currently working on investigating this issue which is seen when using GEMINI_API_KEY Option.

If you are seeing issues other than the RESOURCE EXHAUSTED issue could you please file a new issue so we can investigate it?

srithreepo avatar Jun 26 '25 18:06 srithreepo

To everyone: I did 3 things:

  • install gemini cli
  • run gemini
  • type 'hi'

(btw, the GEMINI api key env var was already set on my system, as I use Gemini API in other programs)

younes-io avatar Jun 26 '25 18:06 younes-io