Explore local usage across conversations by date and compare each conversation's token peak with its estimated cost peak.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/bluefateludi/dsh-token-seismograph/releases/latest/download/dsh-token-seismograph.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:bluefateludi/dsh-token-seismograph
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness 的全局用量面板。打开后先看近七天所有对话的用量,再进入某个对话查看逐轮消耗。面板支持今天、近七天、近三十天和全部历史,可以在 Token 和人民币估算费用之间切换。
安装与使用
在 DSH 的 插件 → 添加插件 中粘贴下面的预构建安装包地址,安装后启用。如果使用桌面端,请在桌面应用内安装。
https://github.com/bluefateludi/dsh-token-seismograph/releases/latest/download/dsh-token-seismograph.tgz
使用命令行的 Web 用户可以运行:
dsh plugin --profile web add https://github.com/bluefateludi/dsh-token-seismograph/releases/latest/download/dsh-token-seismograph.tgz
重新打开 Web 宿主,从 设置 → 用量总览 进入面板。首个发行版针对 DSH 0.2.2-rc.5。每个 Release 都提供固定版本安装包和 SHA-256 校验文件。发行版本
统计范围
- 汇总当前 DSH 宿主可读取的本地会话历史,包括安装插件以前的记录。日期按浏览器本地时区划分,对话明细沿用总览选中的时间范围。
- 一轮对话可以产生多次模型调用。插件从持久化事件读取提供商返回的 usage,分别统计缓存读取、未命中输入、缓存写入和输出。父对话传给子对话的历史只计一次。
- 有些调用没有可用的 usage;界面提示记录缺失情况。插件无法还原已删除的会话,也无法从其他设备、另一个宿主或供应商账户补齐记录。
- 用量统计在本机完成。浏览器只从当前宿主获取统计所需的元数据和会话标题。插件无需模型 API Key,也不会为统计额外调用模型。
估算费用
默认显示未定价。按自己的供应商账单配置费率后,面板会用这张价表估算所选历史记录。混合定价的汇总会标出已知部分。当前费率是固定单价,适用于按固定费率核算的场景。
在所用 profile 的 cordis.patch.yml 中为插件增加如下配置行。保留该文件已有的其他行。示例数字仅展示配置格式,供应商和模型标识需与实际调用一致。
- id: token-seismograph
config:
rates:
- providerId: my-provider
modelId: my-model
hit: 0.2
miss: 2
write: 2
out: 8
四个单价单位均为元/百万 Token。保存后重启对应宿主,再打开用量面板。
开发与发布
使用 Node.js 24.9 或以上版本:
npm ci
npm run build
npm test
npm pack
浏览器入口使用宿主提供的 React。构建后将 dist/client.js 与源码一起提交。原型文件 token-seismograph.html 使用模拟数据,可单独打开;正式安装包只读取真实的 DSH 会话事件。
在 GitHub Actions → Verify and release → Run workflow 选择 main。工作流构建并运行测试,将生成的安装包放入隔离的 DSH Web profile 验收,验收通过后从同一份包创建版本标签、Release 和校验文件。发布新版本前修改 package.json 和锁文件中的版本号。已发布版本的文件不会被覆盖。
Links
More in this category
bowenliang123/dsh-context★ 5656
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
Han-1413141/dsh-cost-meter★ 781
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
wssfk12138/dsh-damage-pulse★ 291
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
zh667/TokenLedger★ 207
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
Ychris12138/dsh-usage-stats★ 194
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
PolinniZhong/dsh-personal-center★ 114
Personal center for DeepSeek Harness: cross-session usage statistics with per-provider and per-model breakdown (auto-discovers configured models), per-model cost estimation, global custom instructions, a data-driven desktop pet with bitmap & vector skins, and a conversation status overview, all local and offline.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.