dsh-all-usage
ParticleLight
支持跨多个模型、供应商、工作区与时间范围进行统一分析,并可在全部保留历史中自定义起止日期;实时呈现缓存命中率,并可分别查看模型和供应商的分类数据;提供 53 周 GitHub 风格热力图、连续使用和缓存效率趋势,支持查询 DeepSeek 账户余额、管理工作区别名及导出 CSV 数据;独立账本在会话删除前持久化用量,增量重建只处理新增事件;重启时未变化会话不回读日志、直接复用账本(以每会话日志 revision 为变更信号),扫描完成后通过轻量 revision 状态判断,只有 Host/统计状态变化才获取完整历史,并显示 revision 复用、实际读取、账本恢复和失败等非敏感同步健康信息;全 0 用量的重放不会覆盖已记录的真实用量,Token 口径显式声明(输入不含缓存命中,缓存读写与推理独立成桶)。中文使用本地时区,英文统一使用 UTC;API 仅限本机访问。
Analyze usage across models, providers, workspaces, and time ranges — including custom start/end dates over the full retained history — with live cache-hit visibility and separate model and provider breakdowns. Includes a 53-week GitHub-style heatmap, usage streaks, cache-efficiency trends, DeepSeek account balance, workspace aliases, CSV export, and a durable ledger that preserves successfully flushed usage after session deletion and rebuilds incrementally — on restart, unchanged sessions are applied from the ledger without re-reading their logs (a per-session log revision is the change signal), and only changed/new events are folded. After a scan, lightweight revision status fetches full history only when the Host/data state changes and exposes non-sensitive sync health (revision reuse, rereads, ledger recovery, and failures). Token accounting is explicit: input is fresh (cache read/write and reasoning are separate buckets) and zero-usage replays never overwrite recorded usage. Chinese uses local time, English uses UTC; API access is loopback-only.
安装命令
dsh plugin --profile web add dsh-all-usage该命令来自上游目录,本站的自动审核尚未覆盖它——执行前请自行核对仓库。
安装后运行 dsh --profile web --dump-config 并重启对应 profile。插件会以你的本机权限运行第三方代码,安装前请检查源码。