D
@lmmzss/dsh-plugin-balance
v0.1.1 · 3 天前发布
DeepSeek Harness web plugin: header balance button (left of the native Session log), dropdown with account balance, live per-session model + token usage and official-rate cost estimates; auto-hides on the settings page
README
dsh-plugin-balance
DeepSeek Harness Web 插件:会话头部余额按钮(位于原生 Session log 按钮左侧),
点击下拉查看 账户余额、当前会话的模型与实时 token 用量、以及按 DeepSeek 官方价目表
计算的费用估算。
功能
¥558.42)- 当前会话(实时):使用的模型、输入·未命中缓存 / 输入·命中缓存 / 缓存写入 / 输出
四项 token 明细、缓存命中率(含进度条)、按官方价目表计算的本会话费用
- 账户余额:总余额、充值余额、赠送余额、账户可用状态、更新时间,附 DeepSeek 平台链接
官方定价页,自动提取峰谷价与生效日期;
未联网时回退内置价目表;客户端打开面板时拉取最新价并本地缓存 12 小时
并随官方调价公告的生效日期自动切换新旧价目
DEEPSEEK_API_KEY(设置 → 模型,或 `~/.dsh/.版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @lmmzss/dsh-plugin-balance
- Repo
- git+https://github.com/lmmzss-jk/dsh-plugin-balance.git
- Engines
{"node":">=18"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-ui-layout","@deepseek-ai/dsh-client-ui-conversation"]}}