Views
No views yet
opencode-antigravity-auth), pre-configured multi-account rotation, and Gemini 3.7 Flash as default.opencode.json & opencode.jsonc):
google/antigravity-gemini-3.7-flash (Default fast model)google/antigravity-gemini-3.1-pro (Reasoning / Pro model)google/antigravity-claude-sonnet-4-6 (Claude Sonnet)google/antigravity-claude-opus-4-6-thinking (Claude Opus with extended thinking)antigravity.json):
hybrid account selection strategy and balance scheduling mode.antigravity-accounts.json):
scripts/patch-plugin.py):
opencode-antigravity-auth to seamlessly route gemini-3.7 requests to the Antigravity backend API.install.sh for Linux/macOS/WSL, install.ps1 for Windows PowerShell).1tar -xzf opencode-antigravity-setup.tar.gz
2cd opencode-antigravity-packagebash install.sh1opencode run "Say hello from Gemini 3.7 Flash!"
2opencode1tar -xzf opencode-antigravity-setup.tar.gz
2cd opencode-antigravity-package1Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
2.\install.ps1opencode run "Say hello from Gemini 3.7 Flash!"~/.config/opencode/:1mkdir -p ~/.config/opencode
2cp -r config/* ~/.config/opencode/
3chmod 600 ~/.config/opencode/antigravity-accounts.json1mkdir -p ~/.cache/opencode/packages
2cp -r cache/packages/* ~/.cache/opencode/packages/python3 scripts/patch-plugin.pyopencode run "Hello"| File | Path | Description |
|---|---|---|
| Main Config | ~/.config/opencode/opencode.json | Model definitions, default models, plugin list |
| Plugin Settings | ~/.config/opencode/antigravity.json | Multi-account rotation, quota thresholds, retry timing |
| Accounts | ~/.config/opencode/antigravity-accounts.json | OAuth tokens, quota cache, account rotation state |
| Debug Logs | ~/.config/opencode/antigravity-logs/ | Plugin execution logs (when debug is enabled) |
~ resolves to C:\Users\<YourUsername>)switch_on_first_rate_limit: true immediately selects the next available account.scheduling_mode: "balance" distributes requests to maximize availability.opencode auth login~/.config/opencode/antigravity-accounts.json and immediately included in rotation.opencode auth login and choose:~/.config/opencode/opencode.json:1{
2 "model": "google/antigravity-gemini-3.7-flash",
3 "small_model": "google/antigravity-gemini-3.7-flash"
4}"google/antigravity-gemini-3.7-flash" — Gemini 3.7 Flash with thinking"google/antigravity-gemini-3.1-pro" — Gemini 3.1 Pro with thinking"google/antigravity-claude-sonnet-4-6" — Claude Sonnet 4.6"google/antigravity-claude-opus-4-6-thinking" — Claude Opus 4.6 Thinkingopencode run "Write a compiler in Rust" --model google/antigravity-claude-opus-4-6-thinking --variant max1python3 - <<'PY'
2import json
3p = "/root/.config/opencode/antigravity-accounts.json" # or ~/.config/opencode/...
4with open(p) as f: d = json.load(f)
5for a in d.get("accounts", []):
6 a["enabled"] = True
7 for k in ["rateLimitResetTimes", "coolingDownUntil", "cooldownReason", "verificationRequired", "verificationRequiredAt", "verificationRequiredReason", "verificationRequiredType", "verificationUrl"]:
8 a.pop(k, None)
9with open(p, "w") as f: json.dump(d, f, indent=2)
10print("Accounts reset and enabled!")
11PYpython3 scripts/patch-plugin.pyopencode auth login (Port 51121)1# Linux/macOS
2lsof -i :51121 | awk 'NR>1 {print $2}' | xargs -r kill -9