Introduction

DeepSeek Harness (DSH) allows extending LLM providers within the Web profile via plugins. eridani075/deepseek-harness-antigravity-oauth is a DSH Web profile plugin that connects the Gemini models from a Google Antigravity account to DeepSeek Harness, using them as native LLM providers.

It is not an official Google Gemini API integration. Instead, it logs into Google Antigravity via Google OAuth, saves the OAuth credentials locally, and then calls the Gemini models on the Antigravity side.

About this

The owner of eridani075/deepseek-harness-antigravity-oauth is Eridani075, and the license is MIT.

This plugin registers the antigravity provider and exposes a set of Gemini model IDs for selection in the DSH model selector. Authentication is performed via Google OAuth, with credentials saved locally.

Core Features

Here are the main capabilities it provides:

  • Gemini text generation, thinking, and tool calls/results.
  • Streaming responses, usage, abort, automatic token refresh, and failure retry.
  • The Web UI settings page directly triggers a Google login and automatically receives the OAuth callback.
  • The Models settings page allows deleting or restoring the provider.
  • The Antigravity settings page allows logging out and deleting local OAuth credential files.
  • Currently supported model IDs:
antigravity-gemini-3.7-flash
antigravity-gemini-3.6-flash
antigravity-gemini-3.5-flash
antigravity-gemini-3.1-pro

Image/PDF input and multi-account rotation are currently not supported; image models are not registered to the model selector.

Installation and Enabling

First, download the release package. The README specifies downloading dsh-antigravity-oauth-*.tgz from GitHub Releases Assets and then installing the local tarball:

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

Here, /absolute/path/to and VERSION are placeholders as shown in the README; replace them with the actual downloaded file path and version number during use.

After installation, export the current profile configuration to confirm the plugin entry has appeared:

dsh --profile web --dump-config

After confirming the output contains dsh-antigravity-oauth and llm-antigravity-oauth, restart the DSH Web service and reopen Settings → Models.

If an existing DSH Web service is occupying 127.0.0.1:3080, do not start a second dsh web in parallel. You can refresh the existing page or restart the old service before opening it.

Typical Usage

  1. Open Settings → Antigravity in the DSH Web UI, click “Log in with Google” and complete the authorization. The plugin will listen for the local OAuth callback and save the credentials automatically.

  2. You can also log in via CLI:

dsh plugin --profile web exec dsh-antigravity-login

The CLI will listen on 127.0.0.1:51121 and print the Google OAuth URL. After authorization is complete, the callback will be handed to the CLI automatically; if the automatic callback fails, you can paste the full callback URL or authorization code.

  1. Credentials are saved by default to:
${DSH_HOME:-~/.dsh}/antigravity-oauth.json

You can also specify a different path via DSH_ANTIGRAVITY_AUTH_FILE. On POSIX systems, the credential file permissions will be set to 0600.

  1. After logging in, select the antigravity provider and model ID in the model selector, for example:
antigravity-gemini-3.7-flash
antigravity-gemini-3.6-flash
antigravity-gemini-3.5-flash
antigravity-gemini-3.1-pro
  1. The provider can be deleted or restored. The Google Antigravity provider in Settings → Models supports DSH’s native Delete operation; Delete will remove the provider configuration and disable the adapter but keep the OAuth credential file.

“Enable Provider” in Settings → Antigravity can restore the provider without re-logging in.

  1. Settings → Antigravity → Log out will delete the local OAuth credential file but will not revoke the application authorization on the Google account side. You need to log in again before using the model again.

Use Cases and Notes

This plugin is suitable for developers researching the Gemini text model interface in a Google Antigravity account within DSH Web.

Please pay special attention before use: This plugin calls the non-public internal API of Antigravity, not an official Google Gemini API integration. Using it may violate Google’s Terms of Service and could lead to account restrictions or bans. Please do not use important accounts.

There is no affiliation, authorization, or sponsorship between the project and Google, DeepSeek, or Antigravity officials. This plugin is for learning and technical research purposes only, and users bear the risks themselves.

Runtime environment requires Node.js 20 or higher; the development/verification version is @deepseek-ai/dsh@0.1.0-rc.6.

Regarding security, sensitive information such as OAuth callback URL, authorization code, access token, refresh token, etc., must not be submitted to issues, logs, screenshots, or public repositories. The plugin reads local credentials and initiates relevant requests on behalf of the current DSH process. Therefore, it is recommended to check the source code, license, and risk statement before installation.

Links

  • Directory: https://www.skillhub.cn/plugins/Eridani075/deepseek-harness-antigravity-oauth
  • GitHub: https://github.com/Eridani075/deepseek-harness-antigravity-oauth