ywleeo/dsh-balance
ywleeo★ 0JavaScript最后同步: 2026-08-19
在 dsh Web 对话底部(token 统计前)显示 DeepSeek 账户余额的精简插件
README 摘要
dsh-balance 在 dsh Web 对话底部显示 DeepSeek 账户余额的精简插件 —— 一行小字,排在 会话数据(token 统计)前面 。 截图 余额与 token 统计同一行显示( ¥192.04 ⟳ 在最前,无多余文字): 特性 - ✅ 挂在 conversation.composer.dock ( order: -1 ),显示在 token 统计行( order 0 )前面 - ✅ 与 StatsLine 同视觉族:12px / label-tertiary / 居中 - ✅ 刷新:挂载时 + 每 5 分钟轮询 + 点击 ⟳ 手动刷新 - ✅ API key 不出 host(客户端只 fetch 同源 JSON 路由) - ✅ 不写会话日志、不注册投影 —— 无会话恢复污染风险 - ✅ 零构建、纯 ESM,host + 极简客户端模块 安装 在 /.dsh/profiles/web/cordis.patch.yml 追加: 重启 dsh web + 刷新页面。 原理 - host ( index.js ): /plugins/dsh-balance/balance 路由 → 凭据服务解析 DEEPSEEK API KEY (与 llm-deepseek 同一 key 缝)→ GET https://api.deepseek.com/user/balance → JSON。 - client ( client.js ):dock 组件 fetch 同源路由,挂载/每 5 分钟/点击刷新。 维护 生效方式: index.js 改动 → 重启 dsh web; client.js 改动 → 刷新页面。 License MIT
在 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