@cortexkit/opencode-antigravity-auth

中文文档
3.0.38发布于 2026/11/11MITTypeScriptES Module构建来源已验证近 30 天下载 9730

Google Antigravity OAuth auth plugin for OpenCode - access Gemini and Claude models using Google credentials

原始使用文档
文档目录5 节
  1. Host requirements and entries
  2. Installation
  3. Contributor build and TUI
  4. Documentation
  5. License

@cortexkit/opencode-antigravity-auth

One package for OpenCode 1.x (V1) and OpenCode 2.x general availability (GA), with server and terminal user interface (TUI) entries. Use Google sign-in for the Antigravity model catalog, a local account pool with rotation and quota limits, and the /antigravity menu/sidebar. The bundled antigravity-auth CLI provides account and quota commands; read its standalone login pool-replacement behavior before using it with an existing pool.

Using this plugin or any proxy for Antigravity violates Google's Terms of Service. Account holders have reported suspensions, bans, and shadow-bans. The project is not endorsed by Google; use it at your own risk. Never include credentials, account files, or raw request/response dumps in Git or support reports.

This guide describes the current source tree, not an announcement that an unreleased version is available on npm. See the project overview and current models and evidence caveats: Gemini 4 Argon's MEDIUM/HIGH thinking levels and toolConfig omission remain unverified live.

Host requirements and entries

OpenCode 1 from 1.18.4 (the first release with OpenTUI 0.4.5), or OpenCode 2 from 2.0.22.

Host fieldRequired range
OpenCode engine>=1.18.4 <2 or >=2.0.22
V1 SDK peer (@opencode-ai/plugin)* (checkout pin 1.17.13)
GA SDK peer (@opencode/plugin)>=2.0.22 (checkout pin 2.0.22)
OpenTUI core/keymap/solid peers>=0.4.5 each
solid-js peer>=1.9.0
Node>=20

Peers are optional in the manifest because each host uses its matching runtime. The checkout pins V1 OpenTUI 0.4.5 and GA OpenTUI 0.5.14; declared peer ranges alone do not establish that every host/runtime combination has been tested or works.

  • . → dist/index.js, the legacy V1 root.
  • ./server → dist/server.js, the hybrid V1/GA server.
  • ./tui → src/tui/entry.mjs, the V1/GA TUI dispatcher.

Top-level server.js and tui.js forward directory-based loading to the public entries. There is no separate OpenCode 2 adapter package. Register the complete package, not a copy of dist/ alone.

Installation

Quit all OpenCode and Pi processes, then run:

npx @cortexkit/opencode-antigravity-auth setup

Read guided setup for explicit host selection, local versus approved-vault mode, dry-run, and bounded real-run metadata effects. Setup does not bypass stopped-host checks or complete OpenCode 2's native connection. See migration and rollback before upgrading an existing pool; a version pin alone is not an automatic-update hold.

After starting the host, open /antigravity for account, quota, routing, limits, diagnostics, and vault actions. Available actions depend on the active credential source. Commands covers the menu and standalone CLI.

Contributor build and TUI

From the repository root:

bun install --frozen-lockfile
bun install --cwd tools/common-auth-build --frozen-lockfile --ignore-scripts
bun run build
bun run --cwd packages/opencode smoke:tui

Use Bun 1.4.2 for TUI regeneration: bun run --cwd packages/opencode build:tui. The public loader selects src/tui-compiled/tui.js or the raw fallback src/tui-raw/tui.tsx for V1; OpenCode 2 has separate compiled/raw trees. Runtime support is probed before selection; unrelated import errors propagate. The private compiler and input archive are repository-only, never shipped.

smoke:tui installs fresh tarballs in a scratch consumer and checks resolution and renderer startup. It does not prove login, provider activation, or request serving in a real OpenCode host. Use an isolated host config/database for source work so test runs cannot change your usual accounts or conversations. See development and release for the complete gates.

Documentation

License

MIT. See LICENSE.

版本与发布记录

@cortexkit/opencode-antigravity-auth 共发布 47 个版本,首次发布于 2026/06/14;过去 12 个月发布了 47 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.0.38latest2026/11/11今天
3.0.372026/11/082 天前
3.0.362026/11/082 天前
3.0.352026/11/083 天前
3.0.342026/11/073 天前
3.0.332026/11/073 天前

关于 @cortexkit/opencode-antigravity-auth 的常见问题

@cortexkit/opencode-antigravity-auth 是什么?

Google Antigravity OAuth auth plugin for OpenCode - access Gemini and Claude models using Google credentials

如何安装 @cortexkit/opencode-antigravity-auth?

在项目目录运行 npm install @cortexkit/opencode-antigravity-auth,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 antigravity-auth,可以用 npx antigravity-auth 直接运行。

@cortexkit/opencode-antigravity-auth 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cortexkit/opencode-antigravity-auth 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cortexkit/opencode-antigravity-auth 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@cortexkit/opencode-antigravity-auth 可以商用吗?

@cortexkit/opencode-antigravity-auth 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cortexkit/opencode-antigravity-auth 的下载量有多少?

根据 npm 官方下载统计,@cortexkit/opencode-antigravity-auth 在 2026/10/11 – 2026/11/09 这 30 天内被下载 9,730 次,日均约 324 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cortexkit/opencode-antigravity-auth 还在维护吗?

最新版本 3.0.38 发布于 2026/11/11(今天);至今共发布 47 个版本,其中过去 12 个月发布了 47 个;首次发布于 2026/06/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。