dsh-profile-stats
lovenndme/dsh-profile-stats
DSH 侧栏的个人用量主页:累计 Token(输入/输出/缓存命中环形图)、今日 Token 用量、最长任务用时、连续活跃天数、近 12 个月活动热力图(每天/每周/累计总量三档)、按时间分桶并按模型(Flash / Pro)分色的柱状图,以及按供应商的今日/累计账单拆分。全部由本机会话日志经 ctx.sessionQuery 折叠而来;唯一的外发请求是每 6 小时读一次本包自己在 npm 上的版本号(供面板内的更新按钮使用),不上报数据、不碰凭据。
安装
dsh plugin --profile web add github:lovenndme/dsh-profile-statsREADME
dsh-profile-stats
A personal usage profile page in the DSH sidebar: cumulative tokens, today's usage, an activity heatmap, a split by model, and a split by billing route — all folded from this machine's own session logs.
English · 简体中文

What you get
- Cumulative tokens, drawn as an input / output / cache-hit donut
- Today's tokens, longest task time, and active-day streaks
- A 12-month activity heatmap (daily, weekly, running total)
- Tokens by model over time (Flash / Pro)
- Tokens by provider (today or all time), for reconciling gateway billing
Install
From the marketplace: Plugins → Discover, search dsh-profile-stats.
Or directly:
plugin_manager(action: "install_bundle", target: "dsh-profile-stats")
Requirements: dsh >= 0.2.1-rc.5 < 0.3.0. No other plugin, no dependencies.
License
MIT © 2026 Lovenndme
Metric definitions, the data flow, what leaves the machine, update mechanics and troubleshooting live in docs/INTERNALS.md.