精选
为什么选中它
待人工精选——以下事实来自源码仓库。
它能做什么
DeepSeek API quota blood-bar widget for the DSH web GUI: remaining balance vs month-opening, today/month spend, session cost. Draggable & collapsible.
适合谁
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
风险提示
- 未发现明显风险信号;安装前仍建议查看源码。
DeepSeek API quota blood-bar widget for the DSH web GUI: remaining balance vs month-opening, today/month spend, session cost. Draggable & collapsible.
待人工精选——以下事实来自源码仓库。
DeepSeek API quota blood-bar widget for the DSH web GUI: remaining balance vs month-opening, today/month spend, session cost. Draggable & collapsible.
想用 DSH 获得这项能力的用户;装前建议先看源码和文档。
dsh plugin --profile web add github:jiangli07/dsh-deepseek-quota-bar 作者没有声明支持的平台。
DEEPSEEK_PLATFORM_TOKEN 后为官方精确数据;未配置时自动降级为余额差值估算 - 💬 当前对话费用:按官方价格表(含峰谷定价)对会话日志计价,含安装前历史 - 🖱️ 可拖动:按住卡片任意位置拖动,位置持久化(localStorage) - 🪟 透明背景:不遮挡视野 - 📉 可折叠:一键折叠为只显示血条的迷你卡,再点展开 - 🌗 跟随浅色/深色主题 - ⏱️ 余额每 60s 自动刷新,支持手动刷新 ## 安装 Install sh dsh plugin --profile web add dsh-deepseek-quota-bar # 或从 GitHub 安装: dsh plugin --profile web add github:jiangli07/dsh-deepseek-quota-bar 安装后重启 dsh web,打开页面强刷(Ctrl+Shift+R),右下角出现卡片。 ## 配置 Configuration | 凭证 | 必需 | 说明 | |---|---|---| | DEEPSEEK_API_KEY | ✅ | 与 harness 同一个 Key(设置 → 模型 页面填写) | | DEEPSEEK_PLATFORM_TOKEN | 可选 | platform.deepseek.com 的 userToken:F12 → Console → 执行 JSON.parse(localStorage.getItem('userToken')).value,把值写入 ~/.dsh/.credentials.yaml | 凭证是热读取的:配置后无需重启,下一次刷新即生效。 ## 工作原理 How it works - 余额:GET https://api.deepseek.com/user/balance - 今日/本月(官方):GET https://platform.deepseek.com/api/v0/usage/cost?month=&year=(与平台控制台同源) - 今日/本月(估算兜底):月初/当日期初余额快照差值,状态持久化于 ~/.dsh/storages/deepseek-quota-bar.json - 血条分母:本月 1 号首次观测到的余额快照;月中新装时用「当前余额 + 本月官方消耗」反推 - 对话费用:订阅 session/event 实时计价 + 持久化日志全量回放(含重启前历史) ## 开发 Development sh git clone https://github.com/jiangli07/dsh-deepseek-quota-bar.git cd dsh-deepseek-quota-bar dsh plugin --profile web add . 注意:修改 lib/client.js 后需重启 dsh web(bundle 引导哈希重新生成)再强刷页面。 ## 许可 License MIT。Fork 自 yingjunnan/dsh-deepseek-quota(MIT); 定价引擎参考 dsh-web-billing(MIT)。不看 Star,人工一条条挑的。
把 DSH 的 settings.yaml 做成可视化看板:所有已注册的 settings namespace——包括官方界面从未覆盖的第三方插件配置——都渲染成可编辑表单。项目还早,但方向很对:告别手改 YAML。
给 DSH 的 DIY 轨迹可视化:把 agent 的计划与执行画成图,不用翻原始日志也能看清它在干嘛。项目还早,但补上了「一眼看懂 agent 在做什么」这个真实缺口。
从 Claude Code / Codex 把活派给 DSH:在宿主内拉起带分级预设的 DSH agent 会话,看原生子代理进度,还能借它的多模态桥给纯文本的 DSH 补上视觉和生图。编排型插件,把 DSH 变成其他编码 agent 的后端。