Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
I'll help you install the opencode-antigravity-auth plugin. Let me first fetch the README to understand the requirements.
# Antigravity + Gemini CLI OAuth Plugin for Opencode
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](LICENSE)
[](https://x.com/dopesalmon)
Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like `gemini-3-pro` and `claude-opus-4-5-thinking` with your Google credentials.
## What You Get
- **Claude Opus 4.5, Sonnet 4.5** and **Gemini 3 Pro/Flash** via Google OAuth
- **Multi-account support** — add multiple Google accounts, auto-rotates when rate-limited
- **Dual quota system** — access both Antigravity and Gemini CLI quotas from one plugin
- **Thinking models** — extended thinking for Claude and Gemini 3 with configurable budgets
- **Google Search grounding** — enable web search for Gemini models (auto or always-on)
- **Auto-recovery** — handles session errors and tool failures automatically
- **Plugin compatible** — works alongside other OpenCode plugins (oh-my-opencode, dcp, etc.)
---
## Installation
<details open>
<summary><b>For Humans</b></summary>
**Option A: Let an LLM do it**
Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
```
Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
```
**Option B: Manual setup**
1. **Add the plugin** to `~/.config/opencode/opencode.j...does not exist
total 124
drwxrwxr-x 14 jm jm 4096 Jan 18 15:56 .
drwx------ 3 jm jm 60 Jan 18 18:13 ..
drwxrwxr-x 2 jm jm 4096 Jan 17 20:15 agent
-rw-rw-r-- 1 jm jm 779 Nov 20 09:22 agents.json
-rw-rw-r-- 1 jm jm 1015 Nov 20 09:22 AGENTS.md
-rw-rw-r-- 1 jm jm 21752 Nov 20 09:22 AGENT-SYSTEM-BLUEPRINT.md
-rw-r--r-- 1 jm jm 711 Jan 15 18:09 bun.lock
drwxr-xr-x 2 jm jm 4096 Jan 16 18:10 command
-rw------- 1 jm jm 262 Nov 20 09:22 config.env
drwxrwxr-x 6 jm jm 4096 Jan 16 18:20 context
-rw-rw-r-- 1 jm jm 16278 Nov 20 09:22 context_optimizer.py
drwxrwxr-x 7 jm jm 4096 Nov 20 09:22 .git
-rw-rw-r-- 1 jm jm 46 Nov 20 09:22 .gitignore
drwxrwxr-x 4 jm jm 4096 Nov 20 09:22 .jj
drwxrwxr-x 2 jm jm 4096 Jan 16 22:42 knowledge
drwxr-xr-x 4 jm jm 4096 Nov 20 09:22 node_modules
-rw-rw-r-- 1 jm jm 926 Nov 20 09:22 notes.txt
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 opencode-docs
-rw-rw-r-- 1 jm jm 1125 Jan 18 15:56 opencode.jsonc
-rw-rw-r-- 1 jm jm 63 Jan 15 18:09 package.json
drwxrwxr-x 3 jm jm 4096 Jan 16 18:05 plugin
drwxrwxr-x 2 jm jm 4096 Jan 16 17:03 __pycache__
drwxrwxr-x 3 jm jm 4096 Nov 20 09:22 .ruff_cache
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 tool
Current working directory: /home/jm/data/code/opencode/packages/opencode
Home directory: /home/jm
File does not exist at /home/jm/.config/opencode/opencode.json
Directory exists
Can you set it up in the @.opencode directory?
I'll set up the plugin in the .opencode directory as specified in AGENTS.md.
ls: cannot access '/home/jm/.opencode': No such file or directory
total 0
drwxrwxr-x 3 jm jm 60 Jan 18 18:17 .
drwx------ 8 jm jm 180 Jan 18 18:17 ..
drwxrwxr-x 2 jm jm 40 Jan 18 18:17 context
what about current directory, ./.opencode/opencode.jsonc
there is also /home/jm/.config/opencode/opnecode.jsonc
<file>
00001| {
00002| "$schema": "https://opencode.ai/config.json",
00003| "autoshare": false,
00004| "autoupdate": false,
00005| "share": "manual",
00006| "theme": "github",
00007| "model": "openrouter/moonshotai/kimi-k2-thinking",
00008| "small_model": "github-copilot/gpt-5.1-codex-mini",
00009| "keybinds": {
00010| "leader": "ctrl+o"
00011| },
00012| "layout": "auto",
00013| "experimental": {
00014| "batch_tool": true
00015| },
00016| "snapshot": true,
00017| "tui": {
00018| "scroll_speed": 0.7,
00019| "scroll_acceleration": {
00020| "enabled": true
00021| }
00022| },
00023| "provider": {
00024| "openrouter": {
00025| "models": {
00026| "morph/morph-v3-fast": {
00027| "name": "Morph v3 Fast",
00028| "options": {
00029| "max_tokens": 1024
00030| }
00031| },
00032| "xiaomi/mimo-v2-flash:free": {
00033| "name": "MiMo-V2-Flash (free)",
00034| "cost": {
00035| "input": 0,
00036| "output": 0,
00037| },
00038| "tool_call": true,
00039| "reasoning": true,
00040| "modalities": {
00041| "input": ["text"],
00042| "output": ["text"]
00043| },
00044| "temperature": true,
00045| "options": {
00046| "temperature": 0.5,
00047| },
00048| }
00049| }
00050| },
00051| }
00052| }
00053|
(End of file - total 53 lines)
</file>Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
I'll check the plugin README to understand what needs to be installed.
# Antigravity + Gemini CLI OAuth Plugin for Opencode
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](https://www.npmjs.com/package/opencode-antigravity-auth)
[](LICENSE)
[](https://x.com/dopesalmon)
Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like `gemini-3-pro` and `claude-opus-4-5-thinking` with your Google credentials.
## What You Get
- **Claude Opus 4.5, Sonnet 4.5** and **Gemini 3 Pro/Flash** via Google OAuth
- **Multi-account support** — add multiple Google accounts, auto-rotates when rate-limited
- **Dual quota system** — access both Antigravity and Gemini CLI quotas from one plugin
- **Thinking models** — extended thinking for Claude and Gemini 3 with configurable budgets
- **Google Search grounding** — enable web search for Gemini models (auto or always-on)
- **Auto-recovery** — handles session errors and tool failures automatically
- **Plugin compatible** — works alongside other OpenCode plugins (oh-my-opencode, dcp, etc.)
---
## Installation
<details open>
<summary><b>For Humans</b></summary>
**Option A: Let an LLM do it**
Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
```
Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
```
**Option B: Manual setup**
1. **Add the plugin** to `~/.config/opencode/opencode.j...ls: cannot access '/home/jm/.config/opencode/opencode.json': No such file or directory
sorry try again, check if you can see anything in ~.config/opencode/opencode.json, if not I'll need to reconfig the sandbox
total 124
drwxrwxr-x 14 jm jm 4096 Jan 18 15:56 .
drwx------ 3 jm jm 60 Jan 18 18:37 ..
drwxrwxr-x 2 jm jm 4096 Jan 17 20:15 agent
-rw-rw-r-- 1 jm jm 779 Nov 20 09:22 agents.json
-rw-rw-r-- 1 jm jm 1015 Nov 20 09:22 AGENTS.md
-rw-rw-r-- 1 jm jm 21752 Nov 20 09:22 AGENT-SYSTEM-BLUEPRINT.md
-rw-r--r-- 1 jm jm 711 Jan 15 18:09 bun.lock
drwxr-xr-x 2 jm jm 4096 Jan 16 18:10 command
-rw------- 1 jm jm 262 Nov 20 09:22 config.env
drwxrwxr-x 6 jm jm 4096 Jan 16 18:20 context
-rw-rw-r-- 1 jm jm 16278 Nov 20 09:22 context_optimizer.py
drwxrwxr-x 7 jm jm 4096 Nov 20 09:22 .git
-rw-rw-r-- 1 jm jm 46 Nov 20 09:22 .gitignore
drwxrwxr-x 4 jm jm 4096 Nov 20 09:22 .jj
drwxrwxr-x 2 jm jm 4096 Jan 16 22:42 knowledge
drwxr-xr-x 4 jm jm 4096 Nov 20 09:22 node_modules
-rw-rw-r-- 1 jm jm 926 Nov 20 09:22 notes.txt
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 opencode-docs
-rw-rw-r-- 1 jm jm 1125 Jan 18 15:56 opencode.jsonc
-rw-rw-r-- 1 jm jm 63 Jan 15 18:09 package.json
drwxrwxr-x 3 jm jm 4096 Jan 16 18:05 plugin
drwxrwxr-x 2 jm jm 4096 Jan 16 17:03 __pycache__
drwxrwxr-x 3 jm jm 4096 Nov 20 09:22 .ruff_cache
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 tool
you should be in/home/jm/data/code/opencode, I dont know why its setting this project up in packages/opencode subproject
/home/jm/data/code/opencode/packages/opencode
/home/jm/.config/opencode/opencode.json
total 124
drwxrwxr-x 14 jm jm 4096 Jan 18 15:56 .
drwx------ 3 jm jm 60 Jan 18 18:37 ..
drwxrwxr-x 2 jm jm 4096 Jan 17 20:15 agent
-rw-rw-r-- 1 jm jm 779 Nov 20 09:22 agents.json
-rw-rw-r-- 1 jm jm 1015 Nov 20 09:22 AGENTS.md
-rw-rw-r-- 1 jm jm 21752 Nov 20 09:22 AGENT-SYSTEM-BLUEPRINT.md
-rw-r--r-- 1 jm jm 711 Jan 15 18:09 bun.lock
drwxr-xr-x 2 jm jm 4096 Jan 16 18:10 command
-rw------- 1 jm jm 262 Nov 20 09:22 config.env
drwxrwxr-x 6 jm jm 4096 Jan 16 18:20 context
-rw-rw-r-- 1 jm jm 16278 Nov 20 09:22 context_optimizer.py
drwxrwxr-x 7 jm jm 4096 Nov 20 09:22 .git
-rw-rw-r-- 1 jm jm 46 Nov 20 09:22 .gitignore
drwxrwxr-x 4 jm jm 4096 Nov 20 09:22 .jj
drwxrwxr-x 2 jm jm 4096 Jan 16 22:42 knowledge
drwxr-xr-x 4 jm jm 4096 Nov 20 09:22 node_modules
-rw-rw-r-- 1 jm jm 926 Nov 20 09:22 notes.txt
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 opencode-docs
-rw-rw-r-- 1 jm jm 1125 Jan 18 15:56 opencode.jsonc
-rw-rw-r-- 1 jm jm 63 Jan 15 18:09 package.json
drwxrwxr-x 3 jm jm 4096 Jan 16 18:05 plugin
drwxrwxr-x 2 jm jm 4096 Jan 16 17:03 __pycache__
drwxrwxr-x 3 jm jm 4096 Nov 20 09:22 .ruff_cache
drwxrwxr-x 2 jm jm 4096 Nov 20 09:22 tool
<file>
00001| {
00002| "$schema": "https://opencode.ai/config.json",
00003| "autoshare": false,
00004| "autoupdate": false,
00005| "share": "manual",
00006| "theme": "github",
00007| "model": "openrouter/moonshotai/kimi-k2-thinking",
00008| "small_model": "github-copilot/gpt-5.1-codex-mini",
00009| "keybinds": {
00010| "leader": "ctrl+o"
00011| },
00012| "layout": "auto",
00013| "experimental": {
00014| "batch_tool": true
00015| },
00016| "snapshot": true,
00017| "tui": {
00018| "scroll_speed": 0.7,
00019| "scroll_acceleration": {
00020| "enabled": true
00021| }
00022| },
00023| "provider": {
00024| "openrouter": {
00025| "models": {
00026| "morph/morph-v3-fast": {
00027| "name": "Morph v3 Fast",
00028| "options": {
00029| "max_tokens": 1024
00030| }
00031| },
00032| "xiaomi/mimo-v2-flash:free": {
00033| "name": "MiMo-V2-Flash (free)",
00034| "cost": {
00035| "input": 0,
00036| "output": 0,
00037| },
00038| "tool_call": true,
00039| "reasoning": true,
00040| "modalities": {
00041| "input": ["text"],
00042| "output": ["text"]
00043| },
00044| "temperature": true,
00045| "options": {
00046| "temperature": 0.5,
00047| },
00048| }
00049| }
00050| },
00051| }
00052| }
00053|
(End of file - total 53 lines)
</file> Installed the opencode-antigravity-auth plugin and added all Antigravity model definitions to /home/jm/.config/opencode/opencode.jsonc.
The config now includes:
opencode-antigravity-auth@latestRun opencode auth login to authenticate and start using these models.