dsh-balance
在终端中运行以下命令:
dsh plugin install YYfather/dsh-balance
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 终端中运行 dsh plugin install YYfather/dsh-balance 即可安装,完整源码地址为 https://github.com/YYfather/dsh-balance
插件介绍
When you are chatting with DeepSeek or MiMo, the hardest question to answer is how much this session has actually cost. dsh-balance pulls account balance and per-request spend directly into the composer dock, so you can glance at remaining credits and current session burn rate without digging through invoices or doing token-to-dollar math by hand.
Pricing is not a flat token-times-rate shortcut: the plugin matches each request timestamp to a peak or off-peak rate tier, looks up the price for the specific model that call actually used, and de-duplicates usage samples within the same step following the official projection rules. The four reported figures -- session total, active-since-enabled, most recent request, and previous session -- are therefore accurate down to individual requests. Built-in price tables cover DeepSeek V4 Flash, V4 Pro, and Xiaomi MiMo V2.5 with official dual-tier rates; you can also edit model-plus-time-slot prices in the click panel and convert USD listings at a configurable exchange rate. When active spend crosses the alert threshold (default 1 CNY), the status bar turns into an orange badge so you can pause before the bill grows.
Whether you use MiMo for everyday chat, DeepSeek for long-form generation, or run several models side by side for comparison, dsh-balance slots in wherever cost visibility matters. API keys stay on the Host side, and plugin routes reject non-local origins by default, keeping the security boundary straightforward for day-to-day use.
使用场景
- 长对话中随时查看 DeepSeek 账户剩余余额
- 对比高峰与空闲时段同一模型的实际花费差异
- 本次活跃花费超过预设阈值时收到橙色徽标提醒
适合人员
- 频繁调用 DeepSeek API 的开发者
- 同时使用 DeepSeek 与 MiMo 多模型的用户
- 需要控制月度 token 开销的个人或团队