Live data from Hacker News

Gemini CLI

blog.google

161–170 of 820 posts

Re: Gemini CLI

#161

Earlier quoted context omitted.

Anthropic is the same. Unless it has changed within the last few months, you can subscribe to Claude but if you want to use Claude Code it'll come out of your "API usage" bucket which is billed separately than the subscription. Some jerk has learned that we prefer CLI things and has come to the conclusion that we should therefore pay extra for them. Workaround is to use their GUI with some MCPs but I dislike it becau…

This is down voted I guess because the circumstances have changed - but boy is it still confusing. All these platforms have chat subscriptions, api pay-as-you-go, CLI subscriptions like "claude code" ... built-in offers via Github enterprise or Google Workspace enterprise ... It's a frigg'n mess. Everyone at our little startup has spent time trying to understand what the actual offerings are; what the current set of…

And claude code can now be connected to either an API sub or a chat sub apparently.

Re: Gemini CLI

#162

I love how fragmented Google's Gemini offerings are. I'm a Pro subscriber, but I now learn I should be a "Gemini Code Assist Standard or Enterprise" user to get additional usage. I didn't even know that existed! As a run of the mill Google user I get a generous usage tier but paying them specifically for "Gemini" doesn't get me anything when it comes to "Gemini CLI". Delightful!

Google is fumbling the bag so badly with the pricing. Gemini 2.5 Pro is the best model I've used (even better than o3 IMO) and yet there's no simple Claude/Cursor like subscription to just get full access. Nevermind Enterprise users too, where OpenAI has it locked up.

> Google is fumbling the bag so badly with the pricing.

In certain areas, perhaps, but Google Workspace at $14/month not only gives you Gemini Pro, but 2 TB of storage, full privacy, email with a custom domain, and whatever else. College students get the AI pro plan for free. I recently looked over all the options for folks like me and my family. Google is obviously the right choice, and it's not particularly close.

Re: Gemini CLI

#163
post #64

Earlier quoted context omitted.

So, as a member of an organization who pays for google workspace with gemini, I get the message `GOOGLE_CLOUD_PROJECT environment variable not found. Add that to your .env and try again, no reload needed!` At the very least, we need better documentation on how to get that environment variable, as we are not on GCP and this is not immediately obvious how to do so. At the worst, it means that your users paying for gemi…

https://github.com/google-gemini/gemini-cli/blob/main/docs/c...

I'd echo that having to get the IT section involved to create a google cloud project is not great UX when I have access to NotebookLM Pro and Gemini for Workplace already.

Also this doco says GOOGLE_CLOUD_PROJECT_ID but the actual tool wants GOOGLE_CLOUD_PROJECT

Re: Gemini CLI

#164

Earlier quoted context omitted.

AFAIK, Claude code operates on your subscription, no? That's what this support page says https://support.anthropic.com/en/articles/11145838-using-cla... Could have changed recently. I'm not a user so I can't verify.

In recent research (relying on Claude so bear that in mind), connecting CC via Anthropic Console account / API key ends up being less expensive.

less expensive than what? You can use CC on the $20 plan. If you're using the maximum of your $20 subscription usage every 4 hours every day, the equivalent API cost would be at least hundreds per month

Re: Gemini CLI

#165
post #41

Hi - I work on this. Uptake is a steep curve right now, spare a thought for the TPUs today. Appreciate all the takes so far, the team is reading this thread for feedback. Feel free to pile on with bugs or feature requests we'll all be reading.

Is there a reason all workspace accounts need a project ID? We pay for gemini pro for our workspace accounts but we don't use GCP or have a project ID otherwise.

Re: Gemini CLI

#166
post #36
post #7

The killer feature of Claude Code is that you can just pay for Max and not worry about API billing. It lets me use it pretty much all the time without stressing over every penny or checking the billing page. Until they do that - I'm sticking with Claude.

If you use your personal gmail account without billing enabled, you get generous requests and never have to worry about a surprise bill.

If I have a CC linked to my personal Google for my Google One storage and YouTube Premium, that doesn't make me "billing enabled" for Gemini CLI does it?

Re: Gemini CLI

#167
post #31

Ugh, I really wish this had been written in Go or Rust. Just something that produces a single binary executable and doesn't require you to install a runtime like Node.

Ask Gemini CLI to re-write itself in your preferred language

Contest between Claude Code and Gemini CLI, who rewrites it faster/cheaper/better?

Re: Gemini CLI

#168
post #157

Earlier quoted context omitted.

Thanks for your clarification. I've been able to set up Gemini CLI with my Workspace account. Just a heads-up: your docs about authentication on Github say to place a GOOGLE_CLOUD_PROJECT_ID as an environment variable. However, what the Gemini CLI is actually looking for, from what I can tell, is a GOOGLE_CLOUD_PROJECT environment variable with the name of a project (rather than its ID). You might want to fix that di…

sorry, I was wrong about free tier - I've edited above. this is WIP. noted on documentation, there's a PR in flight on this. also found some confusion around gmail users who are part of the developer program hitting issues.

> free tier for Workspace isn't yet supported. sorry. you need to set the project and pay.

Well, I've just set up Gemini CLI with a Workspace account project in the free tier, and it works apparently for free. Can you explain whether billing for that has simply not been configured yet, or where exactly billing details can be found?

For reference, I've been using this panel to keep track of my usage in the free tier of the Gemini API, and it has not been counting Gemini CLI usage thus far: https://console.cloud.google.com/apis/api/generativelanguage...

Unfortunately all of that is pretty confusing, so I'll hold off using Gemini CLI until everything has been clarified.

Re: Gemini CLI

#169
post #43

Earlier quoted context omitted.

Projects like this have to update frequently, having a mechanism like npm or pip or whatever to automatically handle that is probably easier. It's not like the program is doing heavy lifting anyway, unless you're committing outright programming felonies there shouldn't be any issues on modern hardware. It's the only argument I can think of, something like Go would be goated for this use case in principle.

> having a mechanism like npm or pip or whatever to automatically handle that is probably easier Re-running `cargo install ` will do that. Or install `cargo-update`, then you can bulk update everything. And it works hella better than using pip in a global python install (you really want pipx/uvx if you're installing python utilities globally). IIRC you can install Go stuff with `go install`, dunno if you can update v…

This whole thread is a great example of the developer vs. user convenience trade-off.

A single, pre-compiled binary is convenient for the user's first install only.

Re: Gemini CLI

#170
Does anyone know what Google's policy on retention and training use will be when using the free version by signing in with a personal Google account? Like many others, I don't want my proprietary codebase stored permanently on Google servers or used to train their models.

At the bottom of README.md, they state:

"This project leverages the Gemini APIs to provide AI capabilities. For details on the terms of service governing the Gemini API, please refer to the terms for the access mechanism you are using:

* Gemini API key

* Gemini Code Assist

* Vertex AI"

The Gemini API terms state: "for Unpaid Services, all content and responses is retained, subject to human review, and used for training".

The Gemini Code Assist terms trifurcate for individuals, Standard / Enterprise, and Cloud Code (presumably not relevant).

* For individuals: "When you use Gemini Code Assist for individuals, Google collects your prompts, related code, generated output, code edits, related feature usage information, and your feedback to provide, improve, and develop Google products and services and machine learning technologies."

* For Standard and Enterprise: "To help protect the privacy of your data, Gemini Code Assist Standard and Enterprise conform to Google's privacy commitment with generative AI technologies. This commitment includes items such as the following: Google doesn't use your data to train our models without your permission."

The Vertex AI terms state "Google will not use Customer Data to train or fine-tune any AI/ML models without Customer's prior permission or instruction."

What a confusing array of offerings and terms! I am left without certainty as to the answer to my original question. When using the free version by signing in with a personal Google account, which doesn't require a Gemini API key and isn't Gemini Code Assist or Vertex AI, it's not clear which access mechanism I am using or which terms apply.

It's also disappointing "Google's privacy commitment with generative AI technologies" which promises that "Google doesn't use your data to train our models without your permission" doesn't seem to apply to individuals.

Post reply on HN