bobcat848/dsh-calculator
bobcat848★ 2JavaScript最后同步: 2026-08-14
Calculate the real-time cost of DeepSeek API calls made by DeepSeek Harness.
README 摘要
dsh-calculator A DeepSeek Harness (DSH) web plugin that shows your DeepSeek API spend and account balance in the right-hand aside panel of the DSH web GUI. - 当前会话费用 — the cost of the session you are looking at (per model) - 当天全部会话累计 — today's total spend across all sessions (per model, in your local timezone ; resets at local midnight) - 账户余额 — live balance from the DeepSeek API ( GET /user/balance ) - 第三方模型不计费 — only deepseek-official routes are billed; any other provider/model is listed as unbilled - 峰谷计价 — after 2026-08-17 the plugin automatically prices events by the Beijing peak/off-peak schedule (peak 09:00–12:00 & 14:00–18:00, off-peak = half price); before that date it uses the current flat rates - 中英文界面 — the panel follows your browser language ( zh / en ) 安装 DSH is a Cordis application. The plugin has a host half (event accounting + balance fetching) and a browser half (aside panel). Install it into the web profile: 一条命令在线安装(推荐,无需克隆仓库) 直接在你的机器上执行(脚本会从 GitHub 下载插件文件并完成安装): 本地克隆安装 或者克隆仓库后运行脚本(安装脚本会自动识别本地模式,从仓库内复制文件): 两种方式等价:都会把插件装进 /.dsh/profiles/node modules/dsh-calculator 并在 /.dsh/profiles/web/cordis.patch.yml 追加 loader 行(幂等:重复执行安全, 已有行不会重复添加)。 手动安装 重启生效 Plugins are disco…
在 GitHub 查看完整 README →