- Home
- Plugins
- Usage & Billing
- dsh-plugins (dsh-workbuddy-turn-credits)
dsh-plugins (dsh-workbuddy-turn-credits)
yggizz/dsh-plugins/packages/dsh-workbuddy-turn-credits
Shows what each completed turn actually cost, on that reply's action row: WorkBuddy sessions show credits, sessions on the official DeepSeek routes (account login or API key) show an amount in CNY. It measures instead of estimating — the matching balance is read at the start and again at the end of every turn, and the difference is that turn's charge — so each turn costs two read-only balance queries (no credits spent) plus about a second of settle time before the number appears. A switched account, overlapping requests, or an unsettled balance shows an em dash rather than a guessed figure, and a session that uses none of these routes shows no row at all. It reads the DeepSeek balance endpoint and the WorkBuddy credits route; the Host side answers only loopback requests. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
dsh plugin --profile web add github:yggizz/dsh-pluginsThis plugin lives in the packages/dsh-workbuddy-turn-credits subdirectory of the repository.
README
dsh-plugins
DeepSeek Harness(dsh)插件合集。每个目录是一个可独立安装的 bundle,package.json 里声明了 dsh.bundle,因此可以直接 dsh plugin add。
这里只放插件本身。安装会运行插件代码,且插件代码不受工具审批沙箱约束——请先读源码。
插件
| 包 | 做什么 | 分类 |
|---|---|---|
@yggizz/dsh-theme-toggle | 一键深浅色切换:桌面客户端在标题栏,浏览器在左侧栏底部 | 主题与外观 |
@yggizz/dsh-sync-panel | 设置页里一键打包/还原插件与 profile 配置,用于换电脑迁移 | 开发与运行时 |
@yggizz/dsh-artifact-copy | 右键文件,复制相对路径、文本内容,或文件本体(原生剪贴板文件) | UI 增强 |
@yggizz/dsh-sidebar-pins | 记住你收起了哪些左侧栏面板入口,重启照样生效 | UI 增强 |
@yggizz/dsh-workbuddy-turn-credits | 在每轮回复里显示这一轮实际花了多少(credits 或人民币) | 用量与计费 |
插件市场
这个仓库自带一份 format-1 索引,可以直接加进 DSH 的 插件 → 发现 → 索引源:
https://yggizz.github.io/dsh-plugins/index.json
同一份文件在 https://cdn.jsdelivr.net/gh/yggizz/dsh-plugins@main/index.json 也有一份,GitHub Pages 慢的时候换这个。
安装
单装某一个(把 #<commit> 换成你想固定的提交,或直接用 main):
dsh plugin --profile <profile> add git+https://github.com/yggizz/dsh-plugins.git#<commit>&path:/packages/theme-toggle
从本地 checkout 安装:
dsh plugin --profile <profile> add ./packages/theme-toggle
path: 前面的 & 是 dsh 的写法,用来指向 monorepo 里的子目录。
卸载
dsh plugin --profile <profile> remove @yggizz/dsh-theme-toggle
要求
- DSH
0.2.1-rc.1以上、0.3.0以下的 0.2.x 版本(各包的engines.dsh里写明)。 - 无需构建步骤:插件直接是原生 ESM / 浏览器模块,仓库里没有
prepare脚本,从 git 安装不需要allowBuilds授权。
许可
MIT,见 LICENSE。
Related plugins
DeepSeek-Balance-Whale-Widget
meteornox/deepseek-balance-whale-widget
dsh-context
bowenliang123/dsh-context
dsh-cost-meter
han-1413141/dsh-cost-meter
dsh-damage-pulse
wssfk12138/dsh-damage-pulse