token-usage-counter
Mu-scorpio/token-usage-counter
持久化 provider 上报的 Token 用量统计,支持按会话、按模型和按日活跃度查看。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 否
- 近月下载
- 1,011
- 最近推送
- 26 天前更新
项目说明
From README
Token Usage Counter for DeepSeek Harness Persistent provider-reported token usage statistics for DeepSeek Harness.The plugin keeps uncached input, cache read, cache write, and output usage in separate buckets, and exposes cumulative, daily, per-session, and per-model views.
Features Capability Description --- --- Accurate buckets Keeps the four provider-reported usage buckets separate.Persistent totals Stores data in the plugin-owned DSH storage domain.Multiple views Provides global, session, and provider/model summaries.
Daily activity Tracks local-day token totals and call counts.Built-in settings page Ships its own Web settings view and heatmap.Safe commits Counts usage only after a successful completion anchor.Interactive command Registers /tokens when the commands service is mounted.Install To install this 0.5.
0 source before an npm release, replace COMMIT with the full 40-ch
Original description
Persistent provider-reported token usage statistics for DeepSeek Harness with per-session, per-model, and daily activity data.
安装方式
npm 包安装 · 安装无需配置
dsh plugin --profile web add -w github:Mu-scorpio/token-usage-counter#COMMITdsh plugin --profile web add -w dsh-token-usage-counterdsh web --patch ./cordis.yml安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 读取文件
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 27 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 1011 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 94
- 生态热度
- 60
- 上手便捷
- 100
- 信号质量
- 86
- 数据置信度
- 100%
相关插件
dsh-token-heatmap
KIDLi1412/dsh-token-heatmap
新建会话页的 GitHub 风格每日 Token 用量热力图:可选日历年度视图、绿/蓝配色与显示开关,并附今日/本月/累计总量。
dsh-observe
PerryLink/dsh-observe
将会话事件流导出为 OpenTelemetry OTLP 与 Langfuse 的脱敏、缓冲 traces 与指标,默认关闭。
token-monitor
Javis603/token-monitor
Local-first desktop widget for tracking token usage, costs, limits, and session activity across 52+ AI coding tools—including Claude Code, Codex, Cursor, OpenCode, OpenClaw, and more—with multi-device sync.