satan9394/dsh-usage-unified ↗★ 0
dsh-usage-unified
跨主机聚合使用统计,提供趋势、模型拆分与明细导出的插件 适合统一核算调用消耗的管理员场景,适合做全局 token 盘点与账单前期分析。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:satan9394/dsh-usage-unified说明文档
阅读完整 README ↗dsh-usage-unified
English | 中文
One DeepSeek Harness (dsh) plugin that is the union of two upstream plugins,
so no feature lives in one and not the other:
| Upstream | What it contributed |
|---|---|
lanlandeli/dsh-usage-stats | The rich dashboard: sidebar + full-screen overlay, per-day token trend, model donut, token-composition card, per-call detail table with filters and pagination, CSV/JSON export, workspace/task-scope filters, zh/en i18n, theme-adaptive styling. |
zoyluoblue/deepseek-harness-token | The machine-wide core: discovery of every dsh home (~/.dsh, ~/.dsh_desktop/, $DSH_HOME), raw session-log reading (zstd container frames), the pure resumable fold, an incremental durable index, all-time / 7d / 30d ranges, current + longest streaks, peak hour, per-model disjoint-bucket split, coverage disclosure, and a Settings section. |
The two were merged at the data layer, not bolted together: one machine-wide index now feeds one dashboard, so the numbers agree everywhere.
Feature matrix (after the merge)
| Feature | Upstream #1 | Upstream #2 | Unified |
|---|---|---|---|
| Machine-wide (all dsh homes / old Desktop versions) | ✗ | ✓ | ✓ |
Both session-log formats (session.jsonl.zstd, session.v3.jsonl.zstd) | n/a | ✗ (v0 only) | ✓ |
| Sidebar entry + full-screen overlay | ✓ | ✗ | ✓ |
| Settings → Usage section | ✗ | ✓ | ✓ |
| Token totals incl. cache reads | ✓ | ✓ | ✓ |
| 7d / 30d / all-time trend | ✓ | ✓ | ✓ |
| Custom date range | ✗ | ✗ | ✓ |
| Smooth multi-series trend (total / input / output / cache read) | ✗ | ✗ | ✓ |
| Current streak | ✓ | ✓ | ✓ |
| Longest streak | ✗ | ✓ | ✓ |
| Peak hour | ✗ | ✓ | ✓ |
| Cache-hit-rate + model-call cards | ✗ | ✗ | ✓ |
| Per-model donut + share | ✓ | ✗ | ✓ |
| Per-model input/cacheRead/cacheWrite/output split | ✗ | ✓ | ✓ |
| Per-call detail table (time, duration, tokens, cache %, model, effort) | ✓ | ✗ | ✓ |
| Workspace + main/subtask scope filters | ✓ | ✗ | ✓ |
| CSV / JSON export | ✓ | ✗ | ✓ |
| Coverage + homes + skipped-log disclosure | ✗ | ✓ | ✓ |
| zh/en, light/dark | ✓ | ✓ | ✓ |
The activity heatmap both upstreams shipped was dropped here as redundant with the trend chart.
Install