dsh-balance 使用指南
一个适用于deepseek-harness的插件,功能是显示当前账户余额以及当前会话预估的费用消耗 | A plugin for deepseek-harness that displays the current account balance and the estimated cost consumption of the current session.
本文为派生内容(基于 wiki / faq / compatibility_json 自动组装),非 AI 即时创作。
本文由本站基于该插件已收录的字段自动派生(wiki / faq / compatibility_json / readme),非 AI 即时创作。每节末尾标源字段。
快速上手
一个适用于deepseek-harness的插件,功能是显示当前账户余额以及当前会话预估的费用消耗 | A plugin for deepseek-harness that displays the current account balance and the estimated cost consumption of the current session.
— 源: plugins.ai_summary
安装与验证
dsh plugin --profile web add @lemcae/dsh-balance
复制以上命令在 DSH Web Profile 内运行。安装完成后在「插件列表」启用即可。
— 源: plugins.install
关键要点
- 余额查询:调用官方
GET https://api.deepseek.com/user/balance,复用 harness 自身的 - 当前会话消耗估算:从会话日志折叠 provider 上报的 token 用量(未命中输入 / 缓存命中 / 输出),
- 顶栏徽章(会话头部):
余额 ¥x | 会话 ≈¥y,点击刷新;悬停 500ms 显示明细气泡 - 设置页(设置 → DeepSeek 余额):余额明细、自动刷新开关、自动刷新间隔下拉
- 模型工具:
deepseek_balance——余额 + 调用方会话的预估消耗。
— 源: plugin_wiki.readme_zh (fallback readme_raw)
踩坑提醒
安装前请审阅上游仓库;本指南基于已收录字段自动派生,可能滞后于最新版本。如发现与官方文档冲突,请以上游为准。
— 来源:通用规则