r/opencode • • 6d ago

Use your Antigravity subscription in OpenCode (via official Antigravity ACP)

Built an OpenCode v2 plugin (opencode-antigravity-acp) that lets you use your Antigravity subscription models inside OpenCode Desktop and CLI through Google's official local 'agy acp' stdio protocol, similar to how T3 Code and Zed ACP do it. You prolly won't get banned using this. prolly. might get banned but still you got a better shot with this than other solutions.

Install:

opencode plugin add opencode-antigravity-acp
opencode service restart

and you're good to go.

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

npm: https://www.npmjs.com/package/opencode-antigravity-acp

12 Upvotes

10 comments sorted by

8

u/Specialist_Bill_6135 6d ago

last time I tried something like this, I had my antigravity account blocked immediately and only got my account back after submitting an appeal, but you get one shot for that. So I won't be trying, unfortunately

2

u/Pracurser_Reads 6d ago edited 6d ago

Totally understandable. If you ever do feel like giving it a try on a burner account, this is a much better approach than any of the OAuth extractors or reverse proxies currently out there, since it just runs Google's official antigravity acp, Still not zero risk on consumer plans since a few T3 Code users have reported lockouts too, so a throwaway account is definitely the smart way to test it.

2

u/songokussm 6d ago

They did something else then, as Google has confirmed that the implementation used by t3 and pi are allowed.

Source: https://discuss.ai.google.dev/t/tos-clarification-is-t3-code-official-antigravity-acp-agent-permitted-under-the-antigravity-terms-of-service/192027

1

u/Pracurser_Reads 6d ago

Yea I've seen that but I still see people posting about how they got locked out of antigravity even for using it in T3Code. Im not completely sure that this is zero risk.

But even then if you do want to use your antigravity sub in opencode via the official acp is the best way.

Other methods dont even work anymore properly, and for opencode specifically for some reason google refuses requests that contain the opencode codemode instructions prompt.

3

u/Senior_Tourist_4260 5d ago

I haven’t tried it, but it looks pretty good. If there were a plugin that offered a 100% guarantee against getting banned, I’m sure it would generate a lot of hype.

2

u/Killerwalski 5d ago

It's not worth the risk to your Google account.

Just use an orchestrator like Orca to spin up official agy terminals alongside your opencode terminals, if you have the need.

1

u/Specialist_Bill_6135 6d ago

1

u/0xasten 3d ago

> "The reason T3 Code is fine here is architectural: it communicates over standard JSON-RPC with our unmodified antigravity-acp agent binary rather than scraping credentials or driving the desktop app externally."

Based on this response, standard JSON-formatted calls to the official CLI should work without any issues.