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.

Usage Stats — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
U

@dsh-external/dsh-usage-stats

Usage Stats

Usage statistics: aggregate total token usage and model distribution across all sessions, displayed on the settings page

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

npx -y @deepseek-ai/dsh plugin --profile web add github:dustinmoon78/dsh-usage-stats#3cf01654b8a813f8406c9bbd47928055d38b62d6
READMECompatibilityVersions

Compatibility and provenance

Usage Stats is published as @dsh-external/dsh-usage-stats and currently resolves to version 0.0.1. 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/25/2026

Versions

0.0.1stable
8/25/2026

Related plugins

Loading related plugins…

Latest
0.0.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
BSD-3-Clause
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
8/28/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 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.Damage Pulsedsh-damage-pulseDeepSeek Harness balance monitor with a whale-girl companion and cache-aware damage animations for every token charge.Agy Linkdsh-agy-linkGoogle Antigravity (agy CLI) models for DeepSeek Harness — stream Gemini/Claude/GPT-OSS subscriptions into DSH with thinking, tool activity, token usage and in-GUI Google OAuth login.

README

@dsh-external/dsh-usage-stats

English | 中文

DeepSeek Harness (DSH) 用量统计插件:聚合所有会话的 token 使用量(输入 / 输出 / 缓存读 / 缓存写),按模型与按天明细,并在设置页展示,可配置单价估算费用。

功能

  • 聚合总览:全部会话的 token 总量、请求数、会话数。
  • 按模型明细:每个 provider/model 的请求数与各项 token。
  • 按天明细:每日用量列表 + 简易趋势图。
  • 单价与费用估算:内置常见 provider 单价,可在设置页按模型覆盖,支持 USD/RMB 显示。
  • 加载优化:后台预热 + 会话变化防抖重扫 + 增量按会话缓存 + stale-while-revalidate,打开设置页不阻塞。

安装

① 插件市场一键安装

若已安装 dsh-market 插件市场:

  1. 打开 Settings → Plugin Market
  2. 搜索 dsh-usage-stats(或 @dsh-external/dsh-usage-stats)
  3. 点 安装,刷新页面即可在设置页看到「用量统计」

插件市场只收录其 registry 里列出的源;若搜索不到,请先用下面②/③/④安装,再考虑把它加入市场 registry。

② dsh plugin add(官方安装命令)

本包已声明 dsh.bundle manifest,可用官方命令直接安装:

dsh plugin --profile web add @dsh-external/dsh-usage-stats

包未发布 npm 时会回退为 GitHub 源码安装,依赖网络可达 github.com。

③ dsh-super-injector 直接注入

dev_inject_plugin <本仓库目录>

④ 克隆 + 打包安装

git clone https://github.com/dustinmoon78/dsh-usage-stats.git
cd dsh-usage-stats
bash scripts/build.sh      # 校验 lib 并产出 tgz
# 在目标环境安装/注入产出的 tgz

数据流

遍历 ctx.sessionPersistence 的会话快照(listSnapshots / list),inspect/readFrom 读取事件,折叠 assistant/message 与 assistant/chunk(usage) 的 token 字段,按当前生效的 provider/model(request/header)归属。

API

方法路径说明
GET/dsh-usage-stats/api总览(?refresh=1 强制重扫)
POST/dsh-usage-stats/api/prices保存单价/汇率
curl -s 'http://127.0.0.1:<port>/dsh-usage-stats/api'

返回结构含 total、byModel(每模型含 byDay)、byDay、sessionCount、generatedAt、prices、refreshing。

依赖

  • 宿主须提供服务:webServer、sessionPersistence、sessionProjectionCache。
  • 运行时 peer:cordis(>=4.0.0-rc <5)。

License

BSD-3-Clause