Skip to content

Antigravity

A plugin that lets the Opencode coding tool sign in to Google's Antigravity IDE via OAuth to use its models.NoeFabris/opencode-antigravity-auth

Stars
11k
Forks
124
Licence
MIT
Language
TypeScript
Last update
9 days ago
Type
Dev tool

What it is

This is an unofficial plugin for Opencode, a terminal coding tool. It lets you sign in with your Google account through OAuth so Opencode can call models that Antigravity (Google's IDE) provides, such as Gemini and Claude models, using Antigravity's rate limits. Accounts are stored locally, and the README notes that Google may restrict accounts that use third-party clients.

  • Run a model from the terminal with opencode run using an antigravity-* model name
  • List available models with opencode models
  • Check cached quota percentages and reset times with the /antigravity command inside Opencode
  • Add, enable, disable, or re-authenticate multiple Google accounts

Great for

  • Developers who already use Opencode and have a Google account with Antigravity access
  • People who want to switch between several Google accounts and check their quota status
  • Users comfortable editing a JSON config file and running commands in a terminal

Not ideal for

  • Anyone who needs guaranteed account safety, since the README warns Google may restrict accounts using third-party clients
  • People not using Opencode, because the plugin only works inside it
  • Users on older Opencode or Node.js versions, since it requires OpenCode 2.1.2+ and Node.js 20+
Step-by-step guide: how to use AntigravityInstall, first run, examples, tips and FAQs

How to get it

  1. 1

    Install with a package manager

    You'll need: OpenCode 2.1.2+ · Node.js 20+

    Add the plugin to your Opencode config (in ~/.config/opencode/opencode.json, not a shell command)

    "plugins": ["opencode-antigravity-auth@2.1.2"]

    Log in to Google through Opencode

    opencode auth login google
  2. 2

    Run it

    • Add the plugin entry to ~/.config/opencode/opencode.json.
    • Run opencode auth login google and choose Google OAuth (Antigravity).
    • Run opencode models to see the available models.
    • Run opencode run --model=google/antigravity-gemini-3.8-flash-high "Hello" to send a first prompt.
  3. 3

    Get the most out of it

    • Open /antigravity or /ag inside Opencode to see accounts, selection, and quota data
    • Use Manage account to verify, enable, or disable accounts and control rotation
    • Refresh quotas with Check quotas if the cache shows a percentage without a reset time
    • Use the #max suffix on a model name to select a variant, as shown in the README example

Downloads

Strengths

  • Uses the setup flow already built into opencode auth login
  • Lets you manage several accounts and see quota status in one place
  • Written in TypeScript under the MIT license with a documented test suite

Trade-offs

  • Unofficial, and Google may restrict accounts using third-party clients
  • Model availability depends on your Google plan and the README does not spell out limits
  • Accounts file contains credentials and must be backed up and protected carefully

How it compares

ProjectStarsTypeLevelUpdatedBest for
opencode-antigravity-auth (this)11kDev toolintermediate9 days agoDevelopers who already use Opencode and have a Google account with Antigravity access
LibreChat46.6kAppintermediate4 days agoTeams that want one shared chat interface across several AI providers
agents42.1kDev toolbeginner4 days agoDevelopers who already use one of the listed AI coding tools and want ready-made specialist agents
oh-my-claudecode40.5kDev toolintermediate4 days agoDevelopers already using Claude Code who want multi-agent workflows
opencodex18.2kDev toolintermediate4 days agoDevelopers who already use Codex or Claude Code and want to try other model providers
GPT_API_free45.3kOtherbeginner7 days agoStudents and researchers doing non-commercial experiments with LLM APIs

Stats synced from GitHub. The assessment above was drafted with AI from the project's README on 2026-10-29 and may miss recent changes — check the README before relying on a command. MIT licence: free to use, modify and distribute, including commercially, as long as you keep the copyright notice.