DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Api Meter — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
A

dsh-api-meter

Api Meter

Multi-provider API usage & balance monitor for DeepSeek Harness: dynamic provider discovery (DeepSeek / MiniMax / Moonshot / generic OpenAI-compatible), balance & quota dashboard, and an api_meter agent tool.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:BigAdam-h/dsh-api-meter#114f7ba01972aeb65287bfcbdac6878907453a56
READMECompatibilityVersions

Compatibility and provenance

Api Meter is published as dsh-api-meter and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/20/2026

Versions

0.1.0stable
8/20/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/22/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

README

dsh-api-meter

多供应商 API 用量 / 余额监控插件,用于 DeepSeek Harness (DSH)。

实时展示你已接入的所有 LLM / 视觉提供方的余额、额度窗口与重置时间,按 Provider 自动发现、按 API Key 去重、按用量直观可视化。

特点

  • 动态 Provider 发现:从 llm-pi-ai / llm-deepseek / vision-toolkit 配置命名空间 + pi-ai 目录 baseUrl 自动收集,无需手工登记
  • 按 API Key 去重:同一账户的多个入口(如 LLM provider + 视觉 provider 共用同一 key)只显示优先级最高的那张卡
  • 余额适配器:内置 DeepSeek (/user/balance)、MiniMax (/v1/token_plan/remains)、Moonshot (/v1/users/me/balance);通用 JSON 路径可自定义
  • 用量进度条(Kimi 风格):fill = 已用量(空条 = 剩余多,更直观);"已用 X% · 剩余 Y% · X 小时后(YYYY-MM-DD HH:mm)"消除歧义
  • 双入口:设置 → 插件 → API 用量 tab,对话区顶部视图环也有API 用量页签(和插件商店同位)
  • Agent 工具:api_meter —— 在对话中问"我的余额多少"即可自动查询
  • 后台刷新:可配置间隔(默认 5 分钟),缓存 + 失败降级,单 provider 失败不影响其他
  • 安全:API Key 仅在服务端经 ctx.credentials.resolve 解析,绝不出现在浏览器响应中

安装

dsh plugin --profile web add "github:BigAdam-h/dsh-api-meter"

然后重启 dsh web,刷新浏览器。在设置 → 插件 → API 用量 标签或对话区顶部视图环即可看到。

配置

默认在 patch 层提供最小配置(provider 枚举 + 5 分钟刷新)。如需新增自定义通用 meter,编辑 ~/.dsh/profiles/web/cordis.patch.yml:

- id: api-meter
  name: dsh-api-meter
  config:
    refreshIntervalMinutes: 5
    requestTimeoutMs: 15000
    backgroundRefresh: true
    genericMeters:
      - provider: my-gateway
        displayName: My Gateway
        balanceUrl: https://gateway.example.com/v1/balance
        balancePointer: data.balance
        apiKeyEnv: MY_GATEWAY_KEY

适配器已验证

Provider端点支持
DeepSeekGET {base}/user/balance✅
MiniMaxGET {origin}/v1/token_plan/remains✅(国内 + 国际 anthropic-protocol 路由)
Moonshot/KimiGET {origin}/v1/users/me/balance✅
New API / Sub2API 中转通用 balanceUrl + balancePointer✅
其他通用 balanceUrl + balancePointer✅

兼容性

  • DeepSeek Harness web profile
  • @deepseek-ai/dsh >= 0.1.0-rc.6
  • DSH 客户端 Cordis 限制:媒体类(视觉/音频)block 会被 DSH 丢弃,文本/结构化结果正常显示

License

MIT