插件目录 / UI & Skins / dsh-usage-lens
dsh-usage-lens
已验证 · 实测可装 yokesky
功能简介
在 DSH Web UI 设置面板新增用量统计页,聚合 tokens 用量、活跃热力图、按天趋势与模型用量双环图
可用 — 实测通过,早期项目
在 DSH Web UI 设置面板新增用量统计页,聚合 tokens 用量、活跃热力图、按天趋势与模型用量双环图 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-usage-lens
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
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-usage-lens」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
Web profile:
dsh plugin --profile web add @yokesky/dsh-usage-lens Headless(CLI)profile:
dsh plugin --profile headless add @yokesky/dsh-usage-lens 包信息
npm:@yokesky/dsh-usage-lens · 版本 — · 实测环境 dsh 0.1.0-rc.6
实测报告
端到端验证通过:dsh 0.1.0-rc.6 上 L1 安装 + L2 加载 + L3 运行问答。
使用场景
改变 dsh 的外观或交互方式——一套主题、皮肤或新面板,重塑工作区。
适合谁
在 web UI 里一待几小时、想让它按自己的习惯好看又好用的人。
二次开发建议
皮肤、面板和主题 token 是扩展点——写新皮肤、加面板,或与上游配色同步 token。