2861292267/DSH-Official-WorkBuddy-Credit-Proxy
DSH 官方版 · WorkBuddy 积分反代 —— 把本机 WorkBuddy 账号合并为自动故障转移的模型池,接入 DeepSeek Harness 官方版(含 DSH 内核 0.1.7 兼容修复、启动自动同步账号、卡片内 OAuth 扫码添加)
Project Overview项目介绍
RotaKit is a DSH-Desktop-only plugin named DSH-Official-WorkBuddy-Credit-Proxy, forked from XDTrees/dsh-workbuddy-xdpool (MIT, upstream 1.6.1) and patched specifically for the 0.1.7-rc.2 kernel of the official DeepSeek Harness desktop build. The repository root ships a real DSH bundle: package.json declares dsh.bundle and is installed by cloning into ~/.dsh/profiles/<profile>/node_modules/dsh-rotakit, then listing it under dsh.profile.bundles so dsh plugin add recognises it, with an optional pnpm add qrcode step that is loaded dynamically so a missing dep only disables the QR fallback.
In daily use the plugin merges locally logged-in WorkBuddy accounts into one automatic failover model pool that drives GLM, DeepSeek and Kimi calls inside DSH Desktop, surfacing remaining credits plus self-bookkept daily / 7-day / monthly consumption bars in the settings card. New capabilities include an in-card QR-link login panel that auto-opens the system browser via setWindowOpenHandler (then returns {action:"deny"} so window.open yields null even on success), startup auto-scan, an incremental mirror of ~/.wb-switch/accounts.json triggered only on size/mtime change, and broadened account rotation that now treats upstream 5xx as transient instead of breaking after one account.
The plugin is aimed at individual users running multiple WorkBuddy accounts against the official DSH desktop build and wanting unified failover without manual exports. Prerequisites are DSH Desktop 0.1.7-rc.2, Node 24 and pnpm; patches are idempotent Python scripts resolving paths via Path.home() / ".dsh" / "profiles" / "desktop" with DSH_PLUGIN_LIB override, internal routes (/plugins/dsh-rotakit/status, /oauth/start, /oauth/poll) hang off the fixed unauthenticated host port 19387, and credentials are stored as plaintext *.info files so the repo must never be committed with secrets. The project is dual-MIT, with lib/ and package.json inheriting XDTrees' copyright and new patches/, tools/ and README released under MIT.
RotaKit 是面向 DeepSeek Harness 官方版(DSH Desktop)的 WorkBuddy 积分池插件,本仓为 XDTrees 原版(1.6.1,针对内核 0.1.5)的改编版,针对内核 0.1.7-rc.2 做了 7 处兼容修复并新增 3 项能力。安装方式为把仓库根目录克隆到 DSH profile 的 node_modules 下,再通过 dsh.plugin.bundles 注册为 dsh-rotakit 包,由 dsh plugin add 或手动加入 bundles 即可加载。
典型使用流程是把本机已登录的多个 WorkBuddy 凭据合并为一条自动故障转移的模型池,接入 DSH Desktop 后用其积分驱动 GLM、DeepSeek、Kimi 等模型调用;插件在卡片内新增扫码添加账号面板,自动用系统浏览器打开登录链接,启动时还能从 workbuddy-switch 账号库增量同步,并按 401/403/402/429/5xx 自动轮换账号。适用人群为希望把多账号 WorkBuddy 积分聚合成统一后备、且使用 DSH 官方版桌面客户端的个人用户。
依赖方面要求 DSH Desktop 内核 0.1.7-rc.2、Node 24、pnpm,以及二维码兜底的可选 qrcode 包(纯 JS 无原生编译);补丁脚本按 Path.home 推导路径并支持 DSH_PLUGIN_LIB 环境变量覆盖,凭据以明文 *.info 文件存储,请勿提交,DSH 主程序为单实例,热更需先杀进程再重启;本仓代码以 MIT 双层许可发布,原插件版权归 XDTrees 所有。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:DSH-Official-WorkBuddy-Credit-Proxy(2861292267/DSH-Official-WorkBuddy-Credit-Proxy)
仓库:https://github.com/2861292267/DSH-Official-WorkBuddy-Credit-Proxy
本站详情页:https://www.yhbd.top/plugins/2861292267-dsh-official-workbuddy-credit-proxy/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-10-03 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
- Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:2861292267/DSH-Official-WorkBuddy-Credit-Proxy
把 2861292267/DSH-Official-WorkBuddy-Credit-Proxy 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
RotaKit · DSH 官方版 WorkBuddy 积分池
把本机登录过的 WorkBuddy / CodeBuddy 账号合并成一个自动故障转移的 DeepSeek Harness 模型池,附带一整套积分自动化。
你在桌面端登过几个号,池里就有几个号 —— 不用手动录入,不用一个个切换。哪个号限流了、积分用完了、令牌失效了,请求自动落到下一个能用的号上。
来源与署名。 RotaKit 是独立维护的改编版,基于
XDTrees/dsh-workbuddy-xdpool(MIT,作者 XDTrees)。账号凭据解密移植自dingminhua/dsh-connect-workbuddy,shim 的加固与错误映射参照corrinehu/dsh-workbuddy-connect,两者均为 MIT。原版文档见UPSTREAM-README.md。
功能总览
一、多账号池
| 能力 | 说明 |
|---|---|
| 自动发现账号 | 读本机桌面端登录快照(国内 / 国际两套),一个文件一个号,无需手动导入 |
| 按权重选号 | 空闲越久的账号权重越高;取权重最高的前 5 个再洗牌,避免长尾账号被反复抽中 |
| 会话粘性 | 同一对话固定用同一个账号,缓存不失效;账号不可用时自动换绑并固定新号 |
| 在途租约 | 同一账号并发超过 2 个请求时让路,避免把限流风险堆在一个号上 |
| 冷却分级 | 429(限流)与 5xx(网关故障)分开计数 —— 网关抖动不再污染限流历史 |
| 按模型冷却 | 某个模型被限流只影响该模型,同账号其他模型照常可用 |
| 凭据熔断 | 连续 3 次被拒的账号移出池 30 分钟,并标「需重新登录」,不再无声消失 |
| 额度门槛 | 余额低于可服务门槛(默认 50)的账号自动跳过 —— 余额恢复后自动回到池中,无需任何操作 |
| 积分保留 | 可给单账号设保留线,低于该线不再派活 |
| 手动停用 | 可停用指定账号,与自动跳过分开管理 |
| 选号预算 | 单次请求最多尝试 8 个不同账号;同一请求内不会重复选到同一账号 |
二、模型目录
- 从上游实时拉取,带积分倍率、免费 / 夜间折扣标签、图片能力、思考档位、上下文窗口
- 标记「无可用账号」的模型:某模型没人能服务时一眼可见
- 标记「成本未知」:上游未公布倍率时不再默默留空
- 目录刷新带重试:网络抖动不再把正常列表打回兜底
- 实测输出上限:可发现网关对
max_tokens的静默钳制
三、积分自动化
每项任务可单独配置执行时刻,默认:
| 任务 | 默认时刻 | 内容 |
|---|---|---|
| 每日签到 | 09:00 | 领取当日签到积分 |
| 活跃上报 | 10:00 | 上报活跃状态 |
| 任务奖励 | 11:00 | 报名并领取任务奖励 |
| 连登奖励 | 12:00 | 连登档位兑换与抽奖 |
| 猫猫旅行 | 09:00 / 21:00 | 出发与领取 |
细节处理:
- 漏跑补跑:某个时刻在应用关闭期间过去了,启动后立即补跑,不用等到明天
- 签到结果分开呈现:
今日已签 21/21 —— 本次新领 16 个。「已签到」与「本次领到积分」是两件事,混在一起会让人误以为有账号失败 - 每账号签到时间:区分「本次领到」与「发现今天已领过」两个时刻 —— 上游不提供签到时间,所以只报插件能作证的时刻
- 收益账本落盘:跨天自动清零,重启不丢
四、请求可观测
| 能力 | 说明 |
|---|---|
| 请求记录 | 时间、模型、账号、结果、总耗时、排队、首字、token 数、轮换次数 |
| 排队时长统计 | 按模型给出 p50 / p95 / 平均排队时长 —— 用数据选模型,而不是凭感觉 |
| 输出速度 | 每次请求的 tok/s 与 p50 / 最小 / 最大,按模型聚合 |
| 消耗账本 | 今日 / 近 7 天 / 本月消耗(由插件累积观测;上游无时间窗接口) |
| 请求形状诊断 | 上游 400 时记录请求形状(参数名、消息条数、工具数、字符数) |
五、界面
- 双区域标签:国内版 / 国际版各自独立 —— 账号、积分、模型目录、未保存草稿全部隔离,两边同时生效
- 可折叠列表:池中账号 / 模型 / 请求记录三块默认收起,卡片不占地方
- 响应式布局:窄窗口(≤640px)自动堆叠
- 主题三态:跟随系统 / 浅色 / 深色,写在宿主声明主题变量的那一层,切换立即生效
- 状态标记:冷却中、需重新登录、额度不足、已保留 —— 每种都有自己的原因与对策
- 一键清除:只要有任何可清除状态(冷却 / 熔断 / 按模型缓存)按钮就出现,点了真的清干净
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Flyvhidbwo/dsh-vision-proxy
WNJXYK/dsh-codex-oauth
rinDBeans/dsh-miraculous-standard
xiaoxianyu-office/dsh-router-flash
v587d/dsh-opencode-go-usage
sheep-programmer/dsh-web-search-free