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

Add cost incurred in the status section.

Open Prashanth-BC opened this issue 1 year ago • 2 comments

What would you like to be added?

Add cost incurred in the status section when using gemini-cli with GEMINI_API_KEY configured for authentication.

Why is this needed?

I have incurred 99 euros in a single day using it for just few hours with the GEMINI_API_KEY. User has no clue how much tokens are used and how much money being spent.

I was using the key only for gemini-cli and none other. So I am sure that this cost is incurred while using gemini-cli .

Additional context

No response

Prashanth-BC avatar Jul 18 '25 12:07 Prashanth-BC

Quick tips from an end user:

  1. Set the billing cap online
  2. You could even ask Gemini to script the used tokens lookup as a query (I had tried it as coding exercise, it worked, but it took me half an hour and I have not saved the code, just looking it up online is much easier, the security tokens wise)
  3. Look at https://github.com/google-gemini/gemini-cli/discussions/3878 and maybe https://github.com/google-gemini/gemini-cli/discussions/4472 - I see that it still happens.
  4. Look at the "loops" and "tokens" issues here also mentioned in tickets in 3: maybe the tokens consumed are due to the such wasted cycles.
  5. Use the free usage API keys if you suspect 4, for now.

Manamama avatar Jul 19 '25 10:07 Manamama

@Manamama Please see my Issue report: https://github.com/google-gemini/gemini-cli/issues/4495

This details the problem...

RonnieShawDeveloper avatar Jul 19 '25 15:07 RonnieShawDeveloper