dsh-usage-dashboard
by Hann428
DeepSeek Harness 用量页签:展示 DeepSeek 账户余额、官方峰谷时段价格、动态倒计时、平台用量页入口和本地余额告警灯。
DeepSeek Harness Usage tab for DeepSeek account balance, official peak/off-peak pricing, live countdown, platform usage link, and local balance warning light.
安装
dsh plugin --profile web add github:Hann428/dsh-usage-dashboardGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DeepSeek usage and billing panel for DeepSeek Harness Web.
It adds a compact Usage tab to the conversation view. The tab shows the DeepSeek account balance, current official peak/off-peak pricing, the next price-window countdown, and a direct link to the DeepSeek platform usage page.
Quick install from GitHub
dsh plugin --profile web add github:Hann428/dsh-usage-dashboard
Restart dsh web, then open any conversation and select the Usage tab.
Requirements:
- DeepSeek Harness Web with plugin support.
- A configured
DEEPSEEK_API_KEYcredential in Harness Settings -> Models. - Network access to
https://api.deepseek.comand DeepSeek's official pricing docs.
中文简述:这是一个 DeepSeek Harness 用量面板插件,会在会话页添加“用量”标签页,展示账户余额、官方峰谷价格、切换倒计时、平台用量页入口,并提供可本地保存的余额告警灯设置。
Features
- Account balance from DeepSeek's official
GET /user/balanceendpoint. - Current official prices for
deepseek-v4-flashanddeepseek-v4-pro. - Peak/off-peak status based on Beijing time, with orange peak and green off-peak labels.
- Live countdown to the next peak/off-peak switch.
- Compact balance health light on the Usage tab label: green when usable, orange when balance is below an enabled amount or percentage warning threshold, dim neutral when both switches are off.
- Inline warning threshold switches and inputs for amount and percentage. Values are saved in browser localStorage and update the tab light immediately.
- Host-side API-key handling: the browser receives only the query result, never the key.
- Optional
dev_usage_balancetool for agents to inspect balance and pricing data.
Configuration
The plugin uses the standard DEEPSEEK_API_KEY credential reference by default.
- id: dsh-usage-dashboard
name: dsh-usage-dashboard
config:
keyRef: DEEPSEEK_API_KEY
baseURL: https://api.deepseek.com
platformUsageURL: https://platform.deepseek.com/usage
timeoutMs: 10000
healthCurrency: CNY
alertBalance: 50
alertBalancePercent: 20
balancePercentBase: 100
Configure the key in Harness Settings -> Models. The plugin reads the credential through the Harness credentials service.
alertBalance and alertBalancePercent are optional default warning thresholds. The Usage panel also exposes inline amount and percentage fields; those browser-local values override the displayed tab light immediately. Set either threshold to 0 or leave the panel field blank to disable that check. balancePercentBase is the user-defined amount treated as 100% for percentage checks.
Notes
- DeepSeek's platform page login is separate from Harness. The "open usage page" link may require a browser login.
- The pricing table is fetched from DeepSeek's official docs at runtime so price changes are reflected after refresh.
- If the docs page cannot be reached or parsed, the balance still renders and the price row reports the pricing error.
Development
pnpm install
pnpm run typecheck
pnpm run build:client
The built lib/ files are committed so GitHub-source installs can run without a local build step.
原始 README: https://github.com/Hann428/dsh-usage-dashboard/blob/main/README.md ↗
同类插件
查看全部 →
dsh-usage-plugin
DeepSeek Harness 用量与消耗插件(dsh-usage)—— 每次调用的 token 用量/缓存命中统计、峰谷计费、余额查询、CSV/JSON/PNG 导出,可经桌面端一键安装或命令行 dsh plugin add 安装。

dsh-whale-report
🐋 鲸鱼记事本 — 你的 Agent 年度报告:从会话事件日志生成日报/周报/月报/年报,任意区间、只读不改写

dsh-balance-meter
输入框 dock 显示 DeepSeek 账户余额与会话花费,自动拉取官方定价,支持高峰/低谷计价。

dsh-usage-stats
DeepSeek Harness 使用统计插件|Token 总量与构成、7/30 天趋势、年度活跃热力图、模型占比、工作区/任务筛选、CSV/JSON 导出

dsh-balance
DeepSeek 余额实时显示插件: 在 dsh Web UI 输入框 下方、命中率/输入输出 token 统计条所在的同一行 , 实时显示:

dsh-balance-monitor
DeepSeek 账户余额、剩余比例条与今日花费,显示在 dsh 侧边栏底部 · DeepSeek balance, remaining-ratio bar and today's spend in the dsh si