Refone/dsh-billing-mini-tag

Puts the current session's spend in the composer stats row, right of the cache-hit pill, priced from DeepSeek's official quote.

Shows what the current session has cost so far as a small ¥x.xx tag inside the official composer statistics row, immediately right of the cache-hit pill, updating as steps complete without a page reload. It is session spend, not an account balance and not a cross-session total: the host folds assistant/attempt and assistant/message usage events per turn:step, replaces a repeated step's predecessor, bills a retried attempt as a separate call, and remembers which model actually served each step so a mid-session model switch is priced at the correct rate. The tag portals itself into the host's own stats container instead of adding a second dock line, which is why it stays last as the official pills mount and unmount.

Usage & Billing ★ 0
View on GitHub ↗

Install

dsh plugin --profile web add github:Refone/dsh-billing-mini-tag

The README's install line for the web profile; restart dsh web and refresh the GUI. To pin a release instead of tracking main it gives the tag tarball URL form, and to remove it dsh plugin --profile web remove dsh-billing-mini-tag. The note about GitHub-hosted installs: the package ships plain JavaScript with no prepare script, so no build step or pnpm build-script authorization is needed.

Compatibility

A Web-GUI plugin with a host half and a browser half; the browser half polls the host route once a second. The host fetches the official Chinese pricing page at startup and on every message send with an 8 s timeout, caching the last good quote and falling back to a built-in one when the page is unreachable — so the figure stays available offline, at the cost of being possibly stale. Amounts are in yuan.

Details

Alternatives

devacc8/dsh-billing-badge · fan56/dsh-llm-stats · YZz-S/dsh-billing-balance

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins