chenpengye/dsh-balance-whale

chenpengye★ 0TypeScript最后同步: 2026-08-21

在 GitHub 打开

🐳 Floating DeepSeek API balance widget for DeepSeek Harness (dsh) with a whale-girl icon. Key stays on the Host; browser gets sanitized balance only.

README 摘要

dsh-balance-whale 🐳 A floating DeepSeek API balance widget for DeepSeek Harness (dsh). A cute whale-girl (鲸鱼娘) icon floats at the bottom-right corner of the dsh web GUI, showing your remaining DeepSeek API balance — click to expand details (total / topped-up / granted) with a manual refresh. 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 API 剩余余额,点击展开详情(总余额 / 充值 / 赠送),支持手动刷新。 安全设计 :API key 只在服务端(Host 进程)从 dsh 凭据库读取, 永不进入浏览器 ;浏览器只轮询一个 同源、仅限本机访问的路由,拿到的是脱敏后的余额数据。 Features / 功能 - 🐳 鲸鱼娘悬浮按钮(手绘 SVG,无外部资源),实时显示余额 + 状态点(绿=有余额 / 橙=无余额) - 📋 点击展开卡片:可用状态、各币种总余额 / 充值 / 赠送明细、更新时间、刷新按钮 - ⏱ 每 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, if the HMR watcher is active, delete-and-re…

在 GitHub 查看完整 README →
工具/开发api-balancebalancedeepseekdeepseek-harnessdshdsh-pluginpluginwhale

分类