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.
Install
dsh plugin --profile <name> add github:dongsheng123132/dsh-costGitHub 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
- Repo: dongsheng123132/dsh-cost
- Category: Coding & Development
- Stars: 3
- Version: GitHub source (no npm package)
- Last push: 2026-09-07
- First seen: 2026-08-13
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