dsh-balance-tracker
Real DeepSeek account balance and official spend tracker in the session header, with peak/off-peak badge, monetary alert with auto-stop, and one-click top-up.
会话头部的真实 DeepSeek 余额与官方消费统计:高峰/空闲标签、按金额提醒与自动停止、一键充值。
How to install
dsh plugin add dsh-balance-tracker About
**dsh-balance-tracker** 是一个 DeepSeek Harness(dsh)插件:在会话头部**实时显示 DeepSeek 账户余额与今日花费**,按金额设置提醒阈值,一键跳转充值。由 ai-suifeng/dsh-budget-meter fork 而来(MIT,见下方声明)。 特性 **真实余额**:host 端读取 ~/.dsh/.credentials.yaml 的 DEEPSEEK_API_KEY,调用 DeepSeek 官方余额接口;胶囊显示总余额,展开卡片查看赠送 / 充值分项 **官方消费统计**:配置 DEEPSEEK_PLATFORM_TOKEN 后,从平台用量接口拉取**今日消费与累计消费**(与官网用量页同源);未配置时以余额差值估算(前缀 ≈) **用量追踪**:按 DeepSeek 官方峰谷定价把会话 token 消耗折算成人民币,展示今日 tokens 分项与按模型花费 **高峰 / 空闲标签**:胶囊与卡片显示当前时段(默认北京 09:00–12:00、14:00–18:00 为高峰),带状态圆点;卡片设置区同步展示当前高峰时段(其余时间即为空闲) **按金额提醒**:今日花费达到阈值(元)弹 toast;可开启「达到阈值自动停止当前回合」 **充值快捷跳转**:卡片「去充值」在系统浏览器打开 DeepSeek 充值页 **设计…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 1
- mo. downloads
- 821
- Last push
- 2026-08-26
- Created
- 2026-08-24
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
Related plugins
TokenLedger
zh667/TokenLedger
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
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-usage-statistics-panel
HaoyueQin/dsh-usage-statistics-panel
Usage statistics settings panel: 26-week activity heatmap, daily token trend with a cache hit-rate curve, per-model donut and breakdown, time-range filters, summary cards, one-time historical backfill and lossless rebuild.
dsh-all-usage
ParticleLight/dsh-all-usage
Analyze usage across models, providers, workspaces, and time ranges — including custom start/end dates over the full retained history — with live cache-hit visibility and separate model and provider breakdowns. Includes hourly single-day trends, daily cross-day trends, a 53-week GitHub-style heatmap, usage streaks, model and workspace Token-share donut charts with Token, cost, and percentage details, independent combinable filters, cache-efficiency trends, DeepSeek account balance, workspace aliases, CSV export, and a durable ledger that preserves successfully flushed usage after session deletion — and after a workspace is deleted, where its recorded usage is summed into one Deleted row — and rebuilds incrementally — on restart, unchanged sessions are applied from the ledger without re-reading their logs (a per-session log revision is the change signal), and only changed/new events are folded. The workspace registry is kept fresh automatically through the DSH domain/changed probe: only added/removed workspaces are reprocessed incrementally, unchanged workspaces reuse their computed aggregates and ledger with zero rescan, and usage is strictly limited to DSH-registered workspaces (unregistered cwds are ignored). After a scan, lightweight revision status fetches full history only when the Host/data state changes and exposes non-sensitive sync health (revision reuse, rereads, ledger recovery, and failures). Token accounting is explicit: input is fresh (cache read/write and reasoning are separate buckets) and zero-usage replays never overwrite recorded usage. Chinese uses local time, English uses UTC; API access is loopback-only.