OpenCode plugin for Google Antigravity and Kiro (AWS CodeWhisperer) APIs. Access Claude and Gemini models using Google or AWS credentials.
Fork of opencode-antigravity-auth with Kiro support and additional fixes.
- Google Antigravity - Access Claude and Gemini via Google OAuth
- Kiro (AWS) - Access Claude Opus/Sonnet via AWS Builder ID
- Dual Quota System - Antigravity + Gemini CLI quota
- Multi-Account Rotation - auto-switches on rate limit
- Session Recovery - auto-recover from tool_result_missing errors
Add to ~/.config/opencode/opencode.json:
{
"plugin": ["github:frankekn/vibe-open-auth"],
"provider": {
"google": {
"models": {
"kiro-claude-opus-4-5": {
"name": "Claude Opus 4.5 (Kiro)",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image"], "output": ["text"] }
},
"kiro-claude-sonnet-4-5": {
"name": "Claude Sonnet 4.5 (Kiro)",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image"], "output": ["text"] }
},
"antigravity-claude-opus-4-5-thinking": {
"name": "Claude Opus 4.5 Thinking (Antigravity)",
"limit": { "context": 200000, "output": 64000 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"variants": {
"low": { "thinkingConfig": { "thinkingBudget": 8192 } },
"max": { "thinkingConfig": { "thinkingBudget": 32768 } }
}
},
"antigravity-gemini-3-flash": {
"name": "Gemini 3 Flash (Antigravity)",
"limit": { "context": 1048576, "output": 65536 },
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"variants": {
"low": { "thinkingLevel": "low" },
"high": { "thinkingLevel": "high" }
}
}
}
}
}
}# Kiro (requires Kiro IDE login first)
opencode run "Hello" --model=google/kiro-claude-opus-4-5
# Antigravity (requires Google OAuth)
opencode run "Hello" --model=google/antigravity-claude-opus-4-5-thinking --variant=maxRequires: Login to Kiro IDE first (uses ~/.aws/sso/cache/kiro-auth-token.json)
All Kiro models have extended thinking enabled by default.
| Model | Description |
|---|---|
kiro-claude-opus-4-5 |
Claude Opus 4.5 with extended thinking |
kiro-claude-sonnet-4-5 |
Claude Sonnet 4.5 with extended thinking |
Requires: opencode auth login with Google account
| Model | Variants |
|---|---|
antigravity-gemini-3-pro |
low, high |
antigravity-gemini-3-flash |
minimal, low, medium, high |
antigravity-claude-sonnet-4-5 |
- |
antigravity-claude-sonnet-4-5-thinking |
low, max |
antigravity-claude-opus-4-5-thinking |
low, max |
| Model |
|---|
gemini-2.5-flash |
gemini-2.5-pro |
gemini-3-flash-preview |
gemini-3-pro-preview |
Create ~/.config/opencode/antigravity.json:
{
"quiet_mode": false,
"debug": false,
"session_recovery": true,
"auto_resume": true
}Debug mode:
OPENCODE_ANTIGRAVITY_DEBUG=1 opencodeAdd multiple Google accounts for higher quota:
opencode auth loginAccounts auto-rotate when rate limited.
- opencode-antigravity-auth - Original plugin by @NoeFabris
- opencode-gemini-auth - Gemini OAuth groundwork by @jenslys
MIT