dsh-antigravity: Integrating Google Antigravity / Cloud Code Assist into DeepSeek Harness

Preface

DSH extends its functionality through plugins. If you need to use Google Antigravity / Cloud Code Assist as a model source in DSH Web, you need a Web plugin that can register a provider, complete Google OAuth, display quota information, and be directly selectable in the DSH model picker.

The following introduces the capabilities, installation, and typical usage of dsh-antigravity.

What This Is

dsh-antigravity is a DSH Web plugin maintained by LiZhenNet, licensed under the MIT License.

It registers a DSH LlmAdapter under the provider route antigravity and directly connects to the Cloud Code Assist streaming API. Login, quota display, and model selection are all completed within the DSH Web settings page.

Please note that this is an unofficial integration. The project is not affiliated with or endorsed by Google. Only use accounts and services to which you have authorized access.

Core Features

The following verified capabilities are introduced.

  • Registers a DSH LlmAdapter under the provider route antigravity.
  • Supports Google OAuth login.
  • OAuth credentials are stored under the DSH home directory:
$DSH_HOME/storages/antigravity-oauth.json
  • Directly connects to the Cloud Code Assist streaming API.
  • The Web settings page supports English and Simplified Chinese.
  • The settings page can display account information, quotas grouped by model family, reset times, and model picker options.
  • Real-time remaining quota percentages are displayed next to each model.
  • The plugin starts a loopback OAuth callback server:
http://localhost:51121/oauth-callback
  • Provides a terminal login helper when the Web service cannot open a browser.
  • The plugin resolves public model IDs to runtime model IDs via the live fetchAvailableModels catalog when available, and provides static routing fallbacks.
  • Individual models can be enabled or disabled in the model picker; enabled models are listed at the top.

The declared Node requirement for the package is:

node >=20

The optional peer dependencies declared in the package include:

@deepseek-ai/dsh-home-paths
@deepseek-ai/dsh-host-webserver
@deepseek-ai/dsh-llm
@deepseek-ai/dsh-timeout

Installation and Enablement

Installing from GitHub

First, execute the following command to install the plugin into the DSH Web profile:

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

After installation, the plugin will be mounted as a DSH Web plugin and provide an entry point in the browser settings page.

Installing from a Local Release Tarball

If you already have a local build artifact, you can follow these steps:

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

The first command generates a local tarball, and the second command installs it into the DSH Web profile.

When the Current DSH Version Does Not Support dsh plugin add

If your DSH version does not yet support dsh plugin add, you can manually copy dsh-antigravity into the Web profile’s node_modules directory:

$DSH_HOME/profiles/web/node_modules/

Then, add the plugin entry to the profile’s cordis.patch.yml file and restart DSH:

dsh web

Typical Usage

Login

Open Settings > Antigravity in DSH Web and click Login.

This initiates the Google OAuth flow. After login is complete, the settings page will display account information, quotas grouped by model family, reset times, and model picker options.

Selecting the Provider

After logging in, select the Antigravity provider in the DSH model picker.

Managing Models

In Settings > Antigravity, you can enable or disable individual models using the model picker.

Enabled models will be prioritized and displayed at the top of the list, with real-time remaining quota percentages shown next to each model.

When the Web Service Cannot Open a Browser

If the Web service in your environment cannot open a browser, you can run the terminal login helper on the same machine:

node "$DSH_HOME/profiles/web/node_modules/dsh-antigravity/bin/antigravity-login.mjs"

After login is complete, the credentials will be written to:

$DSH_HOME/storages/antigravity-oauth.json

This file contains the access token and refresh token. It must remain private — do not commit, leak, or copy it to untrusted environments.

Suitable Scenarios and Precautions

This is suitable for the following situations:

  • You are using DSH Web.
  • You want to use Google Antigravity / Cloud Code Assist as a provider in DSH.
  • You need to view account information, quotas, reset times, and model selection on the settings page.
  • You need to complete login in an environment where the Web service cannot open a browser.

Before use, please note:

  • This is an unofficial integration and does not represent an official Google application or official support.
  • Only use accounts and services to which you have authorized access.
  • The credentials file contains access tokens and refresh tokens. You should strictly protect $DSH_HOME/storages/antigravity-oauth.json.
  • The plugin runs with the permissions of the current DSH process. Review the source code, license, and dependencies before installation.
  • This project uses the MIT License and declares node >=20.

Conclusion

The value of dsh-antigravity lies in integrating Google Antigravity / Cloud Code Assist into DSH as a Web plugin, allowing developers to log in, select providers, view quotas, and manage available models directly within DSH.

The verified materials do not provide a documentation table of contents link; the GitHub address is as follows:

https://github.com/LiZhenNet/dsh-antigravity
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye