←back to thread

Gemini CLI

(blog.google)
1342 points sync | 4 comments | | HN request time: 0.992s | source
Show context
tobyhinloopen ◴[] No.44384672[source]
I literally wrote "hello" and got this:

> hello

[API Error: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check quota).\",\n \"status\": \"RESOURCE_EXHAUSTED\"\n }\n}\n","code":429,"status":"Too Many Requests"}}] Please wait and try again later. To increase your limits, request a quota increase through AI Studio, or switch to another /auth method

⠼ Polishing the pixels... (esc to cancel, 84s)

replies(3): >>44384699 #>>44385095 #>>44385826 #
xuf ◴[] No.44384699[source]
Got the exact same thing here, using Gemini with an API key.
replies(1): >>44384940 #
1. tobyhinloopen ◴[] No.44384940[source]
That's an interesting comment - I realized I have a gemini api key in my env.

`GEMINI_API_KEY="" gemini` + login using my Google account solves the problem.

replies(1): >>44385476 #
2. xuf ◴[] No.44385476[source]
That works for me, however, it automatically switches me to gemini-2.5-flash:

Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key

You can switch authentication methods by typing /auth

replies(1): >>44385506 #
3. tobyhinloopen ◴[] No.44385506[source]
Yeah I also just gave up. I'll revisit it in a week or so.
replies(1): >>44388760 #
4. davenportjw ◴[] No.44388760{3}[source]
We're continuing to work on capacity, thanks for your patience!