agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Use Google Antigravity Models via OAuth

Open johnpwhite opened this issue 10 months ago • 10 comments

Any chance of using something like: https://github.com/NoeFabris/opencode-antigravity-auth to enable user with a gemini pro account to use their antigravity and gemini cli models in ao?

Thanks!!

johnpwhite avatar Jan 20 '26 10:01 johnpwhite

Open AI as well

GratefulDave avatar Feb 11 '26 02:02 GratefulDave

Google has started to ban accounts for using this method as it is a loophole and a violation of their terms of service. I know how to do this but i won't share this. You can use your own bot to figure it out for you but be warned. Your account can be banned

xtoor avatar Feb 11 '26 02:02 xtoor

While Google's infrastructure currently lags behind Anthropic and OpenAI, the company appears more committed to open-source initiatives, as evidenced by projects like Gemini-CLI and the A2A protocol. I hope Google's technical capabilities catch up soon.

Regarding account bans, I suspect Google is targeting users who abuse the spirit of its free tier—such as those operating numerous free accounts with no intention of ever paying. Personally, I use both a paid Ultra plan and a single free account. If my legitimate use were banned, I would simply move my business to Anthropic or OpenAI.

Finally, following Anthropic's clear public stance that using code from its models violates its Terms of Service, I hope Google will establish a similar, explicit policy.

GratefulDave avatar Feb 11 '26 04:02 GratefulDave

+1

fernandobayit avatar Mar 14 '26 19:03 fernandobayit

First, the code is out there. I’ve used it for the agent I built. I would rather not port it over again. Second, until Gemini has real coding models and tools I do not care. I just didn’t want to waste time and resources.

If you are interested in doing this point your coder at the opencode-auth-antigravity repo and that will point you in the right direction.

On Sat, Mar 14, 2026 at 3:24 PM Fernando Lima @.***> wrote:

fernandogobah left a comment (agent0ai/agent-zero#928) https://github.com/agent0ai/agent-zero/issues/928#issuecomment-4061197617

+1

— Reply to this email directly, view it on GitHub https://github.com/agent0ai/agent-zero/issues/928#issuecomment-4061197617, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTWE72MMHYR25VHGRIWEDD4QWWXLAVCNFSM6AAAAACSIJUH6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DANRRGE4TONRRG4 . You are receiving this because you commented.Message ID: @.***>

GratefulDave avatar Mar 14 '26 19:03 GratefulDave

ThanksOn 14 Mar 2026, at 16:28, Grateful Dave @.***> wrote:GratefulDave left a comment (agent0ai/agent-zero#928) First, the code is out there. I’ve used it for the agent I built. I would

rather not port it over again. Second, until Gemini has real coding models

and tools I do not care. I just didn’t want to waste time and resources.

If you are interested in doing this point your coder at the

opencode-auth-antigravity repo and that will point you in the right

direction.

On Sat, Mar 14, 2026 at 3:24 PM Fernando Lima @.***>

wrote:

fernandogobah left a comment (agent0ai/agent-zero#928)

https://github.com/agent0ai/agent-zero/issues/928#issuecomment-4061197617

+1

—

Reply to this email directly, view it on GitHub

https://github.com/agent0ai/agent-zero/issues/928#issuecomment-4061197617,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/ACTWE72MMHYR25VHGRIWEDD4QWWXLAVCNFSM6AAAAACSIJUH6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DANRRGE4TONRRG4

.

You are receiving this because you commented.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

fernandobayit avatar Mar 14 '26 22:03 fernandobayit

Title: Feature Request — Support Claude Code / Anthropic OAuth authentication (not just API keys)

Description:

I use Claude Code (Anthropic's VS Code extension) which authenticates via OAuth session tokens tied to my Claude Pro/MAX subscription. This gives me unlimited access to Claude models through VS Code.

However, Agent Zero only supports raw API keys (sk-ant-api03-...) via LiteLLM, which requires separate API credits purchased at console.anthropic.com. This means I'm paying for a Claude subscription but can't use that same authorization in Agent Zero.

The ask: Could Agent Zero support Anthropic's OAuth-based authentication (the same flow Claude Code uses) as an alternative to API keys? This way, users with Claude Pro/MAX subscriptions could use their existing subscription to power Agent Zero without buying separate API credits.

Technical context:

Claude Code authenticates via OAuth and provides a session token (e.g., gssiWmbu...) This token works with Anthropic's API but uses a different auth flow than the x-api-key header that LiteLLM sends The Anthropic API key in my .env has zero credits, but my Claude subscription is fully active and powers Claude Code right now LiteLLM may already have or could add support for OAuth bearer tokens to the Anthropic provider

sallytechservepro-cloud avatar Mar 22 '26 12:03 sallytechservepro-cloud

Forget it, I found the best way. The Agent Zero project is so good that it introduced us to Venice AI. I'll use it this way and also through the Agent Zero API itself.

fernandobayit avatar Mar 22 '26 20:03 fernandobayit

Forget it, I found the best way. The Agent Zero project is so good that it introduced us to Venice AI. I'll use it this way and also through the Agent Zero API itself.

Are you only able to use the API credits from venice AI with agent0 or are you able to get higher usage with specific models because its a monthly sub? if it only works with the API credits i dont see how its any different then OpenRouter

IconicFinesse avatar Apr 24 '26 16:04 IconicFinesse

Closing due to inactivity of 90 days.

github-actions[bot] avatar Jul 24 '26 04:07 github-actions[bot]