satan9394/dsh-usage-unified ↗★ 0

dsh-usage-unified

跨主机聚合使用统计,提供趋势、模型拆分与明细导出的插件 适合统一核算调用消耗的管理员场景,适合做全局 token 盘点与账单前期分析。

套件
dsh-usage-unified
相容性
待驗證
Harness 依賴範圍
^0.1.5-rc.1
Cordis 依賴範圍
^4.0.2
版本
0.1.1
授權
MIT
最近更新
2026年9月13日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:satan9394/dsh-usage-unified

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:

UpstreamWhat it contributed
lanlandeli/dsh-usage-statsThe 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-tokenThe 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)

FeatureUpstream #1Upstream #2Unified
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