chenpengye/dsh-balance-local
chenpengye★ 0TypeScript最后同步: 2026-08-21
DeepSeek API balance plugin for DeepSeek Harness (dsh): Settings-page panel + composer badge. Key stays on the Host; browser gets sanitized balance only.
README 摘要
dsh-balance-local A DeepSeek API balance plugin for DeepSeek Harness (dsh): shows your remaining DeepSeek API balance in the Settings page and as an ambient readout below the conversation composer, auto-refreshing every 60 seconds. Security first : the API key is resolved from the dsh credential store on the Host side only and never reaches the browser. The browser just polls a same-origin, loopback-only route that returns an aggregated, sanitized balance payload. 为 DeepSeek Harness(dsh)打造的 余额查询插件 : 在设置页显示「DeepSeek 余额」面板(总余额 / 充值 / 赠送),并在会话输入框下方显示余额徽章,每 60 秒自动刷新。 安全设计 :API key 只在服务端(Host 进程)从 dsh 凭据库读取, 永不进入浏览器 ;浏览器只轮询一个 同源、仅限本机访问的路由,拿到的是脱敏后的余额数据。 Features / 功能 - ⚙️ 设置页「DeepSeek 余额」面板:总余额 / 充值余额 / 赠送余额,手动刷新按钮 - 📌 会话输入框下方余额徽章(绿点=有余额 / 橙点=无余额 / 灰点=加载中或错误) - ⏱ 每 60 秒自动刷新(Host 侧另有 30s 缓存) - 🔒 key 不出服务端、路由仅本机回环可访问、错误分类返回(不透传上游响应体) Install / 安装 The plugin is a cordis bundle. It is not published to npm — install it from this repo. Then register it into your dsh profile (e.g. web ): Add the patch entry to /.dsh/profiles/web/cordis.patch.yml : Restart dsh web (or trigger the HMR watcher) and hard-refresh the browser page ( Cmd+Shift+R ). 中文:克隆本仓库 → pnpm install && pnpm build → 在 /.dsh/pro…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784