LiZhenNet/dsh-antigravity 预览 preview

LiZhenNet/dsh-antigravity

Plugin插件 Native原生 ⭐ 24 MIT Usage & Cost用量与计费Models & Routing模型与路由

为 DeepSeek Harness (DSH) 打造的 Google Antigravity 模型提供者插件,具备原生 Web OAuth、实时配额跟踪和动态推理努力路由功能。

Project Overview项目介绍

dsh-antigravity is a DSH-native plugin built exclusively for DeepSeek Harness Web. It adds Google Antigravity (Cloud Code Assist) as a supported LLM provider to DSH, registers a custom LlmAdapter under the route antigravity, and connects directly to Cloud Code Assist's streaming API. It can be installed via the official DSH plugin command directly from GitHub, or packed locally and added manually to the DSH web profile's cordis patch configuration. The plugin automatically mounts to the host DSH installation during the official install process. It also includes a full bilingual settings interface for both English and Simplified Chinese users.

After installation, users can navigate to the Antigravity settings pane within DSH to complete Google OAuth login. Once logged in, the settings page displays account details, quota information split into two pools: one for Gemini models, and one for Claude 3P and GPT-OSS models. Each quota pool shows both the 5-hour short-term limit and the weekly limit tied to the user's subscription, along with a live countdown to quota reset. Users can enable or disable individual models directly from the settings page. This plugin is for DSH users who hold authorized access to Google Cloud Code Assist and want to route requests through its models.

This plugin is released under the open-source MIT license, and is an unofficial integration that is not affiliated with or endorsed by Google. It stores OAuth access and refresh tokens in a private JSON file under the DSH home directory, so users must keep this file secure to avoid unauthorized access. The plugin runs a local loopback OAuth callback server on port 51121, and if DSH cannot open a browser for login, users can run the included terminal helper script to complete authentication. Quota is consumed proportionally to token usage, so larger models drain the quota pool faster than smaller ones.

dsh-antigravity 是专为 DeepSeek Harness (DSH) Web 端开发的原生插件,用于集成 Google Antigravity/Cloud Code Assist 的大模型服务。它在 DSH 中注册了专门的大语言适配器,可直接调用 Cloud Code Assist 的流式 API,还提供中英双语的网页端设置界面,支持官方命令一键从 GitHub 安装,也支持本地打包后手动配置安装到 DSH 配置文件。

安装完成后,用户可以在 DSH 设置页面找到 Antigravity 选项,通过 OAuth 登录授权谷歌账号,登录后就能查看不同模型系列的配额信息,包括 5 小时短期限额和每周订阅限额,还有倒计时重置提示。用户可以在 DSH 的模型选择器中切换到 Antigravity 提供者,按需开启或关闭单个模型,适合需要通过 Cloud Code Assist 使用 Gemini、Claude 和 GPT 模型的 DSH 用户。

该插件遵循 MIT 开源协议,不隶属于谷歌官方,仅支持 DSH Web 端使用,OAuth 凭证存储在 DSH 主目录下,需注意保密不要泄露文件内容。它自带本地环回回调端口 51121 处理 OAuth 授权,如果网页无法打开浏览器,可使用插件自带的终端辅助工具完成登录,配额按 token 消耗比例扣除,大模型消耗更快。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 24 stars - an early-stage project星标 24,属于早期项目
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:LiZhenNet/dsh-antigravity

把 LiZhenNet/dsh-antigravity 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-antigravity

dsh-antigravity

English | 简体中文

Google Antigravity / Cloud Code Assist model provider for DeepSeek Harness.

This is a DSH Web plugin. It registers a DSH LlmAdapter under provider route antigravity, stores OAuth credentials under DSH home, talks to the Cloud Code Assist streaming API directly, and provides full bilingual (English & Simplified Chinese) i18n support in the Web settings page.

Unofficial integration. This project is not affiliated with or endorsed by Google. Use it only with accounts and services you are authorized to access.

Install into DSH Web

Option 1: Direct from GitHub

dsh plugin --profile web add github:LiZhenNet/dsh-antigravity

Option 2: From Local Release Tarball

npm run pack:dist
dsh plugin --profile web add ./dist/dsh-antigravity-0.0.4.tgz

The package declares a DSH bundle patch, so installation automatically mounts the host plugin and browser settings page.

If your DSH version does not support dsh plugin add, copy the package into the Web profile manually:

cp -R dsh-antigravity "$DSH_HOME/profiles/web/node_modules/"

Then add the plugin to the profile cordis.patch.yml:

- insert:
    - id: llm-antigravity
      name: dsh-antigravity

Restart DSH:

dsh web

Login

Open Settings > Antigravity and click Login. The settings page starts Google OAuth and refreshes quota after login completes.

Antigravity Settings - Not Signed In

After login, the settings page displays account information, quota grouped by model family, reset times, and model selector options:

  • Gemini Models — Gemini Flash / Pro variants share one quota pool (green bars).
  • Claude and GPT models — Claude Opus, Claude Sonnet, and GPT-OSS share a separate 3P quota pool (cyan bars).

Each group shows a 5-hour limit (smooths short-term demand) and a weekly limit (tied to your subscription tier) with a live countdown to reset.

Antigravity Settings - Signed In with Quota

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

← 上一个 Prev dsh-portable-tavern 下一个 Next leantoken →