dsh-plugin-ds-balance
DeepSeek API balance + per-call cost tracker: durable per-call cost ledger from real usage chunks with official Beijing peak/off-peak (x2) pricing, 60 s balance polling, and a sidebar footer action showing balance and today's spend.
DeepSeek 余额与逐次调用成本追踪:基于真实 usage 的持久化成本账本,支持官方高峰/低谷定价(北京时间 ×2),60 秒余额轮询,侧栏底部显示余额与今日消耗。
How to install
dsh plugin add ds-balance About
ds-balance A dsh plugin that tracks your **DeepSeek API balance** and **per-call cost** live in the sidebar. It is a dual-face ("双面") dsh plugin built on the standard Cordis extension mechanism — no private dsh APIs: **Host half** (lib/index.js, Node) wraps the llm/stream waterfall, prices every successful DeepSeek call from the provider-reported usage chunk into a durable per-call ledger, polls the official balance endpoint, and exposes a JSON snapshot route /api/ds-balance. **Client half** (lib/client.js, browser) injects an action into the sidebar.footer.action slot showing balance + today'…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-08-26
- Created
- 2026-08-25
Links
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
Related plugins
dsh-ui-usage-billing
kenz1117/dsh-ui-usage-billing
Sidebar billing dashboard: real usage aggregated from session logs (per-model and per-day calls/tokens/cache), cost estimated in CNY from a current multi-provider pricing catalog, subscription-plan (coding/token/agent) routes exempt, and per-provider health dots.
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
dsh-spend
nonewind/dsh-spend
Token usage and estimated spend for the dsh web UI: floating panel with per-model, per-day, and per-session stats.
dsh-usage-billing
940842546/dsh-usage-billing
Usage and cost statistics with peak/off-peak pricing after the 2026-08-17 rate change, a floating summary panel, per-session breakdowns, and a day/week/month/year/all usage heatmap.