DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-router-traework

Router Traework

DSH plugin: TRAE SOLO supplier for dsh-router. Provides the traework supplier (free SOLO chat channel, ported from traework2api) to dsh-router through the router.suppliers cordis service.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-router-traework@0.3.23
READMECompatibilityVersions

Compatibility and provenance

Router Traework is published as dsh-router-traework and currently resolves to version 0.3.23. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
10/28/2026

Versions

0.3.23stable
10/28/2026
0.3.22stable
10/16/2026
0.3.21stable
10/15/2026
Show 11 more versionsCollapse versions
0.3.20stable
10/10/2026
0.3.19stable
10/3/2026
0.3.18stable
9/16/2026
0.3.13stable
9/15/2026
0.3.11stable
9/10/2026
0.3.10stable
9/4/2026
0.3.8stable
9/4/2026
0.3.1stable
9/2/2026
0.3.0stable
8/31/2026
0.2.0stable
8/29/2026
0.1.0stable
8/28/2026

Related plugins

Loading related plugins…

Latest
0.3.23
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
298.2 kB
Files
25
Surface
any
License
MIT
Source
npm
GitHub
★ 7
Weekly downloads
0
Last push
10/28/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundleExperimental machine translation of expanded reasoningWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinOur Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — Install this plugin in dsh to use cutting-edge models including DeepSeek V4.1 Flash and Kimi K3, with no login, registration, or API Key required. The desktop version also offers an EAC co-payment channel; starting with 2.0, it supports ten account channels: LobsterAI, Qoder, TRAE, Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with a compact price glance card above the sidebar's Settings row

README

dsh-router-traework

dsh-router 的 TRAE SOLO 供应商插件

快速安装 · 签到判定 · dsh-router 核心

为 dsh-router 提供 traework 供应商(免费 SOLO 聊天通道)。 单独装它没用——它只是向核心注册一个供应商,面板、账号池、组合回退都在核心里。

本项目是 traework2api 的 DSH 插件版, 上游协议与签到语义参考 wild-work。

快速安装

需要 DSH 0.2.0 及以上(核心已单面 0.2.0,0.1.x 宿主不再支持)。先装核心,再装本插件,然后重启 dsh web:

dsh plugin --profile web add dsh-router-core
dsh plugin --profile web add dsh-router-traework

dsh plugin add 会在 profile 里 pnpm add,并自动把声明了 dsh.bundle.patch 的包加入 dsh.profile.bundles(本插件即声明了,即 cordis.patch.yml)。

重启后本插件以 cordis service router.suppliers 向 dsh-router 注册 traework 供应商,面板「供应商」出现 traework 卡片,加账号即用。

本地开发版:不用 npm,直接 dependencies 加 "dsh-router-traework": "link:/path/to/dsh-router-traework" 指向本地仓库。

与核心的分工

本插件只管对单个账号调通上游:SOLO 协议、token 刷新、SSE 转换、签到、积分。

策略全在核心(AccountPool):选号、冷却、禁用、连续错误累计、遍历回退、 响应写入。所以:

  • chatOnce(uid, req) 一次只服务一个账号,不遍历账号、不维护冷却表、不写响应
  • 失败时返回语义状态(rate_limit / quota / session_dead / unavailable / transport / unknown),由核心决定冷却多久、是否禁用、要不要换号
  • status() 只报「现在状态」(凭证 + 积分),冷却/禁用由核心叠加后给面板
  • 积分只报值,不落盘(持久化归核心 supplier-config.json):启动时用核心 缓存预热,拿不到时报 -1(不是 0),核心保留上次持久化的值

本插件不做自动调度:不挂后台定时器。签到是核心在用户点「签到」时逐个 链接触发的(POST /suppliers/:id/checkin → checkinNow(uid))。曾移植自 traework2api 的每日自动签到 Scheduler 已删除(核心没有定时入口,放着是死代码)。

token 刷新是共享前置:所有打上游的路(chatOnce / 获取模型 / 拉积分 / 签到)都先过一个 freshAuth,临到期或已过期就刷一次并落盘。闲置账号的 accessToken 早就过期了(实测本机三个号全是),哪条路少这一步,那条路就会 静默失效——「获取模型点了没反应」「积分一直是未知」「一直没用过的号签到必 失败」都是这么来的。同一账号的并发刷新会去重:refreshToken 是轮换的, 两个并发刷新互相覆盖可能写坏轮换链。

完整契约见 dsh-router 的 docs/suppliers.md。

获取模型

模型名录取自上游两处,合并后是纯增量(不会从用户手里拿走今天还能用的模型):

  1. 远端名录(solo.trae.cn/api/remote/v1/models,按 function 分组)—— 厂商给 Trae IDE 模型选择器看的那一份,作为骨架与展示名/窗口来源
  2. 详细表(get_detail_param,逐 function 查询)——给出每个 config_name 归属于哪个 function、以及 max_tokens

要点:

  • 归属 function 必须回放:上游把可调用名录按 function 拆开,一个模型只有用 列出它的那个 function 才调得动。发错时上游 HTTP 200 但流内 code=4001 (「参数无效」),看起来像请求写错了。2026-10-10 实测:只发 solo_work_lite 时 glm-5.1 / qwen-3.5 / kimi-k2.5 / minimax-m2.7 / qwen-3.6-plus / glm-5v-turbo / Doubao-Seed-Code 全部 4001,换成各自归属的 function 后 全部正常应答。插件把「模型 → function」记下来,chat 时回放(见 DirectoryFunctions 的顺序即归属优先级)
  • context_length 必须下标,单位是 K(核心 comboContextWindow 会换算回 token)。以前 fetchModels 恒填 contextWindow: 0,于是核心那条 if (m.contextWindow > 0) 永不成立 → 窗口永远拿不到 → 自动压缩一直跳过。 现在 32+ 个模型都带上真实窗口(context_window_tokens,见下条)
  • 窗口取 dev / max 的更宽者(issue #11)。上游这两档都实际在用:实测 chat_v3 的 mimo-v2.6-pro 报 {dev:200000, max:981504},step-5-preview 报 {dev:116000, max:1000000}。只读 dev 会把窗口低估,而核心按组合各腿的 最小窗口判可用性 → 长会话被提前判超限。两档都可能缺 (solo_work_lite 的 DeepSeek-V4-Pro 只有 dev;solo_coder 的 DeepSeek-V4-Pro 是 {dev:200000, max:200000}),所以各自先过 positiveNumber 再取 max。同一模型被多个 function 列出时,function 归属 仍是先命中者(顺序即优先级,不能改),只有窗口取跨 function 的最宽者
  • 远端名录拿不到时,退回主 function 一家的表(改动前的历史行为),不是把 详细表并集原样端出去——并集里有一半是其它 function 独有的内部件 (title_generation / fast_apply / *‑auto 变体…)

模型覆盖与已知边界

  • 签到判定(见下)与 chat 是两套上游身份,模型表只服务 chat
  • 详细表里不在远端名录、也不在主 function 表里的行 不发布:实测 computer_use_subagent / file_search_agent 直接回 code=3003(不是对话模型)。 但 explore_sub_agent_v2 / summary / glm-5-turbo / aquila / sagitta / seed-code-pro-0430 实测都能正常出内容,故一并保留——宁多留一个,不误杀可用模型
  • 天花板与升级路径:若将来要严格对齐 IDE 名录(只发远端那 32 个),删掉 fetchModels 里「并上主 function 那一家」的那一段即可,一行级改动
  • 远端名录的窗口在同一模型多组间可能不一致,取最大值,避免面板窗口随上游 分组顺序变化

签到判定

上游 checkin_credits/* 一律返回 HTTP 200,成败只藏在 body 的 code 里:

code含义处理
0成功ok(注意:已签到后重复调用也返回 0,是幂等、不加积分)
9004设备身份缺失/不被接受(文案是「订单参数不正确」)device_missing——不是限流,重试无用;提示重新登录刷新设备身份
9074「当前参与用户太多」账号级稳定拒绝,不是抖动——只重试一次(等 1s)就判失败
9095该设备今日已参与签到见下——不是幂等成功(本机名额被别的账号用掉时,当前账号拿到它却一分没领到)
1001token/会话失效session_dead(与 chat 401 同义)

status 一共六种:ok / already / disabled / device_used / device_missing / error。

据此定下的判定规则:

  • 不能只看 HTTP 状态(一律 200,会误报成功)
  • 不能只看 code 0 就以为签上了 —— claim 后要回查 checkin_credits/status 的 checked_in 才算数
  • enable 缺省按开放处理:只有明确的 enable: false 才算「今日未开放」。 上游省略该字段时(旧版本/灰度),把缺省读成关闭会把自己唯一该发的那次 claim 拦掉——少签一次的代价远大于多问一次上游
  • 不能拿积分当签到凭据 —— ide_user_ent_usage 是所有包的聚合剩余额度, 签到前后可能是同一个数
  • 签到前先刷 token:闲置账号的 accessToken 早已过期,不刷必然拿 1001 认证失败(chat 那条路一直有刷,签到以前没有——「一直没用过的号点签到」 就是这么失败的)

关于 9095(证据分级,别当成已实测):上游 ug 族的 NLS 文案是 「该设备今日已参与签到」,口径指向设备;本插件的处理是防御式的—— 不论 claim 回什么 code,都以回查 checked_in 为唯一凭据:

  • 回查到 checked_in=true → 成功(code 0 那次是本次领到的,否则是本来就有的幂等)
  • 回查 false 且 claim 回 9095 → 报独立的 device_used 并说明原因, 不报 already(把「没领到」说成「已领到」是这里唯一不能犯的错)
  • 其余 → 通用 error

本机实测到的是:已领账号(checked_in=true)再 claim 一律回 code 0、与 deviceId 无关(账号级幂等先行),所以 9095 那条分支本机没能复现—— 它只在「账号未领 + 设备名额已用」时出现,而本机三个账号当天都领过了。 代码按上面的防御式处理,不改判定凭据(始终是 checked_in)。

checked_in 与 did_checked_in 是两个维度

这两个字段常被当成一回事,判定维度其实不同(2026-10-10 实测复核):

字段判定维度含义
checked_in账号该账号今天的签到奖励包已到账。换 deviceId 读数不变
did_checked_in设备(x-device-id 的值)这台机器今天的名额已用,不区分是哪个账号用的

实测:同一账号带本机真实设备号读是 did_checked_in=true、带另一个号读是 false;重复读不会自己变 true(只有真 claim 才置位);而 checked_in 只随 账号变。

于是有 !checkedIn && didCheckedIn 这一态:本机名额已被用掉(可能是另一个账号 领的),而这个账号一分没领到。这时 claim 只会被 9095 拒,插件如实报 device_used,不谎报成功。

(曾把 checked_in 记成「当前登录态设备的读数、换 deviceId 会短暂变 false」—— 那是 did_checked_in 的行为,记反了。)

剩余积分的计算

ide_user_ent_usage 返回 user_entitlement_pack_list,剩余 = Σ(credits_limit

  • credits_amount)。实测要点:

  • 请求体必须是 {"require_usage":true,"req_source":2},发 {} 拿不到完整 usage

  • 过期包必须跳过:签到积分是当日发放、31 天后过期的独立包 (entitlement_id 形如 checkin_20260902_<uid>,每个 200 额度)。不滤掉 就是把历史所有签到包累加进「剩余」,面板越签越多、永远用不完

  • 请求头与 chat 链路不是同一套身份:签到/积分走 VSCode 插件进程 (UA VSCode 1.107.1 (TRAE SOLO CN)),chat 走 IDE 主进程

  • x-device-id 必须是 16 位纯数字(真实客户端实测值如 1711320556112436), 发 hex32 / UUID 在风控眼里不是设备号

9074 的真相(账号级稳定拒绝,不是抖动)

9074 不是短时抖动,是账号级稳定拒绝。诊断实验(直连上游):

  • 同一账号 40 余次请求(间隔 0~15s 递增)全部 9074,一次没过
  • 刷新 token、换全新 deviceId、换 UA/region/请求体 均无效
  • 决定性对照:把失败账号的 deviceId 借给成功账号 → 成功账号照样 code 0; 把成功账号的 deviceId 借给失败账号 → 失败账号仍 9074 —— 失败跟着账号走,不跟着设备走

所以保留的 1s 重试只是兜「上游万一恢复成真抖动」,落空即判失败、不空耗 8s。 从 ide_user_ent_usage 的「签到奖励」包看,被拒账号会整段缺签(可能连续多天没 签上)——这是上游对账号的发放策略,客户端绕不过,只能如实报失败,别谎报成功。

架构

通过 cordis service router.suppliers 向 dsh-router 注册 traework 供应商工厂。

src/
  index.ts       插件入口(提供 router.suppliers service)
  contract.ts    供应商契约
  types.ts       类型定义
  api/           供应商实现(上游客户端、账号凭证池、登录、签到能力等)

开发

pnpm install
pnpm build        # lib/index.js
pnpm typecheck
pnpm test         # node --test "src/**/*.test.ts"

致谢

  • Sliverkiss/traework2api —— 本插件的 直接移植来源:上游客户端、登录流程与常量表都来自它(其内置的每日自动签到 Scheduler 因本插件不做自动调度已删除);
  • rockswang/wild-work —— 签到语义的参考: checkin_credits 的业务码含义、以及「成败只看 body code、积分不能当凭据」 这些判定规则的来源;
  • star620/TRAE-Automatic-sign-in —— TRAE 每日自动签到助手的参考。

许可证

MIT

免责声明

本项目仅用于学习与技术研究,请勿用于商业用途。