安装
npx -y @deepseek-ai/dsh plugin --profile web add github:Hann428/dsh-usage-dashboard此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。
README
维护者编写的文档快照。
dsh-usage-dashboard
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.
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.
- Default-model highlight when the Harness default model is one of the supported DeepSeek models.
- 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.
Install
dsh plugin --profile web add github:Hann428/dsh-usage-dashboard
Restart dsh web, then open a conversation and select the Usage tab.
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
Configure the key in Harness Settings -> Models. The plugin reads the credential through the Harness credentials service.
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.
项目文件与信号
以下项目是目录快照中检测到的公开仓库信号。
仓库信息
- 开发语言
- TypeScript
- 许可证
- BSD-3-Clause
- 最后更新
- 2026年8月18日 14:30
谨慎安装
请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。