rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:EricWang1358/dsh-connect-dumate
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
将本机登录的 百度搭子(DuMate) 接入 DeepSeek Harness (DSH) 的官方架构插件(适配 DSH 0.2.x)。
peerDependencies 中,不携带任何旧版本 @deepseek-ai/* 覆盖依赖,不禁用宿主自带 llm-pi-ai。auth.json + .cookie-key(Windows / macOS / Linux 全路径支持),在请求时按需换取云端网关 Token;也支持在面板填写手动 Cookie 作为无客户端机器的兜底方案。opencode.json (provider.QianfanPersonalQuota.models) 中的对话模型元数据(支持 qwen4-max、deepseek-v41-flash、glm-53、kimi-k31 等),并原子保存快照至 ~/.dsh/dumate-models.snapshot.json 兜底。PiAiAdapter:在插件内绑定 127.0.0.1:0 临时端口并校验 32 字节随机进程内 Bearer Secret,由 DSH 官方 PiAiAdapter 完整接管真 SSE 流式、Tool Calling(函数/工具调用)、多模态图片输入、401 自动换票重试与断开即中止。deepseek-v41-flash 等 V4.1 后端模型正确映射 off / low / high / max 思考开关,其他模型安全剥离无效 reasoning_effort。2026-11-18 全量双点实测校准全模型倍率,可运行 pnpm measure:rates 按当前账号实时复测)。以下费率通过 scripts/measure-rates.mjs 对 https://dumate-svc.baidu.com/gateway/apis/v1/chat/completions 执行短/长两档输出双点斜率法实测并校准(按实测输出单价从高到低排序):
| 模型 ID | 显示名称 | 实际后端 (x-dumate-gw-realmodel) |
实测输出单价 (pt/k) |
|---|---|---|---|
kimi-k31 |
Kimi K3.1 Pro | kimi-k3.1-pro |
31.26 |
dm-auto-model/text.L1 |
自动·文本 L1 | kimi-k3 |
9.99 |
kimi-k3 |
Kimi K3 | kimi-k3 |
6.23 |
dm-auto-model/text.L2 |
自动·文本 L2 | qwen3.8-max |
3.06 |
ernie-4.5-turbo-vl-32k |
文心 ERNIE-4.5 Turbo VL | deepseek-v4.1-flash-low-latency-1017 |
2.02 |
deepseek-v41-flash |
DeepSeek-V4.1 Flash | deepseek-v4.1-flash-low-latency-1017 |
2.01 |
deepseek-v4-flash-0731 |
DeepSeek-V4-Flash-0731 | deepseek-v4.1-flash-low-latency-1017 |
2.01 |
dm-auto-model/text.L0 |
自动·文本 L0 | deepseek-v4.1-flash-low-latency-1017 |
2.01 |
dm-auto-model/mm.L2 |
自动·多模态 L2 | deepseek-v4.1-flash-low-latency-1017 |
2.01 |
dm-auto-model/mm.L0 |
自动·多模态 L0 | deepseek-v4.1-flash-low-latency-1017 |
1.99 |
dm-auto-model/mm.L1 |
自动·多模态 L1 | deepseek-v4.1-flash-low-latency-1017 |
1.97 |
model-text |
自动路由 (默认) | deepseek-v4.1-flash-low-latency-1017 |
1.97 |
qwen2.5-vl-32b-instruct |
Qwen2.5-VL-32B | deepseek-v4.1-flash-low-latency-1017 |
1.97 |
qwen3.8-max |
Qwen3.8-Max | qwen3.8-max |
1.89 |
doubao-seed-2-0-pro |
豆包 Seed 2.0 Pro | doubao-seed-2-0-pro-260215 |
0.197 |
glm-53 |
GLM-5.3 | glm-5.3 |
0.111 |
glm-53-flash |
GLM-5.3 Flash | glm-5.3-flash |
0.111 |
qwen38-flash |
Qwen3.8-Flash | qwen3.8-flash |
0.104 |
deepseek-v4-pro |
DeepSeek-V4 Pro | deepseek-v4-pro-0813 |
0.102 |
qwen3.5-397b-a17b |
Qwen3.5-397B-A17B | qwen3.8-flash |
0.101 |
qwen3.5-27b |
Qwen3.5-27B | qwen3.5-27b |
0.058 |
qwen3.5-35b-a3b |
Qwen3.5-35B-A3B | n2p5sdmw_qwen35-35b-a3b |
0.042 |
qwen4-max |
Qwen4-Max | — | 暂未标价(网关返回 HTTP 400 required headers invalid) |
注:
glm-5当前未出现在本地配置快照模型列表中,保留历史回退值2.0 pt/k。部分路由/兼容别名当前指向deepseek-v4.1-flash-low-latency-1017或qwen3.8-flash,实际计费可能随百度搭子服务端动态调整,建议定期运行pnpm measure:rates校准。
DSH Agent / Model Picker
│
▼ (PiAiAdapter + openAICompletionsApi)
In-Process Loopback Shim (127.0.0.1:0, per-process Bearer secret)
│ ├─ 1. 读 auth.json (AES-256-GCM) 或手动 Cookie
│ ├─ 2. 换取 / 缓存网关 Bearer Token (401 自动刷新重试)
│ └─ 3. normalizeDumateRequestBody (保留 messages/tools,映射 V4.1 思考档位)
▼
https://dumate-svc.baidu.com/gateway/apis/v1/chat/completions
# 从 npm(发布后)或 GitHub 安装
dsh plugin --profile <your-profile> add github:EricWang1358/dsh-connect-dumate
然后在对应 profile 的 package.json 的 dsh.profile.bundles 数组中添加 "dsh-connect-dumate"。
git clone https://github.com/EricWang1358/dsh-connect-dumate.git
cd dsh-connect-dumate
pnpm pack
然后在 DSH Desktop 的插件管理或桌面端 profile 目录(~/.dsh/profiles/desktop)中使用桌面端内置 pnpm 安装生成的 .tgz 包,并将 "dsh-connect-dumate" 加入 ~/.dsh/profiles/desktop/package.json 的 dsh.profile.bundles。
插件仅以只读方式读取 DuMate 桌面端的登录态与模型元数据,不会修改 DuMate 的任何文件:
%APPDATA%\qianfan-desktop-app~/Library/Application Support/qianfan-desktop-app$XDG_CONFIG_HOME/qianfan-desktop-app(默认 ~/.config/qianfan-desktop-app)DUMATE_USER_DATA_DIR:自定义 DuMate 数据目录DUMATE_OPENCODE_CONFIG:自定义 opencode.json 路径DUMATE_GATEWAY_URL:自定义网关对话地址插件自身的设置与模型快照保存在:
~/.dsh/dsh-connect-dumate.settings.json~/.dsh/dumate-models.snapshot.json要求 Node.js >= 22.0.0:
# 语法检查
npm run check
# 运行离线单元测试(零网络、零本机状态依赖)
npm test
# 可选:触发真机端到端流式测试(需本机已登录 DuMate 桌面端)
DUMATE_LIVE_TEST=1 npm test
0.2.x 插件装配(PiAiAdapter + 进程内 Loopback Shim + 客户端设置卡片插槽)架构参考。auth.json 解密排布、opencode.json 模型清单过滤、实测积分倍率、积分分池口径及 deepseek-v41-flash 思考档位映射依据。本项目为社区开发的独立第三方兼容插件,与百度及 DeepSeek 官方无隶属或背书关系。请遵守相关平台的服务条款与频率限制,自行评估账号使用风险。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。