Usage statistics dashboard for the DSH Web UI: info cards, a 280-day GitHub-style activity heatmap, daily token trend, and model-usage donut chart.
Install
# from npm (prebuilt)
dsh plugin --profile web add @yokesky/dsh-usage-lens
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yokesky/dsh-usage-lens
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(DSH)Web UI 的用量统计面板,风格参考作者喜欢的 ZCode Harness 设计。 安装后,设置面板会新增「用量统计」页面,直观展示你的使用情况。
预览
功能
- 总览卡片:tokens 用量、会话数量、消息数量、活跃天数、当前连续天数、最常用模型。
- 活跃热力图:GitHub 风格的 280 天活跃热力图,一眼看清使用节奏。
- 每日 Token 趋势:按天查看 token 消耗,可切换「模型 / 厂商」视角。
- 模型用量双环饼图:支持「汇总 / 厂商 / 模型」三种查看方式。
安装
方式一:npm 包
npm install -g @deepseek-ai/dsh # 先安装 dsh CLI,然后才能执行 dsh 命令
dsh plugin --profile web add @yokesky/dsh-usage-lens
方式二:源码
# 需要已安装 dsh CLI(npm install -g @deepseek-ai/dsh),如已装可跳过
git clone https://github.com/yokesky/dsh-usage-lens.git
cd dsh-usage-lens
pnpm install
pnpm build
dsh plugin --profile web add link:<本仓库绝对路径>
说明:
link:方式指向本地源码,修改代码后重新pnpm build并重启 web 服务即可生效,无需重新安装。也可以直接从本仓库路径安装:dsh plugin --profile web add <本仓库路径>。
安装后
重启 web 服务,打开设置面板即可看到「用量统计」。
English
A usage statistics dashboard for the DeepSeek Harness (DSH) Web UI. Once installed, a new Usage Statistics page appears in Settings.
Features: overview cards (tokens, sessions, messages, active days, current streak, top model), a 280-day GitHub-style activity heatmap, a daily token trend chart with model/provider views, and a model-usage donut chart with summary/provider/model modes.
Install:
npm install -g @deepseek-ai/dsh
dsh plugin --profile web add @yokesky/dsh-usage-lens
Restart the web service, then open Settings → Usage Statistics.
数据说明 / Privacy
- 所有数据来自你本机的 DSH 会话记录,只在本地处理,不会上传到任何地方。
- 面板自动跟随 DSH 的亮色 / 暗色主题。
All data is read from your local DSH session logs and processed locally — nothing is uploaded. The panel follows DSH's light / dark theme automatically.
License
MIT © 2026 yokesky
Links
More in this category
bowenliang123/dsh-context★ 1192
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★ 232
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.
zh667/TokenLedger★ 190
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.
wssfk12138/dsh-damage-pulse★ 145
Tracks DeepSeek token usage, per-call and session costs, and account balance with cache-aware charge animations in the DSH Web UI.
Ychris12138/dsh-usage-stats★ 132
Multi-provider usage dashboard with provider/model token breakdowns, calendar drill-downs, account balances, and OpenCode Go / Z.ai subscription quota tracking.
feibi-mochi/deepseek-harness-control-center★ 66
DeepSeek Harness control center for official balance monitoring, per-session costs and tokens, third-party token totals, completion alerts, official recharge, flexible layouts, and agent-assisted session controls.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.