How to use dsh-usage-stats
Shows GitHub-style usage heatmaps, token/cache/balance dashboards, and manages workspace aliases.
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
Shows GitHub-style usage heatmaps, token/cache/balance dashboards, and manages workspace aliases.
— source: plugins.ai_summary
Install & verify
dsh plugin --profile web add dsh-usage-stats
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- 热力图:53 周 GitHub 绿,每完成一个回合点亮;悬停按工作区显示次数明细与当日 Token
- 统计卡片:总花费 Token(分项)、缓存命中率、账户余额(DeepSeek 官方接口)、总使用次数、连续使用、各工作区 Token 进度条
- 工作区别名:头部「✎ 工作区别名」管理,持久化保存(
$DSH_HOME/storages的 KV 单元usage-stats-aliases) - 时间范围切换(近 30 天 / 近 90 天 / 全部)、动画、亮暗主题自适应
-
- id: usage-stats
— source: plugin_wiki.readme_en (fallback readme_raw)
Compatibility
- DSH: 未声明
- Node: 未声明
- Platforms: macOS, Windows, Linux
— source: plugin_wiki.compatibility_json
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule