Introduction

The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” For users with a Google AI subscription (Antigravity / Code Assist), directly connecting it to DSH requires an intermediate layer that converts Google’s OAuth authentication flow into OpenAI-compatible endpoints recognized by DSH. The dsh-gemini-oauth-bridge plugin aims to solve this need, enabling DSH to directly use the Google subscription quota instead of consuming Google API credits.

Plugin Introduction

Name: dsh-gemini-oauth-bridge
Maintainer: hyqhyq3
Category: Online tools
License: MIT

Core Features

This plugin provides the following capabilities:
* One-click login and registration: Click Login in DSH settings, complete the Google OAuth flow, and automatically register and discover upstream models.
* OpenAI-compatible endpoints: Provides the /v1/chat/completions endpoint (supporting both streaming SSE and non-streaming) and the /v1/models endpoint for DSH to call.
* Protocol translation: Supports protocol details such as system messages, multimodal data-URL images, function calling, and reasoning_content.
* Signature replay mechanism: For Gemini 3 thinking mode, replays thoughtSignature to support multi-turn tool calling.
* Subscription optimization: Uses dynamic User-Agent, requestType=agent, and Keep-Alive connections to adapt to Google subscription endpoints.
* Rate limit handling: Automatically parses HTTP 429 status codes and Retry-After headers, enters a cool-down period, and prevents excessive requests.
* Token refresh: Automatically refreshes tokens, with concurrent requests sharing the refresh process.

Installation and Enablement

Use the official installation command to add the plugin:

dsh plugin --profile web add github:hyqhyq3/dsh-gemini-oauth-bridge

After installation, restart DSH, click “Log In with Google Account” in settings, and complete the OAuth flow in the browser.

Configuration and Usage

After successful login, register the gemini-oauth provider in ~/.dsh/settings.yaml. DSH usually writes this configuration automatically during login, but if configuring manually, ensure the baseURL matches your DSH Web port (default is 3080).

llm-pi-ai:
  providers:
    gemini-oauth:
      api: openai-completions
      baseURL: http://127.0.0.1:3080/gemini-oauth-bridge/v1
      apiKeyEnv: GEMINI_OAUTH_API_KEY
      models:
        - id: gemini-3.1-pro-high
        - id: gemini-3.7-flash-high

After restarting DSH, select the corresponding model in the model selector.

Notes

  • Unofficial use: This plugin relies on Antigravity’s public OAuth credentials and the non-public v1internal endpoints, and is not officially supported by Google. Endpoint breakage or account risks are possible.
  • Single-account limitation: Supports only a single account; account rotation is not supported.
  • Image support: Supports only data-URL format images; http(s):// image URL formats are not supported.
  • Port conflict: The login callback occupies 127.0.0.1:51121. If the Antigravity desktop app is logged in concurrently, a conflict may occur.
  • Channel and cache: Generation requests are routed through the daily-cloudcode-pa channel by default, and the signature cache retains up to 800 entries.

Conclusion

This plugin provides DSH users with another way to use a Google subscription. By bridging Google’s OAuth authentication through an OpenAI-compatible protocol, it is suitable for developers who need to use Google subscription quota in local or private environments.

Plugin Directory
GitHub Repository