opencode-antigravity-auth-tweaked 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Jens
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Jens
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,33 +1,33 @@
1
- # Antigravity + Gemini CLI OAuth Plugin for Opencode
1
+ # Gemini CLI + Antigravity OAuth Plugin for Opencode
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/opencode-antigravity-auth.svg)](https://www.npmjs.com/package/opencode-antigravity-auth)
4
- [![npm beta](https://img.shields.io/npm/v/opencode-antigravity-auth/beta.svg?label=beta)](https://www.npmjs.com/package/opencode-antigravity-auth)
5
- [![npm downloads](https://img.shields.io/npm/dw/opencode-antigravity-auth.svg)](https://www.npmjs.com/package/opencode-antigravity-auth)
3
+ [![npm version](https://img.shields.io/npm/v/opencode-antigravity-auth-tweaked.svg)](https://www.npmjs.com/package/opencode-antigravity-auth-tweaked)
4
+ [![npm beta](https://img.shields.io/npm/v/opencode-antigravity-auth-tweaked/beta.svg?label=beta)](https://www.npmjs.com/package/opencode-antigravity-auth-tweaked)
5
+ [![npm downloads](https://img.shields.io/npm/dw/opencode-antigravity-auth-tweaked.svg)](https://www.npmjs.com/package/opencode-antigravity-auth-tweaked)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
- [![X (Twitter)](https://img.shields.io/badge/X-@dopesalmon-000000?style=flat&logo=x)](https://x.com/dopesalmon)
8
7
 
9
- Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth so you can use Antigravity rate limits and access models like `gemini-3.1-pro` and `claude-opus-4-6-thinking` with your Google credentials.
8
+ Enable Opencode to authenticate against **Gemini CLI** (Google's AI CLI Utility) via OAuth so you can use CLI rate limits and access models like `gemini-3.1-pro` and `gemini-3-flash` with your Google credentials.
10
9
 
11
10
  ## What You Get
12
11
 
13
- - **Claude Opus 4.6, Sonnet 4.6** and **Gemini 3.1 Pro/Flash** via Google OAuth
14
- - **Multi-account support** — add multiple Google accounts, auto-rotates when rate-limited
15
- - **Dual quota system** — access both Antigravity and Gemini CLI quotas from one plugin
16
- - **Thinking models** — extended thinking for Claude and Gemini 3 with configurable budgets
12
+ - ~~**Claude Opus 4.6, Sonnet 4.6**~~ and **Gemini 3.1 Pro/Flash** via Google OAuth.
13
+ - **Multi-account support** — add multiple Google accounts, auto-rotates intelligently when rate-limited.
14
+ - **Dual quota system** — access both **Antigravity** and **Gemini CLI** quotas from one plugin.
15
+ - **Thinking models** — extended thinking for ~~Claude~~ and **Gemini 3/3.1** with configurable budgets
17
16
  - **Google Search grounding** — enable web search for Gemini models (auto or always-on)
18
17
  - **Auto-recovery** — handles session errors and tool failures automatically
19
- - **Plugin compatible** — works alongside other OpenCode plugins (oh-my-opencode, dcp, etc.)
20
-
18
+ - **Plugin compatible** — (kinda) works alongside other OpenCode plugins (oh-my-opencode, dcp, etc.)
19
+ - **Important**: I have no control over what 3rd party plugins modify. If they break the plugin, report it as an issue, but I likely can't do much about it.
21
20
  ---
22
21
 
23
22
  <details open>
24
23
  <summary><b>⚠️ Terms of Service Warning — Read Before Installing</b></summary>
25
24
 
26
25
  > [!CAUTION]
27
- > Using this plugin (and any proxy for antgravity) violate Google's Terms of Service. A number of users have reported their Google accounts being **banned** or **shadow-banned** (restricted access without explicit notification).
26
+ > Using this plugin (and any proxy for Google OAuth products) violate Google's Terms of Service. A number of users have reported their Google accounts being **banned** or **shadow-banned** (restricted access without explicit notification).
28
27
  >
29
28
  > **By using this plugin, you acknowledge:**
30
29
  > - This is an unofficial tool not endorsed by Google
30
+ > - Google has become hyper-aggressive about catching 3rd party OAuth piggybacking
31
31
  > - Your account may be suspended or permanently banned
32
32
  > - You assume all risks associated with using this plugin
33
33
  >
@@ -42,7 +42,7 @@ Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth
42
42
 
43
43
  ```json
44
44
  {
45
- "plugin": ["opencode-antigravity-auth@latest"]
45
+ "plugin": ["opencode-antigravity-auth-tweaked@latest"]
46
46
  }
47
47
  ```
48
48
 
@@ -66,14 +66,14 @@ Enable Opencode to authenticate against **Antigravity** (Google's IDE) via OAuth
66
66
 
67
67
  The plugin provides access to two distinct quota pools: **Antigravity** (IDE) and **Gemini CLI**.
68
68
 
69
- | Model | Quota Pool | Variants |
70
- | ------------------------------------ | ----------- | -------------------------- |
71
- | `antigravity-gemini-3-pro` | Antigravity | low, high |
72
- | `antigravity-gemini-3-flash` | Antigravity | minimal, low, medium, high |
73
- | `antigravity-claude-sonnet-4-6` | Antigravity | |
74
- | `antigravity-claude-opus-4-6-thinking` | Antigravity | low, high |
75
- | `gemini-3-pro-preview` | Gemini CLI | — |
76
- | `gemini-3-flash-preview` | Gemini CLI | — |
69
+ | Model | Quota Pool | Variants |
70
+ |--------------------------------------------| ----------- |-----------------|
71
+ | `antigravity-gemini-3-pro` | Antigravity | low, high |
72
+ | `antigravity-gemini-3-flash` | Antigravity | minimal, low, medium, high |
73
+ | ~~`antigravity-claude-sonnet-4-6`~~ | Antigravity | (not supported) |
74
+ | ~~`antigravity-claude-opus-4-6-thinking`~~ | Antigravity | (not supported) |
75
+ | `gemini-3-pro-preview` | Gemini CLI | — |
76
+ | `gemini-3-flash-preview` | Gemini CLI | — |
77
77
 
78
78
  > **Note**: For the full list of models and detailed variant configuration, see [docs/MODEL-VARIANTS.md](docs/MODEL-VARIANTS.md). It is highly recommended to use `opencode auth login` to automatically manage these definitions.
79
79
 
@@ -106,18 +106,10 @@ For solutions to common issues (auth problems, 403 errors, MCP server conflicts,
106
106
 
107
107
  ---
108
108
 
109
- ## Support
110
-
111
- If this plugin helps you, consider supporting its maintenance:
112
-
113
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/S6S81QBOIR)
114
-
115
- ---
116
-
117
109
  ## Credits
118
110
 
119
- - [opencode-gemini-auth](https://github.com/jenslys/opencode-gemini-auth) by [@jenslys](https://github.com/jenslys)
120
- - [CLIProxyAPI](https://github.com/router-for-me/CLIProxyAPI)
111
+ - [opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) by [@NoeFabris](https://github.com/noefabris)
112
+ - [Gemini CLI](https://github.com/google-gemini/gemini-cli) by [@google-gemini](https://github.com/google-gemini)
121
113
 
122
114
  ## License
123
115
 
@@ -131,6 +123,9 @@ MIT License. See [LICENSE](LICENSE) for details.
131
123
  - Personal / internal development only
132
124
  - Respect internal quotas and data handling policies
133
125
  - Not for production services or bypassing intended limits
126
+ - Do not adapt my code or use it as a reference for the OpenClaw project or any of its forks/related code
127
+ - All algorithms and implementations in this repository that are not defined by a 3rd party library are NoeFabris and I's intellectual property and are protected accordingly by the MIT license and applicable laws
128
+ - NoeFabris has no involvement in this project besides the base forked code
134
129
 
135
130
  ### Warning
136
131
 
@@ -140,6 +135,7 @@ By using this plugin, you acknowledge:
140
135
  - **Account risk** — Providers may suspend or ban accounts
141
136
  - **No guarantees** — APIs may change without notice
142
137
  - **Assumption of risk** — You assume all legal, financial, and technical risks
138
+ - **How licenses work** - You agree to abide by the restrictions outlined in this document and the MIT license
143
139
 
144
140
  ### Disclaimer
145
141
 
@@ -5,8 +5,8 @@
5
5
  */
6
6
  export declare const GEMINI_CLI_VERSION = "0.36.0-nightly.20260317.2f90b4653";
7
7
  export declare const GEMINI_CLI_HEADERS: {
8
- readonly "User-Agent": "GeminiCLI/0.36.0-nightly.20260317.2f90b4653/gemini-2.5-pro (windows; x64; terminal)";
9
- readonly "X-Goog-Api-Client": "gl-node/22.17.0";
10
- readonly "Client-Metadata": "ideType=GEMINI_CLI,platform=WINDOWS_X64,pluginType=GEMINI";
8
+ readonly "User-Agent": "GeminiCLI/0.36.0-nightly.20260317.2f90b4653/gemini-2.5-pro (linux; x64; terminal)";
9
+ readonly "X-Goog-Api-Client": "gl-node/20.20.1";
10
+ readonly "Client-Metadata": "ideType=GEMINI_CLI,platform=LINUX_X64,pluginType=GEMINI";
11
11
  };
12
12
  //# sourceMappingURL=headers.d.ts.map
@@ -7,8 +7,8 @@
7
7
  // DO NOT EDIT MANUALLY. Run 'npm run prebuild' to update.
8
8
  export const GEMINI_CLI_VERSION = "0.36.0-nightly.20260317.2f90b4653";
9
9
  export const GEMINI_CLI_HEADERS = {
10
- "User-Agent": "GeminiCLI/0.36.0-nightly.20260317.2f90b4653/gemini-2.5-pro (windows; x64; terminal)",
11
- "X-Goog-Api-Client": "gl-node/22.17.0",
12
- "Client-Metadata": "ideType=GEMINI_CLI,platform=WINDOWS_X64,pluginType=GEMINI",
10
+ "User-Agent": "GeminiCLI/0.36.0-nightly.20260317.2f90b4653/gemini-2.5-pro (linux; x64; terminal)",
11
+ "X-Goog-Api-Client": "gl-node/20.20.1",
12
+ "Client-Metadata": "ideType=GEMINI_CLI,platform=LINUX_X64,pluginType=GEMINI",
13
13
  };
14
14
  //# sourceMappingURL=headers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"headers.js","sourceRoot":"","sources":["../../../src/generated/headers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kCAAkC;AAClC,0DAA0D;AAE1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;AAEtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,qFAAqF;IACnG,mBAAmB,EAAE,iBAAiB;IACtC,iBAAiB,EAAE,2DAA2D;CACtE,CAAC"}
1
+ {"version":3,"file":"headers.js","sourceRoot":"","sources":["../../../src/generated/headers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,kCAAkC;AAClC,0DAA0D;AAE1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,mCAAmC,CAAC;AAEtE,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,mFAAmF;IACjG,mBAAmB,EAAE,iBAAiB;IACtC,iBAAiB,EAAE,yDAAyD;CACpE,CAAC"}
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
- {
2
- "name": "opencode-antigravity-auth-tweaked",
3
- "version": "1.9.5",
4
- "description": "Google Antigravity IDE OAuth auth plugin for Opencode",
5
- "main": "./dist/index.js",
6
- "types": "./dist/index.d.ts",
7
- "type": "module",
8
- "license": "MIT",
9
- "author": "noefabris + Branden",
10
- "repository": {
11
- "type": "git",
12
- "url": "git+https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked.git"
13
- },
14
- "homepage": "https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked#readme",
15
- "bugs": {
16
- "url": "https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked/issues"
17
- },
18
- "keywords": [
19
- "opencode",
20
- "google",
21
- "antigravity",
22
- "gemini",
23
- "oauth",
24
- "plugin",
25
- "auth",
26
- "claude"
27
- ],
28
- "engines": {
29
- "node": ">=20.0.0"
30
- },
31
- "files": [
32
- "dist/",
33
- "README.md",
34
- "LICENSE"
35
- ],
36
- "scripts": {
37
- "prebuild": "cd gemini-cli && (git pull || echo 'Warning: Could not pull latest gemini-cli') && cd .. && npx tsx script/sync-gemini-cli-headers.ts && npx tsx script/sync-gemini-cli-schemas.ts",
38
- "build": "tsc -p tsconfig.build.json",
39
- "build:schema": "npx tsx script/build-schema.ts",
40
- "typecheck": "tsc --noEmit",
41
- "test": "vitest run",
42
- "test:watch": "vitest",
43
- "test:ui": "vitest --ui",
44
- "test:coverage": "vitest run --coverage",
45
- "prepublishOnly": "npm run build",
46
- "test:e2e:models": "npx tsx script/test-models.ts",
47
- "test:e2e:regression": "npx tsx script/test-regression.ts"
48
- },
49
- "peerDependencies": {
50
- "typescript": "^5"
51
- },
52
- "devDependencies": {
53
- "@types/node": "^24.10.1",
54
- "@types/proper-lockfile": "^4.1.4",
55
- "@vitest/coverage-v8": "^3.0.0",
56
- "@vitest/ui": "^3.0.0",
57
- "typescript": "^5.0.0",
58
- "vitest": "^3.0.0",
59
- "zod-to-json-schema": "^3.25.1"
60
- },
61
- "dependencies": {
62
- "@google/genai": "^1.46.0",
63
- "@openauthjs/openauth": "^0.4.3",
64
- "@opencode-ai/plugin": "^0.15.30",
65
- "proper-lockfile": "^4.1.2",
66
- "xdg-basedir": "^5.1.0",
67
- "zod": "^4.0.0"
68
- }
69
- }
1
+ {
2
+ "name": "opencode-antigravity-auth-tweaked",
3
+ "version": "1.9.6",
4
+ "description": "Google Antigravity IDE OAuth auth plugin for Opencode",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "type": "module",
8
+ "license": "MIT",
9
+ "author": "noefabris + Branden",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked.git"
13
+ },
14
+ "homepage": "https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/PineappleTwilight/opencode-antigravity-auth-tweaked/issues"
17
+ },
18
+ "keywords": [
19
+ "opencode",
20
+ "google",
21
+ "antigravity",
22
+ "gemini",
23
+ "oauth",
24
+ "plugin",
25
+ "auth",
26
+ "claude"
27
+ ],
28
+ "engines": {
29
+ "node": ">=20.0.0"
30
+ },
31
+ "files": [
32
+ "dist/",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "prebuild": "cd gemini-cli && (git pull || echo 'Warning: Could not pull latest gemini-cli') && cd .. && npx tsx script/sync-gemini-cli-headers.ts && npx tsx script/sync-gemini-cli-schemas.ts",
38
+ "build": "tsc -p tsconfig.build.json",
39
+ "build:schema": "npx tsx script/build-schema.ts",
40
+ "typecheck": "tsc --noEmit",
41
+ "test": "vitest run",
42
+ "test:watch": "vitest",
43
+ "test:ui": "vitest --ui",
44
+ "test:coverage": "vitest run --coverage",
45
+ "prepublishOnly": "npm run build",
46
+ "test:e2e:models": "npx tsx script/test-models.ts",
47
+ "test:e2e:regression": "npx tsx script/test-regression.ts"
48
+ },
49
+ "peerDependencies": {
50
+ "typescript": "^5"
51
+ },
52
+ "devDependencies": {
53
+ "@types/node": "^24.10.1",
54
+ "@types/proper-lockfile": "^4.1.4",
55
+ "@vitest/coverage-v8": "^3.0.0",
56
+ "@vitest/ui": "^3.0.0",
57
+ "typescript": "^5.0.0",
58
+ "vitest": "^3.0.0",
59
+ "zod-to-json-schema": "^3.25.1"
60
+ },
61
+ "dependencies": {
62
+ "@google/genai": "^1.46.0",
63
+ "@openauthjs/openauth": "^0.4.3",
64
+ "@opencode-ai/plugin": "^0.15.30",
65
+ "proper-lockfile": "^4.1.2",
66
+ "xdg-basedir": "^5.1.0",
67
+ "zod": "^4.0.0"
68
+ }
69
+ }