bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
DeepSeek Harness 用量页签:展示 DeepSeek 账户余额、官方峰谷时段价格、动态倒计时、平台用量页入口和本地余额告警灯。
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.
In the desktop app's Add plugin dialog, enter the full repository URL:
https://github.com/Hann428/dsh-hann-usage-dashboard
The following command installs into the Web profile:
dsh plugin --profile web add github:Hann428/dsh-hann-usage-dashboard
Restart dsh web, then open any conversation and select the Usage tab.
For the desktop app, restart the app after installation. This repository is distributed through GitHub; do not use a bare npm package name as the install source.
Version 0.0.3 renames the repository, package, client module, and Usage tab registration from dsh-usage-dashboard to dsh-hann-usage-dashboard. Uninstall the old plugin in the same Harness profile before installing this version, then restart Harness. Keeping both versions enabled creates duplicate Usage tabs and balance tools.
On the same browser origin, saved warning thresholds are copied from the old storage key when the new key is absent. Moving from the Web app to the desktop app may use a different origin, so enter those settings again if needed. API keys remain in Harness credentials and are not copied by this migration.
Requirements:
DEEPSEEK_API_KEY credential in Harness Settings -> Models.https://api.deepseek.com and DeepSeek's official pricing docs.中文简述:这是一个 DeepSeek Harness 用量面板插件,会在会话页添加“用量”标签页,展示账户余额、官方峰谷价格、切换倒计时、平台用量页入口,并提供可本地保存的余额告警灯设置。
GET /user/balance endpoint.deepseek-flash (DeepSeek-V4.1-Flash) and deepseek-v4-pro.dev_usage_balance tool for agents to inspect balance and pricing data.The plugin uses the standard DEEPSEEK_API_KEY credential reference by default.
- id: dsh-hann-usage-dashboard
name: dsh-hann-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.
HTTP_401 means DeepSeek rejected the key used for the balance request. Update DEEPSEEK_API_KEY in Harness Settings -> Models, then refresh Usage. An inherited environment key takes priority over the saved key; update that environment value and restart Harness if the source is env. Keys for third-party gateways do not authenticate against DeepSeek's official balance endpoint.deepseek-flash as the recommended Flash model name. The old deepseek-v4-flash and deepseek-v4-flash-vision-exp names are routed to DeepSeek-V4.1-Flash during the documented transition window.pnpm install
pnpm run typecheck
pnpm run build:client
node scripts/check-rename.mjs
node scripts/check-authentication.mjs
Check host imports against an installed desktop profile, without legacy dependency aliases:
node scripts/check-installed-import.mjs "$env:USERPROFILE\.dsh\profiles\desktop"
The built lib/ files are committed so GitHub-source installs can run without a local build step.