DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Usage Center — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
U

dsh-usage-center

Usage Center

用于每日提供商使用情况、订阅配额和 API 价格估算的原生 DSH 设置页面。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:Tieboyh/dsh-usage-center#aac41d51000a9b499a42bf120e5cca632c294365
README兼容性版本

兼容性与来源证明

Usage Center 以 dsh-usage-center 发布,当前版本为 0.5.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/13

版本

0.5.0stable
2026/9/13
0.4.2stable
2026/8/27
0.4.0stable
2026/8/24
查看其余 1 个版本收起版本
0.3.0stable
2026/8/24

相关插件

正在加载相关插件…

最新版
0.5.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/13
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。Damage Pulsedsh-damage-pulseDeepSeek Harness 余额监控器,配有鲸鱼女孩伙伴,并为每次令牌消耗提供感知缓存的伤害动画。Agy Linkdsh-agy-link适用于 DeepSeek Harness 的 Google Antigravity(agy CLI)模型——将 Gemini/Claude/GPT-OSS 订阅流式接入 DSH,并支持思考过程、工具活动、令牌使用量以及在 GUI 中通过 Google OAuth 登录。

README

dsh-usage-center

English · 简体中文

A native usage and cost dashboard for DeepSeek Harness Web. It adds a dedicated Usage & Cost section to DSH Settings and keeps provider usage, subscription quotas, balances, API estimates, and annual activity in one place.

Usage overview with annual token activity heatmap

Provider usage, balance, and subscription quota details

Features

  • Daily input, cached-input, and output token usage grouped by provider and model.
  • A 365-day token activity heatmap with total tokens, peak daily tokens, current streak, and longest streak.
  • DeepSeek account balance, including available, topped-up, and granted balances.
  • Z.ai Coding Plan quota percentages for the current session window, weekly window, and billing cycle.
  • Kimi Code membership tier plus rolling 5-hour and weekly quota percentages.
  • API-equivalent cost estimates calculated from public model rates.
  • Persistent snapshots with stale-while-revalidate loading for instant repeat visits.
  • English and Chinese UI that follows the active DSH language setting.
  • Local-only aggregation and a loopback-only read API.

Estimate vs. actual charge

API estimates answer: “What would the same token usage cost at public API rates?” They are not invoices and are not treated as subscription charges.

  • Metered providers show today’s estimated API cost and any supported account balance.
  • Subscription providers show quota consumption percentages plus an API-equivalent estimate.
  • Pricing source links and effective dates are shown directly in the UI.
  • Rates come from the public models.dev catalog, cached for 12 hours and revalidated conditionally; DSH_USAGE_CENTER_CATALOG_URL points it at another source.
  • A model the catalog knows needs no configuration at all. An entry in src/pricing.js dated later than the catalog entry wins, so hand-verified rates (and DeepSeek’s off-peak figures, which bill double during peak hours) stay authoritative.
  • If the catalog cannot be fetched, the last cached copy is used and the local table still covers known models. Prices fall back to the model name, so the same model reached through a proxy such as LiteLLM still prices.

Requirements

  • DeepSeek Harness Web with plugin support.
  • Node.js >= 22.19.0.

Quick install

dsh plugin --profile web add dsh-usage-center

Restart DSH Web after installing:

dsh web

The npm package and repository include a prebuilt plugin bundle, so installation does not require pnpm allowBuilds configuration. To install directly from GitHub, use github:Tieboyh/dsh-usage-center as the package name.

Install from source

git clone https://github.com/Tieboyh/dsh-usage-center.git
cd dsh-usage-center
npm install
npm run check
dsh plugin --profile web add "$PWD"

Use the source workflow when developing or modifying the plugin. Restart DSH Web after installing, upgrading, or removing it.

Credentials

The plugin reuses DSH credentials. API keys are resolved only by the server process and are never returned to the browser or written into the snapshot.

CredentialPurpose
DEEPSEEK_API_KEYReads the DeepSeek account balance.
ZAI_CODING_CN_API_KEYReads quota windows for a China-region Z.ai Coding Plan.
ZAI_API_KEYFallback credential for a Z.ai Coding Plan.
ZAI_API_REGIONOptional Z.ai region override.
KIMI_CODING_API_KEYReads the Kimi Code membership tier and subscription quota windows.

Data and refresh behavior

Usage is derived locally from DSH session events. Repeated cumulative usage samples for the same turn and step replace earlier samples instead of being double-counted.

  • Live sessions are read incrementally through ctx.sessions snapshotEvents; stored sessions through sessionPersistence open/read, skipping any session whose revision and read cursor are unchanged.
  • Forked sessions are counted from inheritedEventCount, so inherited parent history is never counted twice.
  • A refresh reads only newly appended events; the first cold pass reads the full history once, and later refreshes normally finish in tens of milliseconds.
  • The last successful result is saved to <DSH_HOME>/storages/usage-center-snapshot.json.
  • Opening the page or restarting DSH immediately displays the current-day snapshot.
  • Snapshots older than one minute remain visible while a refresh runs in the background.
  • A manual refresh answers with the current data immediately and updates in the background.
  • If an upstream balance or quota request fails, the last successful snapshot remains available.
  • The snapshot contains aggregated usage and displayed balance/quota results, but no API keys.
  • A stored session that cannot be read (an older on-disk format, for instance) is warned about once and not retried until its revision changes.
  • The fetched model rates are cached at <DSH_HOME>/storages/usage-center-catalog.json and not downloaded again within 12 hours.

Privacy and security

  • The overview endpoint accepts read-only GET requests from loopback clients only.
  • Session contents and raw event logs are not exposed to the browser.
  • Credentials stay behind the DSH credentials service.
  • The only outbound request besides provider balance/quota checks is a read-only GET for public model rates; no local data is uploaded.
  • No external analytics or telemetry are included.

Development

npm install
npm run check
npm run build

npm run check performs syntax checks and runs the Node test suite. npm run build updates the committed DSH client and server bundle in lib/; the committed bundle makes the GitHub one-line install work without dependency build approval.

License

MIT