dongsheng123132/dsh-cost

Evidence-first token cost ledger and budget checks for DeepSeek Harness

Evidence-first token cost ledger and budget checks for DeepSeek Harness. dsh-cost folds the durable DSH session log: it attributes each committed assistant/message.usage record to the active request/header provider/model route, then applies a user-owned price book. Missing usage and missing prices remain explicit — partial evidence never becomes a reassuring fake total. The bundle mounts two tools: dsh_cost_report (durable session cost with route breakdown) and budget checks against the price book.

Coding & Development ★ 3 updated 2026-09-07 ✅ runtime-tested
View on GitHub ↗

Install

dsh plugin --profile <name> add github:dongsheng123132/dsh-cost

GitHub install per README (English): dsh plugin --profile <name> add github:dongsheng123132/dsh-cost (replace <name> with your profile, e.g. web). The bundle mounts two tools: dsh_cost_report and budget checks. Node.js 22+.

Compatibility

DeepSeek Harness (dsh). Node.js 22+. Evidence-first token cost ledger over the durable DSH session log.

Details

Recent updates

token cost ledger; route attribution per request/header; user-owned price book; explicit missing evidence; budget checks.

FAQ

How does it attribute cost?
Each committed assistant/message.usage record is attributed to the active request/header provider/model route, then priced with a user-owned price book.
What if usage or prices are missing?
Missing usage and missing prices stay explicit — partial evidence never becomes a reassuring fake total.
Which tools does it mount?
dsh_cost_report (durable session cost with route breakdown) plus budget checks.

Alternatives

golitter/dsh-deepseek-billing · crazywoola/dsh-balance · huanyuLv/dsh-balance-tide

More plugins in Coding & Development

Browse more in Coding & Development

Guides for Coding & Development plugins