DSH Conversation Cost
Ayaka157/dsh-conversation-cost · productivity
At the bottom of the DSH dialogue, the statistical line shows in real time the DeepSeek usage costs (RMB/US$, including CDU and Peak Valley pricing)
★ 2GitHub stars
0Forks
2026-08-25Last updated
JavaScriptLanguage
MITLicense
Key features
- Request-by-request precise costing: Host side registers a CostaLedger session projection, folding request events (provider usage + request time + actual model) to the "Stage x model" token drum, O(1) state, O(1) cost each event without aggregation estimation and not replaying log.
- Double currency shows the cost of 0.0123/$0.0018 - ⁇ takes the official Chinese currency statement price, $ takes the official English page United States dollar statement price and is independent and does not convert the exchange rate.
- Cache CacheDistinguishing between Cache Cache / Uncut Entering Separate Prices (Cache written free of charge)
- DSH inputTokens is unhited (cache-hit) and does not repeat the charge.
- Peak Valley PricingAutomatically assigned to a flat/peak/empty slot at each request ' s own time (UTC hours, equivalent Beijing 9-12, 14-18, including no end)
Requirements
- Accurate data sourcesself-registered CostLedger session projection, folding assistant/message (substantial reported + autoband model source) and assistant/chunk (failure request), step/start (time requested).
- Storage costcheckpoint only token drums (O(1)), no request detail
Install command
dsh plugin --profile web add github:Ayaka157/dsh-conversation-cost