Foreword

DeepSeek Harness (DSH) unifies conversation, tool calling, and model routing within a single client. If you are already using Google Antigravity’s agy CLI locally, the common practice is to run agy in a separate terminal and manually paste its output back into DSH, making it difficult to align session context and token statistics.

dsh-agy-link, developed by community maintainer amlyczz, registers Antigravity models as a model provider in DSH by invoking an unmodified local agy process. You can select a model in /model to start a conversation, and the streaming output, thinking process, tool activity, and usage statistics will be mapped to DSH’s native interface.

What is This

dsh-agy-link is a DSH community plugin, with the npm package name dsh-agy-link, currently at version 0.4.20, under the MIT license. It is categorized under “Model Inference” in the SkillHub directory.

The plugin does not directly call remote APIs. Instead, it launches an independent agy -p --output-format stream-json subprocess for each conversation round. It parses the NDJSON event stream and writes it into the DSH protocol. The DSH session is bound to the agy native session via --conversation, with agy managing the full history and sending only deltas for each round.

Core Features

Multi-Account Pooling and Rotation

Supports adding multiple Google accounts within DSH. Except for the primary account which uses the system’s default credentials, backup accounts establish isolated HOME sandboxes in the plugin’s private directory, with credentials isolated from each other.

When the current account triggers a 429 rate limit, a 5-hour rolling quota, or a 7-day weekly quota exhaustion, the scheduler switches to the next available account in the pool in sequence. Rate limits for model families like Gemini and Claude/GPT-OSS are calculated independently; cooling down one family does not affect others.

Official Dual Bucket Quota Monitoring

The plugin polls the Antigravity official API v1internal:retrieveUserQuotaSummary in the background. It displays progress bars and reset countdowns for the 5-hour rolling quota and 7-day weekly quota in the console, with details expandable per model.

GUI OAuth Login

Clicking “Add Account” triggers the system browser to complete Google authorization. The local loopback listener automatically captures credentials, eliminating the need to manually copy and paste authorization codes. You can also execute /agy auth in the input field to initiate login for the primary account.

Streaming Output and Tool Mapping

Text, collapsed thinking segments, and tool activities are all mapped to the DSH streaming protocol. Terminal commands (run_command) and file modifications (inline diffs) executed by agy are rendered as native DSH cards. Input, output, thinking, and cache-read tokens are counted in the DSH usage statistics.

Other Capabilities

  • Registers the antigravity provider in DSH model configurations, allowing model switching (e.g., Gemini, Claude, GPT-OSS) via /model.
  • Each account can have an individually configured HTTP(S)/SOCKS proxy for IP exit isolation.
  • Supports multimodal image input, which is automatically saved to disk and authorized to agy via --add-dir.
  • Provides an agy_ask auxiliary tool, allowing other DSH models to delegate a single task to Antigravity.
  • The top bar AGY (n) badge opens the management console to view the account pool, quotas, and proxy status.
  • /agy shortcut command family: status, auth, models, mode, effort, workspace, clear, doctor, help.

Prerequisites

Confirm the following environment before installation:

Prerequisite Description
System Network Proxy Google Antigravity and OAuth require access to domains like oauth2.googleapis.com and cloudcode-pa.googleapis.com. Domestic networks usually need to enable TUN mode or set proxy environment variables.
DeepSeek Harness Verify installation with dsh --version.
Node.js ≥ 24 Verify with node --version.
Google Antigravity agy CLI Install according to the Google official installation documentation. As long as agy --version outputs a version number, it’s acceptable. You can install the plugin first even if not logged in, then complete authorization within the GUI.

Installation and Enabling

The following introduces the installation steps. The plugin is published as an npm package, targeting the DSH Web configuration profile (--profile web).

  1. If the terminal is not automatically managed by the system proxy, first set proxy environment variables (replace the port with the actual value from your local proxy software):
export HTTPS_PROXY=http://127.0.0.1:7890 HTTP_PROXY=http://127.0.0.1:7890 ALL_PROXY=socks5://127.0.0.1:7890
  1. Install the plugin:
dsh plugin --profile web add dsh-agy-link

Upgrade to the latest version:

dsh plugin --profile web add dsh-agy-link@latest --registry https://registry.npmjs.org
  1. Start the DSH Web GUI and check the status in the input field:
/agy status

Typical Usage

Adding an Account and Selecting a Model

After the above installation steps, you can log in using two methods:

  • Method A: Click the AGY (n) badge in the top navigation bar, then click “Add Account,” and complete Google authorization in the browser.
  • Method B: Execute /agy auth in the input field to initiate login for the primary account.

Then, select an Antigravity model in the /model selector to start a conversation.

Common Configuration Options

Plugin configuration can be adjusted in /plugin, the settings panel, or via environment variables:

Key Name Environment Variable Default Value Description
enabled DSH_AGY_ENABLED true Main plugin switch
agyBin DSH_AGY_BIN Auto-detect Explicitly specify the agy binary path
permissionMode DSH_AGY_MODE skip Permission mode: skip / plan / accept-edits
defaultModel DSH_AGY_DEFAULT_MODEL agy default Default model slug
defaultEffort DSH_AGY_DEFAULT_EFFORT model default Thinking budget: low / medium / high
timeoutMs DSH_AGY_TIMEOUT_MS 600000 Per-turn active watchdog timeout (milliseconds)
workspaceRoot DSH_AGY_WORKSPACE_ROOT session cwd agy workspace root directory

Go to “Settings → Antigravity,” or click “Proxy” on an account card to configure a dedicated proxy URL for a single account, e.g., http://127.0.0.1:7890.

Applicable Scenarios and Notes

Suitable for developers who have installed the agy CLI locally and wish to use Antigravity subscription quotas within DSH’s unified interface. If you have multiple Google accounts and need automatic rotation and quota visualization, multi-account pooling is a key value proposition.

Before use, please note:

  • The plugin runs with the permissions of the current dsh process. It will start subprocesses, read/write credentials and workspace files. Before installation, review the GitHub source code and MIT license to ensure you accept its scope of behavior.
  • Usage must comply with the Google Antigravity Terms of Service; the plugin merely bridges the local official agy without modifying its binary.
  • SkillHub is a community-independent directory site for DSH, with no official affiliation with DeepSeek or High-Flyer.

Links

  • SkillHub Directory Page: https://www.skillhub.cn/plugins/amlyczz/dsh-agy-link
  • GitHub Repository: https://github.com/amlyczz/dsh-agy-link
  • npm Package: https://www.npmjs.com/package/dsh-agy-link

dsh-agy-link integrates Antigravity’s CLI capabilities into DSH model routing, eliminating the need to switch between the terminal and the GUI. If you are already using agy and wish to keep conversations, tool cards, and token statistics within the same client, you can follow the steps above to install and try it out.