Cost Meter · Dsh Cost Meter
Saikel-Orado-Liu/dsh-cost-meter · skills
Cost tracking plugin for the DeepSeek Harness Web GUI — snapshot-anchored per-turn pricing, account balance, and live cost estimates.
★ 3GitHub stars
0Forks
2026-08-25Last updated
TypeScriptLanguage
MITLicense
Key features
- DSH Cost Meter is a DeepSeek conversation cost-tracking plugin for the DeepSeek Harness (DSH) Web GUI — price-snapshot-anchored per-turn cost (peak/off-peak aware), account balance, a cost view tab, per-message cost chips, and a header pill with live streaming estimates.
- Cost Meter solves this with an append-only pricebook: every price/fx/band-table change starts a new immutable PricebookSnapshot (monotonic version, effectiveAt), and each usage event anchors to the snapshot effective at its own time.
- Priority chain — per canonical model key (provider/model, bare model, or the flash/pro pricing key for DeepSeek-family models): manual override official page built-in fallback OpenRouter (fallback only, USD→CNY, cache reads at the configured discount) none.
- src/pricing.ts, src/pricebook.ts, src/session-cost-projection.ts — detailed module docs on parsing, anchoring, and the ledger contract
- Every step's cost, price band, and snapshot version are computed once from the pricebook snapshot effective at the usage event's own time and then never recomputed — a later price change never rewrites an already-written conversation row.
Install command
dsh plugin --profile web add github:Saikel-Orado-Liu/dsh-cost-meter