gemini-cli
gemini-cli copied to clipboard
Add cost incurred in the status section.
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
Quick tips from an end user:
- Set the billing cap online
- 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)
- 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.
- 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.
- Use the free usage API keys if you suspect 4, for now.
@Manamama Please see my Issue report: https://github.com/google-gemini/gemini-cli/issues/4495
This details the problem...