bobcat848/dsh-calculator

Calculate the real-time cost of DeepSeek API calls made by DeepSeek Harness.

dsh-calculator shows your DeepSeek API spend and account balance in a top-right floating card of the DSH web GUI (collapsible to a pill): current-session cost per model, today's total across sessions in your local timezone (resets at local midnight), a live collapsed pill with today's total, live balance from the DeepSeek API (GET /user/balance), peak/off-peak pricing per the Beijing schedule (peak 09:00–12:00 & 14:00–18:00, off-peak half price; events before 2026-08-17 use the then-current flat rates), and only deepseek-official routes are billed — other providers/models are listed as unbilled. UI follows your browser language (zh/en).

Other ★ 5 updated 2026-09-09 ✅ runtime-tested
View on GitHub ↗

Install

curl -fsSL https://raw.githubusercontent.com/bobcat848/dsh-calculator/main/install.sh | bash

README (EN/zh bilingual, 2026-09-01): one-line online install for macOS/Linux — curl -fsSL https://raw.githubusercontent.com/bobcat848/dsh-calculator/main/install.sh | bash (Windows: irm .../install.ps1 | iex), or clone and run bash install.sh in the repo. Both install into ~/.dsh/profiles/node_modules/dsh-calculator and append a loader row to ~/.dsh/profiles/web/cordis.patch.yml (idempotent). Manual copy + patch-row steps also documented. Restart to activate (plugins are discovered at boot).

Compatibility

DSH web profile (Cordis app); macOS/Linux/Windows; host half + browser overlay half.

Details

Recent updates

Floating spend+balance card; per-session and per-day totals; live balance API; peak/off-peak billing; zh/en UI.

FAQ

Which API calls are billed?
Only deepseek-official routes are billed; any other provider or model is listed as unbilled.
How does peak/off-peak pricing work?
Events are priced by the Beijing schedule — peak 09:00–12:00 & 14:00–18:00, off-peak half price; events before 2026-08-17 use the then-current flat rates.
How do I install it?
macOS/Linux: curl -fsSL https://raw.githubusercontent.com/bobcat848/dsh-calculator/main/install.sh | bash; Windows: irm https://raw.githubusercontent.com/bobcat848/dsh-calculator/main/install.ps1 | iex.

Alternatives

Liu-ty/dsh-balance-display · nonewind/dsh-spend · juhe291/dsh-token-panel

More plugins in Other

Browse more in Other

Guides for Other plugins