dshbase

插件目录 / Developer / dsh-quota-hub

dsh-quota-hub

已验证 · 实测可装 penguin-oo

✓ 持续维护 基于 2 个官方 DSH 包

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-17最近推送
跨平台平台

功能简介

Developer 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

Developer 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-quota-hub

English · 中文

Unified real-time quota dashboard for DeepSeek Harness.

One collapsible glass panel shows every provider quota/balance you care about —
OpenCodeGo rolling/weekly/monthly windows, DeepSeek official balance,
OpenRouter credits, SiliconFlow and Moonshot balances — refreshed on a timer,
with a live health dot on the sidebar button. API keys stay on the host:
the browser only ever receives parsed numbers.

Features

  • Auto-detect — built-in adapters appear as soon as the matching
    credential exists (OPENCODE_GO_API_KEY, DEEPSEEK_API_KEY,
    OPENROUTER_API_KEY, SILICONFLOW_API_KEY, MOONSHOT_API_KEY in DSH
    credentials / env). Unconfigured providers show collapsed as “未配置”.
  • Collapsible & compact — every provider card collapses to one line;
    “全部收起/展开” in one click; auto-refresh with per-card updated time.
  • Health colors — sidebar dot and progress bars turn green (>50% left),
    yellow (20–50%), red (<20%).
  • Custom providers — any HTTP endpoint with JSON quota fields can be
    added in ~/.dsh/dsh-quota-hub.json (dot-path field extraction).
  • Host-side only — all fetching happens in a host service; keys never
    cross the browser boundary.

Install

dsh plugin --profile web add dsh-quota-hub

Restart DSH afterwards. The 💰 额度 button appears in the sidebar footer.

Custom providers

~/.dsh/dsh-quota-hub.json:

{
  "refreshMs": 120000,
  "providers": [
    {
      "id": "my-relay",
      "label": "My Relay",
      "url": "https://relay.example.com/v1/usage",
      "credential": "MY_RELAY_API_KEY",
      "fields": [
        { "key": "used", "label": "已用", "path": "usage.used", "unit": "USD" },
        { "key": "percent", "label": "用量", "path": "usage.percent", "percent": true }
      ]
    }
  ]
}

credential names a DSH credential/env var (Bearer auth). Or drop
credential and put a static headers object on the entry instead — note
that stores the token in the config file in plain text.

How it works

Host: a top-level quotaHub Remote service resolves each adapter's
credential via ctx.credentials, fetches the provider endpoint (10 s timeout,
refreshMs cache, shared in-flight requests), and returns normalized
snapshots. Client: the panel double-unwraps the transport envelope exactly
like the core messageFeedback remote and renders provider cards.

License

MIT

Acknowledgements

Built for the DeepSeek Harness plugin ecosystem — thanks to the community on
LINUX DO for feedback and testing.

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-quota-hub」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:penguin-oo/dsh-quota-hub

Headless(CLI)profile:

dsh plugin --profile headless add github:penguin-oo/dsh-quota-hub

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7819 个插件 →