Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

How to use Free Pro 2.5 from Gemini CLI? #265

Open

Description

@raintrapper

I heard they use Google Auth tokens to hit the API. Maybe we can support this?

Activity

  1. bachittle commented on Jun 26, 2025

    @bachittle

    since it's open source should be easy to reverse engineer. +1 for this!

  2. monotykamary commented on Jun 27, 2025

    @monotykamary
    Contributor

    https://github.com/cline/cline/pull/4472/files

    to add, Cline has already speedran that front

  3. kujtimiihoxha commented on Jun 27, 2025

    @kujtimiihoxha
    Contributor

    I am trying to understand the legality of using these OAuth solutions with a client key that is clearly not meant to be used by other tools. In addition to that none of the providers explicitly allow (I think) using these oauth flows outside their CLIs, I merged in the github copilot implementation but even that is very questionable since I do not know if the copilot API is allowed to be used like that.

    Would love to know from someone who knows better if using these auth flows with clientIds that are not meant for other tools is problematic.

    I know it is possible to add the same thing for anthropic and copilot also but just am struggling to understand if this is going to be an issue long term.

  4. shivamklr commented on Jun 27, 2025

    @shivamklr

    It won't be as useful as you think @aryadytm . Even in Gemini cli the 2.5 pro (free) usage is limited and it returns 429 responses as soon as hits the the rate limits. Then it switches back to 2.5 Flash which you anyway can get with the Gemini API keys for free.

  5. akwin1234 commented on Jun 27, 2025

    @akwin1234

    would be nice instead of using gemini cli as provider we use their AUTH as provider. would be much better
    CLI is full of bugs

  6. ianjamesburke commented on Jun 27, 2025

    @ianjamesburke

    https://github.com/cline/cline/pull/4472/files

    to add, Cline has already speedran that front

    Love this.

    @akwin1234 I agree. The launch was hype but they seriously fumbled the debut. They should have expected a hoard, 1000 messages a day is wild.

    I'm not going to ask too many question for now and just hop back on Cline for now while this is working.


    @kujtimiihoxha I think this is due to unexpectedly high demand and their day 1 patch DID NOT solve the issue.

  7. bachittle commented on Jun 27, 2025

    @bachittle

    @kujtimiihoxha I agree the legality is hard to reason about. You could use the tool programmatically (gemini -p "query") and probably be okay. And since the code is open source, it is possible to just use the same code that is used for OAuth and it will work. But will it violate any API terms of service in that case? The tool itself is open source, but you are using the API outside of its intended purpose.

  8. bachittle commented on Jun 30, 2025

    @bachittle

    Turns out it does violate TOS: https://x.com/cline/status/1939129177807913024

  9. akwin1234 commented on Jun 30, 2025

    @akwin1234
  10. shivamklr commented on Jul 7, 2025

    @shivamklr

    I think #301 will help with this. Once it gets merged, you can enjoy 2.5 pro.
    Go Open Source 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions