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.

Connect Trae — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-connect-trae

Connect Trae

Connect locally signed-in Trae models to DeepSeek Harness, plus a read-only usage/credits summary.

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-connect-trae@2.0.4
READMECompatibilityVersions
dsh-connect-trae settings panel

Compatibility and provenance

Connect Trae is published as dsh-connect-trae and currently resolves to version 2.0.4. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

2.0.4stable
9/16/2026
2.0.3stable
9/15/2026
2.0.2stable
9/15/2026
Show 13 more versionsCollapse versions
2.0.1stable
9/15/2026
2.0.0stable
9/15/2026
1.4.4stable
9/12/2026
1.4.2stable
9/12/2026
1.4.1stable
9/12/2026
1.4.0stable
9/10/2026
1.3.0stable
9/8/2026
1.2.0stable
9/4/2026
1.1.2stable
8/31/2026
1.1.1stable
8/30/2026
1.1.0stable
8/30/2026
1.0.1stable
8/29/2026
1.0.0stable
8/29/2026

Related plugins

Loading related plugins…

Latest
2.0.4
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
504.3 kB
Files
12
Surface
web
License
MIT
Source
npm
GitHub
★ 13
Weekly downloads
907
Security scan
✓ v2.0.4 scan passed
Last push
9/16/2026
View source ↗Project homepage ↗
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.

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 dedicated pet bubble for the current providerUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.Ui Usage Billing@kenz1117/dsh-ui-usage-billingUsage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.

README

dsh-connect-trae settings panel

dsh-connect-trae

把本机登录的 Trae 模型接入 DeepSeek Harness,并提供只读的用量/积分概览。

English · 安装 · 工作原理 · 模型覆盖范围 · 更新日志 · 问题反馈

一个独立的 DeepSeek Harness (DSH) bundle 插件。它把本机已登录的 Trae 账号(国内版与国际版均支持)接到 DSH 的模型选择器:模型负责生成结构化工具调用,bash / read / write / edit 等工具由 DSH 本地执行;同时提供只读的用量概览(国内版 Work/通用积分、国际版订阅状态)与模型管理界面。国内版与国际版是两个并行的供应商(trae / trae-global),可同时使用;插件设置卡片以 tab 区分两者,方便统一管理。

功能特性

  • 双供应商并行接入 —— 国内版注册为 DSH 的 trae provider(DeepSeek-V4-Flash、DeepSeek-V4-Pro 等),国际版注册为 trae-global(Gemini / GPT / MiniMax 阵容),两边模型同时出现在 DSH 模型选择器里:不同会话可以各选一边,互不干扰。
  • 插件卡片 tab 切换 —— 设置卡片顶部为「国内版 / 国际版」两个 tab,各含独立的账号选择、用量概览与模型管理;每个 tab 的账号、目录、勾选与未保存草稿完全隔离——在一个 tab 里切账号或刷新模型,不会触碰另一边的运行时目录与会话。
  • 倍率内嵌模型名 —— 模型名称按 Trae 自身菜单的格式显示积分倍率(如 GLM-5.2 · x0.79),倍率随目录刷新更新。
  • DSH 本地工具循环 —— 通过 Trae llm_utils_chat 获取待执行的结构化 tool_calls,交由 DSH 自带的本地工具执行,再将工具结果回传模型。
  • 国内国际双区域自动识别 —— 自动发现 Trae CN / TRAE SOLO CN / Trae / TRAE SOLO 四个本地安装的登录账号;区域由凭证自带的 userRegion 声明自动判定(host 后缀与 edition 标签兜底),无需手动指定。
  • 目录与勾选按区域隔离 —— 国内版与国际版各一套模型目录、勾选、图片开关与上下文预算,两个供应商各自读各自的槽位。
  • 多账号切换 —— 支持重新读取 Token 列表并选择账号;Token 不写入 DSH 设置。
  • 只读用量与模型管理 —— 国内版查看 Work 积分与通用积分,国际版查看订阅/试用状态;刷新/启用 Trae 模型;只读查询不消耗额度。
  • 安全 loopback shim —— 每区域一个随机端口 + 进程内随机 secret,真实 Trae token 不交给 pi-ai。

工作原理

DSH PiAiAdapter(每个 provider 一套)
  -> 安全 loopback shim(每区域一个随机端口 + 进程内随机 secret)
  -> TraeSoloBridge
  -> 国内版 https://trae-api-cn.mchost.guru/api/agent/v3/llm_utils_chat
  -> 国际版 https://coresg-normal.trae.ai/api/agent/v3/llm_utils_chat
  -> Trae SSE / pending function_call
  -> OpenAI SSE tool_calls
  -> DSH 本地执行工具并回传结果

国内版与国际版各持一套完整的运行时栈——凭据 store、模型 catalog、wire 映射、上游客户端、回环 shim、adapter——按凭证自带的区域声明隔离可见账号,所以两个区域的账号可以同时在线、同时被不同会话使用。

用量概览走 https://api.trae.cn/trae/api/v2/pay/* 与 /trae/api/v2/ug/* 只读接口(国际账号走其自有网关的订阅状态端点)。刷新得到的 token 按区域存放在 $DSH_HOME/.trae-auth.cn.json 与 $DSH_HOME/.trae-auth.ai.json(两个账号同时在线互不覆盖;旧的单文件 .trae-auth.json 作为迁移来源保留读取)。

详见 docs/IMPLEMENTATION_PLAN.md、docs/SOLO_ROUTE_DECISION.md、docs/USAGE_API_RESEARCH.md。

模型覆盖范围

插件提供的是 Trae SOLO 通道的模型(DeepSeek-V4-Flash-Official、DeepSeek-V4-Pro-Official、GLM-5.3、GLM-5.2、Kimi-K3、MiniMax-M3、Qwen3.8-Max、Doubao-Seed-* 等),国内版与国际版均走这条通道。

以下 4 个模型目前来自 TraeCode(Trae IDE)通道,尚未开放到 SOLO 通道,因此本插件暂不支持:

模型
deepseek-v4.1-flash
glm-5.3-flash
kimi-k2.8-preview
qwen3.8-flash

这 4 个模型只在 Trae IDE 客户端内可用,插件侧没有可调用的通道。需要等官方把它们开放到 SOLO 通道后,插件才能支持。

注意区分:GLM-5.3 是支持的(走 SOLO 通道),但 glm-5.3-flash 不支持——两者是不同的模型。

如果你现在就要用这 4 个模型,请直接在 Trae IDE 本体中使用。

安装

推荐使用 DSH 插件命令安装 npm 已发布版本:

dsh plugin --profile desktop add dsh-connect-trae

或直接通过 npm 安装:

npm install dsh-connect-trae

安装、更新或卸载 bundle 后,需要重启对应的 DSH 进程。

Windows 说明

  • 账号数据目录:插件读取 %APPDATA%\Trae CN / %APPDATA%\TRAE SOLO CN 下的 User\globalStorage\storage.json(与安装目录无关)。目录名与 macOS 一致,无需额外配置;若目录名对不上,可用插件配置项 authFile + edition 直接指定完整路径。
  • 应用版本头:插件从安装目录 <LOCALAPPDATA>\Programs\<AppName>\resources\app\product.json 读取 appVersion,随请求发送 x-app-version / x-ide-version;读不到时这些头不发送(与旧版行为一致)。
  • Raw Chat 探测(已知限制):model-cache 依赖 sqlite3 命令行,Windows 默认未安装,Raw Chat 能力探测会失败并安全回退。Raw Chat 默认关闭,不影响主流程。
  • 排查指引见 docs/WINDOWS_TOKEN_PROBE.md。

开发

pnpm install
pnpm run check   # typecheck + test + build

本地开发用 link: 安装到 desktop profile(改码后重启 DSH Desktop 生效):

dsh plugin --profile desktop add /Users/dmh2002/DshProject/dsh-connect-trae

致谢

  • Wang-JQ77/dsh-trae-api(MIT)— Trae 认证、会话和模型协议研究的参照实现。

第三方开源依赖

本项目参考的与 Trae 接入直接相关的开源项目,以及它们的许可证与合规说明,见 THIRD_PARTY_NOTICES.md。引入新的 Trae 相关外部依赖或复用其他项目代码时,请同步更新该文件并遵守对应许可证要求。

许可证

本项目采用 MIT 许可证,版权归属:Copyright (c) 2026 LaoDing。