dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
侧边栏底部「设置」旁常驻显示 DeepSeek API 余额——读取 DSH 已保存的密钥,悬停查看赠送/充值明细,余额低于 ¥2 变红告警,每 60 秒自动刷新或点击刷新。
English | 中文
A tiny DeepSeek Harness plugin that shows your DeepSeek API balance in the sidebar footer, right beside Settings.
sidebar.footer.action
seat (sidebar foot, next to the Settings row), auto-adapting to the collapsed
56px rail (dot only) and staying inside the sidebar.DEEPSEEK_API_KEY already stored by DSH in
~/.dsh/.credentials.yaml, queries the official
api.deepseek.com/user/balance endpoint, and caches the result for 60 s.⚠️ Always install and update through the plugin manager (the Plugins panel, or
dsh plugin add <path-or-package>). Do not hand-edit your profile'spackage.jsonto add alink:dependency: when a plugin appears in bothdsh.profile.bundlesanddependencies, the plugin manager refuses to update it withambiguous-install(DSH 0.20+). If you already did that, delete the hand-written entry and install once more — the manager writes the correct dependency itself.
dsh plugin --profile web add @etony668/dsh-balance
git clone https://github.com/etony668/dsh-balance.git
cd dsh-balance
./install.sh
Then refresh the DSH page (or restart DSH). The balance badge appears in the sidebar footer, beside Settings.
~/.dsh/.credentials.yaml (set it in
Settings → Models if you have not). Without it the badge shows
“Balance unavailable — API key not found”.index.js package root entry (loader resolves <pkg>/index.js)
lib/index.js host half: reads the credential, queries the balance API, caches
lib/client.js browser half: registers the conversation.composer.dock entry
cordis.patch.yml bundle patch used by `dsh plugin add`
install.sh one-click install (macOS/Linux bash)
reinstall.sh reinstall into the current runtime + profile fallback link