wei2yun/dsh-api-cost

Shows what the current DSH session's API usage costs, beside the token counter — priced with DeepSeek's peak and off-peak billing rules.

Token counts tell you how much was used; this tells you what it cost and why. Every settled model call is classified by the time its usage was reported, then priced against DeepSeek's published rules: peak is Monday to Friday 09:00-12:00 and 14:00-18:00 Beijing time, weekends and statutory holidays are off-peak all day, and the 2026 holiday calendar is built in with an offPeakDates setting for later years. The dashboard covers time ranges and per-turn cost, and because prices live in one file in the repository, a data-only price or holiday change does not wait on a release. Useful when a session's bill is decided by when it ran, not only by which model it used.

Usage & Billing ★ 1
View on GitHub ↗

Install

dsh plugin --profile web add github:wei2yun/dsh-api-cost

The install line from the README's Install section, GitHub form — this repository ships no npm package. It is a two-part bundle: a Host plugin that folds provider-reported usage into per-route billing buckets and a Web Client plugin that renders the number the Host computed, which is why the README lists both halves rather than one package.

Compatibility

The README requires DeepSeek Harness 0.2.1-rc.2 or another 0.2.x release (engines.dsh is declared) and the Web UI, because the value is rendered in the composer's ambient dock.

Details

Alternatives

yuu1111/dsh-ui-cost-meter · wuyan19/dsh-plugin-zquota · igormel81/dsh-chat-cost

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins