← Back to home@WiseXin

dsh-antigravity

Analysis and local fix for dsh-antigravity plugin CallId export error in DSH Desktop Beta

Stars
1
Language
JavaScript
Created
Sep 9, 2026
Updated
Oct 20, 2026
GitHub repo

Introduction

dsh-antigravity

dsh-antigravity

English | 简体中文

Google Antigravity / Cloud Code Assist model provider plugin crafted for DeepSeek Harness (DSH).

Access Google Cloud Code Assist's robust suite of coding models directly through Google OAuth with no API key required, featuring large context windows and advanced reasoning.


✨ Features

  • Day-One Gemini 3.8 Flash Support: Full native support for Google's latest gemini-3.8-flash-tiered with 1M context window, direct model targeting, and configurable thinking levels (Low / Medium / High), defaulting to helpful low-level reasoning.
  • Intelligent Endpoint Auto-Failover & 429 Resilience:
    • Three-Tier Endpoint Chain (Daily → Sandbox → PROD): daily-cloudcode-pa.googleapis.com (the official IDE native primary endpoint) is now the default first choice with zero extra round-trip latency, followed by the daily-cloudcode-pa.sandbox.googleapis.com sandbox, and the legacy cloudcode-pa.googleapis.com as last-resort fallback. Pin a single endpoint with ANTIGRAVITY_BASE_URL.
    • Accurate 429 Classification: Only responses that genuinely indicate exhausted account quota (RESOURCE_EXHAUSTED quota wording) surface a live reset countdown. Endpoint-level rate limiting is handled by backoff and endpoint progression instead of being misreported as "quota exhausted".
    • Upstream Timeout Guard: A 45-second upstream timeout ships by default (tunable via ANTIGRAVITY_UPSTREAM_TIMEOUT_MS). When Google lacks capacity it may hold the connection open instead of returning an error, which otherwise leaves requests loading forever.
  • Live Model Catalog Filtering: While listing models, availability is probed in parallel across endpoints via fetchAvailableModels, pruning whole families Google has retired (3.7 series currently returns 404 upstream) so broken models never appear in the picker. If probing itself fails (e.g. rate limited), the full catalog is preserved rather than silently shrinking; results cache for 5 minutes.
  • Repaired Fallback Chain: Since the 3.7 / 3.6 series has been retired upstream, their fallback target now resolves to the verified gemini-3-flash instead of another non-existent model, and non-quota 429s no longer abort the remaining candidates.
  • Official-Client Wire Fingerprint: Request headers match the official Antigravity client fingerprint format (pinned to the current stable official version, with os_type / arch mapped from the runtime), request envelopes use the upstream key order plus a dynamic requestId, and requestType is injected only when tools are present.
  • Robust Multi-Account Credentials & Quota Persistence:
    • Resolved OAuth token refresh deserialization sync flaws to prevent token rollback and 401 loops.
    • Supports multi-account rotation and real-time quota tracking.
  • Modernized DSH-Native UI:
    • Seamless dark and light theme adaptability following DSH theme tokens;
    • Distinct live quota bars for Gemini (Emerald) and Claude & GPT (Violet/Cyan);
    • Filter tabs (All, Gemini, Claude & GPT, Enabled).
  • Clean Model Catalog: Pruned legacy and broken variants, focusing on the 5 core flagship models.
  • Dual-ID Compatibility: Registers both dsh-antigravity and @wisexin/dsh-antigravity to ensure 100% activation success across marketplace, GitHub, and local tarball installations.

📦 Installation

Option 1: DSH Marketplace

Search antigravity in the DSH Plugin Marketplace and click Install.

Option 2: From GitHub

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

Option 3: From Local Tarball

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

Restart DSH:

dsh web

🔐 Authentication

  1. Open Settings > Antigravity in DSH;
  2. Click Sign in with Google to complete standard browser OAuth;
  3. Once signed in, live quota pools and reset countdowns will display automatically:
    • Gemini Models Pool: Shared among Gemini 3.8 Flash, 3.7 Flash, etc.
    • Claude & GPT Models Pool: Independent pool for Claude Opus 4.6, Claude Sonnet 4.6, and GPT-OSS 120B.
  4. Select Antigravity in your chat model picker and start coding.

On headless servers where the browser cannot be launched automatically, run the CLI login helper on the same machine:

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

📋 Model Catalog

Model IDDisplay NameProviderFeaturesDefault
gemini-3.8-flashGemini 3.8 FlashGoogle🧠 Thinking (Low/Med/High) · 👁️ Vision · 1M ContextEnabled
gemini-3.7-flashGemini 3.7 FlashGoogle🧠 Thinking (Low/Med/High) · 👁️ Vision · 1M ContextEnabled
claude-sonnet-4-6Claude Sonnet 4.6Anthropic🧠 Thinking · 👁️ Vision · 200k ContextEnabled
claude-opus-4-6Claude Opus 4.6Anthropic🧠 Flagship Large · 👁️ Vision · 250k ContextEnabled
gpt-oss-120bGPT-OSS 120BOpenAIOpen Weight Model · 131k ContextEnabled

Note: Google's model supply changes over time. Retired models are hidden from the catalog automatically, and requests targeting them fall back to a verified model in the same family — no manual switching required.


⚖️ Disclaimers & Acknowledgments

  • Disclaimer: Unofficial community integration. Not affiliated with or endorsed by Google, Anthropic, or OpenAI.
  • Acknowledgment: Derived and enhanced from the open-source community project LiZhenNet/dsh-antigravity.

📄 License

MIT License