3yi2u34yu32/dsh-balance-peak
3yi2u34yu32★ 0JavaScript最后同步: 2026-08-18
DeepSeek Harness balance + peak-hour indicator: [red/green dot + balance] chip next to the model name, hover shows peak pricing rules. DSH 余额+高峰时段指示插件
README 摘要
dsh-balance-peak DeepSeek Harness 简洁余额 + 高峰时段指示插件。 在输入框模型名(如 DeepSeek-V4-Flash ) 左侧 显示一个简洁小板块: - 圆点颜色 :红色 = 高峰时段(北京时间 09:00-12:00、14:00-18:00,全价 ×1.0);绿色 = 空闲时段(半价 ×0.5)。按 Asia/Shanghai 时区计算,并在时段边界(09:00/12:00/14:00/18:00) 整点精确变色 。 - 余额数字 :来自 DeepSeek 官方接口 GET /user/balance (免费、不消耗额度),每 60 秒自动刷新。 - 悬停提示 :鼠标悬停小板块, 向上弹出 高峰时段规则说明(当前时段 + 高峰/空闲时间表)。 用处 - 一眼看到当前账户余额,不用开网页查; - 一眼看到现在是计费高峰还是空闲(空闲半价),决定要不要现在调模型。 效果展示 特性 - 无 UI 配置,装好即用(余额走 DSH 的 credentials 服务取 DEEPSEEK API KEY ); - 零 token 消耗(不调用模型); - 轻量:页面脚本仅在需要时扫描定位模型名元素; - 不依赖任何外部前端库。 安装 重启后生效。 环境要求 - DEEPSEEK API KEY (Settings → Models,或 /.dsh/.credentials.yaml ) - curl (Windows 10+ 自带) 技术实现 - Host( lib/index.js ):注册 /balance-peak/balance (curl 调官方余额接口)与 /balance-peak/script.js ,并通过 webServer.tapIndex 注入页面脚本。 - 页面脚本( lib/script.js ):定位输入框模型名元素 → 插入小板块 → 轮询余额、边界定时切换圆点、hover 提示。 - 余额获取逻辑参照 MIT 协议的 dsh-whale-balance。 License MIT
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 183,476
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,499
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 18,022