rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:gutddts/dsh-token-budget-pill
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
在 DeepSeek Harness 对话输入框下方显示 DeepSeek 账户剩余余额 和 本会话 token 费用估算,让你随时知道「还剩多少钱、这轮对话花了多少」。
纯 DSH 客户端插件:不改 DSH 源码、不启独立服务、不写会话、不发模型请求。


输入框下方的统计条会多出一个 ¥ 胶囊:
[¥] ¥56.68 · 本会话 ¥6.43
明细面板包含:
# dsh web(Web profile)
dsh plugin --profile web add github:gutddts/dsh-token-budget-pill && dsh web
# DSH Desktop(桌面版 profile)
dsh plugin --profile desktop add github:gutddts/dsh-token-budget-pill
如果安装器没有可用的 Git,也可以直接用 tarball:
dsh plugin --profile web add https://github.com/gutddts/dsh-token-budget-pill/archive/refs/heads/main.tar.gz
打开 设置 → 插件 → 安装插件,输入:
github:gutddts/dsh-token-budget-pill
安装后刷新对话页(或重启 DSH)即可。
插件通过
conversation.composer.dock插槽挂在输入框统计条里,所以需要进入一个已有对话的会话才看得到;新会话欢迎页的输入框是 hero 模式,不渲染这个 dock。
[¥] 余额 · 本会话费用。余额会在页面可见时每 90 秒自动刷新一次;每轮对话结束后约 4 秒也会自动刷新。刷新失败时保留上一次成功的数字,并标注「显示上次结果」。
| 数据 | 来源 |
|---|---|
| 账户余额 | DSH 账号 Remote ctx.remote.account.getBalance() |
| Token 用量 | Session 投影 tokenUsage |
| 轮次数 | Session 投影 sessionStats |
| 当前模型 | Session 投影 modelSelection |
| 价格 | 插件内置的 DeepSeek 官方价目表 |
<style> 标签(插件样式)。插件按 DeepSeek 官方价目表估算,自动识别 deepseek-flash / deepseek-v4-pro,并区分高峰 / 空闲时段。
| 模型 | 缓存命中输入(空闲 / 高峰) | 缓存未命中输入(空闲 / 高峰) | 输出(空闲 / 高峰) |
|---|---|---|---|
deepseek-flash |
¥0.02 / ¥0.04 | ¥1 / ¥2 | ¥4 / ¥8 |
deepseek-v4-pro |
¥0.15 / ¥0.30 | ¥4.5 / ¥9 | ¥13.5 / ¥27 |
高峰时段为北京时间周一至周五 09:00–12:00、14:00–18:00(周末与法定节假日为空闲)。插件按当前时段给整段会话计价,节假日未单独识别,因此「本会话估算」仅作参照;实际扣费以 DeepSeek 平台账单为准。
0.2.x,并包含 conversation.composer.dock 插槽与账号 Remote。0.2.1-rc.2 上实测:deepseek-flash / deepseek-v4-pro 峰谷价估算正常git clone https://github.com/gutddts/dsh-token-budget-pill.git
cd dsh-token-budget-pill
dsh plugin --profile web add link:$PWD
dsh web
lib/index.js Host 半侧(空实现,让 Loader 暴露 client bundle)
lib/client.js 浏览器 bundle:余额 store、费用估算、胶囊与明细面板
cordis.patch.yml bundle patch
icon.svg 插件图标
docs/screenshots 截图
npm version patch
npm publish
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。