r/opencodeCLI • • 2d ago

Gemini/Antigravity subscription in OpenCode with full tool use: what's the best setup?

Trying to get Gemini (AI Pro/Ultra plan) working in OpenCode as well as Claude does: real tool calls, MCP (browser automation) and per-tool stats.

Tried so far:

  • ACP bridge to the official agy CLI. Chat works and MCP servers get passed through. But agy runs its own tool loop, so OpenCode only sees one opaque step per turn and slow MCP calls get interrupted. disableBuiltInTools didn't turn off agy's built-in tools.
  • opencode-antigravity-auth. It works, but there are reports of accounts getting flagged, so I'm skipping it.
  • Gemini CLI OAuth is dead for Pro/Ultra.

Questions:

  1. Has anyone made agy/ACP hand tool calls back to OpenCode, like the Claude Code plugin does?
  2. Is there any way to turn off agy's built-in tools?
  3. Or is a plain API key the only clean route?

Thanks!

(An AI helped format this post.)

8 Upvotes

11 comments sorted by

4

u/ramonzitos 2d ago

waiting is the best option, it seems that they'll allow oauth login early december

2

u/External_Ad1549 2d ago

this is good news thanks

2

u/songokussm 2d ago

Slightly off topic, but you can use t3 to control both opencode and agy. One window. One step. Full reporting. I started using it about two weeks ago and went from 5 apps open to just one. Google and cursor approve

1

u/External_Ad1549 2d ago

I am using openchamber on top of opencode but will check this

1

u/jesus_was_rasta 2d ago

I built a subagent @agy that invokes the agy CLI and gets the response; I basically teached OC ho to use agy CLI. Seems to work.

1

u/External_Ad1549 2d ago

yeah I am using some bridge but it is not cleanly integrated

1

u/Pracurser_Reads 2d ago

You can use this, its a thin client on top of the official agy acp. I emptied my weekly limits twice on the google pro plan twice on it.

https://github.com/system1970/opencode-antigravity-acp

1

u/hieuphung97 2d ago

The Antigravity ACP wrapper is fundamentally designed around its own internal event loop. It will always fight external tool orchestrators on timeouts. If you want granular tool stats in OpenCode, routing directly through Google's OpenAI-compatible endpoint with an API key is infinitely more stable.