dsh-deepseek-balance
Run the following command in DeepSeek Harness:
dsh plugin install qschen86/dsh-deepseek-balance
Paste the following prompt into your AI chat to install this plugin:
Install dsh-deepseek-balance in DeepSeek Harness by running the install command; the source is available at https://github.com/qschen86/dsh-deepseek-balance, then restart dsh web and add your DEEPSEEK_API_KEY credential in Settings.
About this plugin
Running conversations on the DeepSeek API through Harness is smooth, but the nagging question is always about money: how much balance is left and how many tokens you have burned today. Checking the vendor dashboard mid-session breaks your flow. dsh-deepseek-balance fixes that by placing a balance badge at the bottom of the sidebar rail: current balance plus daily spend at a glance, turning red when the balance drops below 5 CNY, and expanding into a full detail panel on click.
The detail panel shows dual-currency (CNY/USD) balance breakdown, daily token and cost stats, and a 30-day spend trend built from local snapshot diffs rather than replaying full history. Refreshing is engineered: it fires at session start and turn end, caches for 60 seconds, deduplicates concurrent requests, and falls back to the last successful snapshot on failure so the badge never goes blank. Credentials are read exclusively through the DSH settings panel, and the plugin touches no extra storage.
If your daily work involves the DeepSeek API for chat, writing, or agent tasks, and you want to glance at your wallet without switching tabs, this plugin fills that gap. It is lightweight, non-invasive, MIT-licensed, and ready to use out of the box.
Use Cases
- Glance at remaining API balance and daily spend during DeepSeek conversations
- Review a 30-day consumption trend to spot unusual usage patterns
- Get a red-badge alert when balance drops low to avoid service interruption
Best For
- Individual developers running DeepSeek API for chat, writing, or agent tasks daily
- Teams that need to monitor API spend in-flow and reduce dashboard switching
- Users seeking a lightweight sidebar enhancement for Harness without extra dependencies
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.