sandbase-harness
sandbaseai
Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.
HaoyueQin/dsh-deepseek-monitor
DeepSeek Harness web plugin: DeepSeek balance & platform usage monitoring inside the official Settings-Models-DeepSeek card, plus a live balance chip left of the model name in the composer tool row. Ported from DeepSeekMonitorWindows.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:HaoyueQin/dsh-deepseek-monitor
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
DeepSeek Harness(dsh)Web 插件:把 DeepSeekMonitorWindows 的余额与用量监控能力移植进 dsh —— 集成到「设置 → 模型 → DeepSeek」供应商卡片内,并在输入框工具行(模型名称左侧)显示实时余额。
截图:设置 → 模型 → DeepSeek 卡片展开的「账户明细」面板(余额卡 / 模型用量行 / 每日堆叠柱状图),以及名称旁的余额 chip 与「账户明细」按钮。
GET /user/balance API,复用 dsh 已配置的密钥;今日消耗 / 本月费用 mini 格(按账户币种渲染,无余额快照时回退 ¥);低余额警示conversation.input.right 槽位,渲染在模型名称左侧、发送键之前,与模型选择等控件同排版(28px 行高 / 13px 字号 / medium 字重)deepseek-official)时显示,与模型名称无关(第三方供应商即使提供 deepseek-* 命名的模型也不显示);新会话首屏(无会话)自动隐藏state-success-primary)、≤ 0 显示红色(state-error-primary)deepseek_monitordsh plugin --profile <name> add dsh-deepseek-monitor@latest
已在 npm 发布:dsh-deepseek-monitor。也可以从 GitHub Releases 下载
dsh-deepseek-monitor-<version>.tgz,通过本地 profile / 注入器方式装载。
dsh.plugin.json 的 engines.dsh 与此声明一致,peer 范围为 ^0.1.5-alpha.1 || ^0.1.6-alpha.1)。按 node-semver 规则,每个分支覆盖其 alpha.1 起的 pre-release 与后续正式版;地板值刻意保持在 alpha.1(alpha.x 内核同样受支持,收窄它没有收益)。构建基线固定在 0.1.6-alpha.2(devDependencies),即按当前受支持内核的最新 pre-release 编译。deepseek-flash 合并),把已退役的 id 排除在行外(其用量仍计入总额与图表),未识别的 id 则原样成行 —— 因此升级 dsh 不会改写你看到的历史账单口径。pnpm install
pnpm typecheck # tsc --noEmit
pnpm test # vitest run
pnpm build # tsc declarations + tsdown (host ESM + 双通道 client bundle)
pnpm watch # tsdown --watch
GUI 取证脚本(无头浏览器验证面板挂载与样式):node scripts/probe-gui.mjs
本插件的余额 / 平台用量后端与面板结构,移植自作者自己的 HaoyueQin/DeepSeekMonitorWindows(Windows 桌面版);移植所依据的实现沿其自述谱系继续向上追溯:
| 项目 | 关系 | 许可证 |
|---|---|---|
| HaoyueQin/DeepSeekMonitorWindows | 直接移植来源:do_fetch_balance / do_fetch_usage / token 口径与仪表盘结构的 TypeScript 移植底本 |
MIT |
| Joyi-code/DeepSeekMonitorWindows | 上述桌面版的直接上游(Windows Tauri 2 重构),移植逻辑的最终出处 | MIT |
| JayHome137/DeepSeekMonitor | 谱系起点(macOS 菜单栏 + WidgetKit 版),开创了「DeepSeek 余额与用量监控」这一形态 | MIT |
| lucide | SVG 图标库 | ISC |
本项目基于 MIT 发布,上述 MIT 项目许可声明随分发一并保留。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: balance-monitor、monitor、usage-monitoring。