跳到正文

chaos-03x/dsh-agy

81最近提交 2026年8月16日

dsh-agy DSH 插件

dsh-agy 是一个 DSH 插件,提供基于 OAuth 的 Google Antigravity (agy) 云代码 API 访问。它包含加密存储的多账户池、自动限流轮换、设备指纹管理,以及 Web 仪表盘和 CLI 两种管理方式。

如何安装 dsh-agy DSH 插件

dsh plugin --profile web add dsh-agy

复制不会执行命令。安装 dsh-agy DSH 插件前请核对仓库和版本。

dsh-agy DSH 插件数据来源

dsh-agy DSH 插件快照日期:2026年8月16日

discovered

dsh-agy DSH 插件能做什么

  • OAuth 登录:支持浏览器回调、无头粘贴 URL 模式、远程粘贴凭证 blob 通道。
  • 多账户池:加密存储,自动在 429 限流时轮换,每个账户有冷却时间和分级退避。
  • 每个账户独立设备指纹,用户可覆盖指纹数据。
  • Web 仪表盘(DSH Web 运行时位于 /agy):登录、账户管理、按模型配额条、凭证导出/导入、指纹管理。
  • CLI 命令:login、status、import、export、verify、logout。
  • 凭证导入/导出为粘贴 blob,便于跨环境安全传输。

dsh-agy DSH 插件适合哪些场景

  • 在 DSH Web GUI 中一键 OAuth 登录使用 agy 提供商。
  • 在无头服务器上通过 CLI 管理多个 agy 账户,自动处理限流轮换。
  • 从其他机器或同事处导入已授权的凭证。
  • 导出账户凭证 blob 用于备份或分享。
  • 通过 CLI 或 Web 仪表盘测试各模型配额可用性和健康检查。

dsh-agy DSH 插件适合谁

  • 需要访问 agy 提供商(Google Antigravity 云代码 API)的 DSH 用户。
  • 在无头服务器或 CI 环境中运行 DSH 的开发者。
  • 希望使用多账户自动故障转移以应对限流的用户。

dsh-agy DSH 插件的限制

  • 仅适用于 Google Antigravity (agy) 提供商,不通用。
  • 需要 Node.js >= 22。
  • 由于上游机制,缓存命中率低于 DeepSeek(16k 令牌阈值和缓存更新滞后)。
  • 使用可能违反 Antigravity 服务条款,账户可能被限流、节流或封禁。
  • 多账户轮换和设备指纹默认启用,用于规避上游限制,用户需自行承担风险。

dsh-agy DSH 插件的仓库 README 摘录

以下文字摘自 dsh-agy DSH 插件的上游仓库 chaos-03x/dsh-agy 的 README,版权归原作者,仅作引用。

Google Antigravity (agy) access for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): OAuth authentication, a multi-account pool with automatic 429 rotation, device fingerprinting, and both CLI and web management. > 中文文档:[docs/README_zh.md](docs/README_zh.md) ## Features - **OAuth login**: one-click sign-in via browser OAuth callback, with headless paste-URL mode and a remote paste-credential blob channel. - **Two management surfaces**: web and CLI, either one works, core features are the same. - **Multi-account pool**: encrypted account store, automatic rotation on rate limits, per-account cooldown with tiered backoff, per-account device fingerprints. - **Quota dashboard**: only active when DSH Web is running; append `/agy` to your dsh web address: login, account management, per-model quota bars, model testing, credential export/import, fingerprint management. - **CLI**: `dsh-agy login|status|import|verify|logout` works standalone, with or without a harness. ## Screenshots The `/agy` dashboard inside DSH Web — account cards, per-model quota bars, and one-shot model tests: ![dsh-agy dashboard](https://raw.githubusercontent.com/chaos-03x/dsh-ag

阅读完整 README仓库许可: MIT

dsh-agy DSH 插件常见问题

如何将 dsh-agy 安装为 DSH 插件?

如果你有 dsh CLI,运行 `dsh plugin --profile web add dsh-agy`。也可以使用 `npx @deepseek-ai/dsh plugin --profile web add dsh-agy`。安装后启动 DSH Web,打开 http://127.0.0.1:3080/agy 即可访问仪表盘。

能否在没有浏览器的环境下使用 dsh-agy?

可以,使用 CLI 的无头模式。运行 `npx dsh-agy login --headless` 获取认证 URL,然后在另一台机器上用浏览器打开,粘贴重定向回来的 URL。CLI 会在不打开浏览器的情况下完成 OAuth 流程。

多账户池是如何工作的?

账户加密存储在 `~/.dsh/agy-accounts.json`。当请求返回 429 限流时,插件自动切换到下一个账户。不同类型的 429 响应有不同的冷却时间:软限流立即重试,rate_limited 冷却 5 分钟,quota_exhausted 冷却 24 小时。你可以通过 `dsh-agy login` 或导入功能管理多个账户。

为什么缓存命中率低于预期?

agy 提供商的缓存机制与 DeepSeek 不同。首先,缓存仅在请求前缀超过约 16k 令牌时才开始生效(DSH 默认的系统提示约 13k)。其次,缓存更新滞后大约两轮,导致中间请求无法命中。随着对话变长,命中率会提升,但不要期望达到 99%。

使用 dsh-agy 有风险吗?

此插件使用随 Antigravity 桌面产品提供的 Google 消费者 OAuth 客户端进行认证,并在该产品之外使用 Antigravity 云代码 API。这可能违反 Antigravity 的服务条款。使用风险自负——账户可能被限流、节流或封禁。多账户轮换和设备指纹默认启用,旨在规避上游限制。您需对账户的后果负责。