NoeFabris/opencode-antigravity-auth ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript plugin for OpenCode that lets someone sign in with their Google account and use Google Antigravity access inside OpenCode.
I want it to handle the OAuth login flow, save and reuse the credentials, and expose the available Gemini and Claude models through the normal OpenCode provider setup. It should support multiple Google accounts and automatically switch accounts when one hits a rate limit. It should also be able to use Gemini CLI quota as a fallback or preferred option when configured.
Please include a simple setup experience where the user can add the plugin to their opencode.json, run OpenCode auth login, and optionally have the model config written for them. Support thinking settings for the advanced models, Google Search grounding for Gemini when enabled, and basic recovery when sessions or tool calls fail.
Add clear docs, tests, and a strong warning that this is unofficial and may violate Google terms. Look up current OpenCode plugin docs if needed.
Are you gonna build this?
make sure you review the code using coderabbit