Eridani075/deepseek-harness-antigravity-oauth

Plugin插件 Native原生 ⭐ 4 MIT Models & Routing模型与路由

DeepSeek Harness 的 Google Antigravity OAuth Gemini 提供程序

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables users to connect Gemini models from their Google Antigravity account to DSH as a native LLM provider. It runs as a plugin for DSH’s Web profile, uses Google OAuth for authentication, and stores all refresh tokens locally on the user’s device. It supports core Gemini features including text generation, reasoning, tool calls, streaming responses, and image input, and it handles automatic token refresh and failed request retries out of the box.

After installation, users can select Antigravity Gemini models directly from DSH’s model selector, and manage their OAuth credentials and provider status through DSH’s built-in settings page. The plugin automatically fetches available models from the user’s Antigravity account, caches the model list for 15 minutes, and falls back to a built-in list of common Gemini models if the fetch request fails. This plugin is ideal for DSH users who already have an Antigravity account and want to use their Gemini models within the DSH workflow.

This plugin only supports DSH version 0.1.5-rc and newer, and requires Node.js 20 or higher to run correctly. It is released under the open-source MIT license, so users can inspect and modify the code per the license terms. It is important to note that this plugin uses Antigravity’s non-public internal API, is not affiliated with Google or Antigravity, and may violate Google’s Terms of Service, which could lead to account restrictions or bans. Users should evaluate all risks before installing and using this plugin.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,作用是将 Google Antigravity 账号中的 Gemini 模型接入 DSH,作为原生 LLM 提供商使用。该插件运行在 DSH Web 配置文件下,采用 Google OAuth 进行身份认证,刷新令牌存储在用户本地,支持 Gemini 文本生成、思维链、工具调用、流式响应和图片输入,自带自动刷新令牌、失败重试功能。

安装后,用户可以在 DSH 的模型选择器中选择该插件提供的 Antigravity Gemini 模型,也可以在设置页面完成登录、删除、恢复提供商、退出登录等凭据管理操作。插件会自动获取当前账号下可用的模型列表,本地缓存 15 分钟,查询失败时会回退到内置模型列表,适合想要通过 Antigravity 账号使用 Gemini 模型的 DSH 用户。

该插件仅支持 0.1.5-rc 及以上版本的 DSH,要求 Node.js 20 或更高版本,采用 MIT 许可证开源。需要注意的是,该插件调用的是 Antigravity 非公开内部 API,不属于 Google 官方集成,使用可能违反 Google 服务条款,存在账号被封禁的风险,请用户自行评估风险后再使用。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Eridani075/deepseek-harness-antigravity-oauth

把 Eridani075/deepseek-harness-antigravity-oauth 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DeepSeek Harness Antigravity OAuth

把 Google Antigravity 账号里的 Gemini 模型接进 DeepSeek Harness,作为原生 LLM provider 使用。

  • Provider ID:antigravity
  • 运行方式:DSH Web profile 插件
  • 认证方式:Google OAuth,refresh token 保存在本机

[!WARNING] 本插件调用 Antigravity 的非公开内部 API,不是 Google 官方 Gemini API 集成,与 Google、DeepSeek、 Antigravity 官方均无隶属或赞助关系。使用可能违反 Google 服务条款并导致账号受限或封禁,请自行评估 风险,不要使用重要账号;接口可能随时失效,作者不保证长期可用性。请勿将 OAuth callback URL、 authorization code、access token、refresh token 或任何其他敏感信息提交到 issue、日志、截图或公开仓库。

功能

  • Gemini 文本生成、thinking、tool calls / tool results,流式响应与 usage
  • 图像输入:图片附件以 Gemini inlineData 内联发送
  • Web UI 设置页直接唤起 Google 登录并自动接收本机 OAuth callback
  • 自动刷新 token、失败重试;Models 设置页可删除/恢复 provider

不支持 PDF 输入和多账号轮换(DSH 附件通道只保存位图,没有 PDF 内容块可下发);图像生成模型不会注册 到模型选择器。

模型

登录后插件调用上游 v1internal:fetchAvailableModels 获取当前账号可用的模型,并与内置列表合并。 内置列表用于未登录或上游不可达时的回退,因此选择器不会为空:

antigravity-gemini-3.7-flash
antigravity-gemini-3.6-flash
antigravity-gemini-3.5-flash
antigravity-gemini-3.1-pro

上游新增 Gemini 文本模型(*-pro / *-flash)时选择器里会自动出现,不需要更新插件。模型名去掉 antigravity- 前缀后就是请求使用的 model id;-preview、-tiered、-low/-medium/-high 等后缀会 归一化,tier 通过 reasoning effort 选择。只注册「插件实际会发送的 wire id 在上游目录里存在」的模型, 所以显示名一定对应真正被调用的模型;图像生成、Claude、gpt-oss 等上游条目不在本插件范围内。

结果缓存 15 分钟;查询失败时回退内置列表,并在 60 秒内不再重试,避免模型选择器卡在网络上。

*-pro 支持 low 和 high reasoning effort;其他模型支持 low、medium 和 high。

兼容性

只支持当前 dsh 发行版:Node.js 20 或更高版本,宿主需为 0.1.5-rc 线(开发与验证基线:dsh CLI 0.1.5-rc.1,@deepseek-ai/dsh-*@0.1.5-rc.2)。dsh 还在测试阶段,每个 rc 都可能破坏插件,本项目不为 旧宿主保留兼容分支:宿主升级时跟着升级插件;还停在 0.1.0-rc.x 宿主的请先升级 dsh 本身。

宿主提供的包(@deepseek-ai/*)在 package.json 里全部是 optional peer dependency,插件运行时只 import 宿主进程里的那一份,不会随插件安装自己的副本——副本会让宿主认不出插件注册的类(见「故障排查」)。

OAuth 和 transport 由 cortexkit/antigravity-auth 提供。

安装

使用预构建包

打开 GitHub Releases, 在 Assets 中下载 dsh-antigravity-oauth-*.tgz,然后安装下载的文件:

dsh plugin --profile web add "/absolute/path/to/dsh-antigravity-oauth-VERSION.tgz"
dsh --profile web --dump-config

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev deepseek-harness-desktop 下一个 Next maestro-skills →