npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-llm-trae

v1.0.0

Published

为 DeepSeek Harness (DSH) 接入 Trae 模型,自动发现本地 Trae IDE,无需 API Key

Readme

dsh-llm-trae

为 DeepSeek Harness(DSH)接入 Trae 模型。支持 4 个模型档位,自动发现本地 Trae IDE,无需手动配置 API Key。

本项目是第三方适配器,并非 Trae 或 DSH 官方插件。

功能

  • WebUI 中直接添加 Trae Provider
  • 自动发现本地 Trae IDE(支持 CN/SOLO/SG/SOLO-SG 四个版本)
  • 4 个模型:trae-glm-5.2 / trae-sonnet / trae-haiku / trae-deepseek-v4
  • 自动解密 storage.json 中的认证数据
  • Token 过期自动刷新
  • 3 级 API 端点回退
  • 独立安装,不修改 DSH 全局安装目录

环境要求

  • Windows(依赖本机 Trae IDE 安装)
  • Node.js >= 22.0.0
  • 已安装 DSH(已验证 0.1.0-rc.7
  • 已安装并登录任意 Trae 版本(CN / SOLO CN / SG / SOLO SG)

安装

npx --yes dsh-llm-trae@latest install

完成后重启 DSH。

WebUI 配置

  1. 打开"设置 → 模型"
  2. 点击"添加提供方"
  3. 选择 Trae
  4. 保存(无需填写 API Key)
  5. 点击该 Provider 的"编辑",点击"获取可用模型"
  6. 选择需要的模型并导入

模型

| 模型 ID | 名称 | 上下文 | 最大输出 | 说明 | |---------|------|--------|---------|------| | trae-glm-5.2 | Trae GLM-5.2 | 128K | 16K | 旗舰模型 T1 | | trae-sonnet | Trae Sonnet | 128K | 16K | 旗舰模型 T1 | | trae-haiku | Trae Haiku | 128K | 8K | 快速轻量 T2 | | trae-deepseek-v4 | Trae DeepSeek V4 | 128K | 8K | 均衡模式 T2 |

更新

npx --yes dsh-llm-trae@latest install

卸载

npx --yes dsh-llm-trae@latest uninstall

完成后重启 DSH。

工作原理

DSH Agent → dsh-llm-trae 插件 → Trae 上游 API (trae-api-cn.mchost.guru / a0ai-api-sg.byteintlapi.com)
                                ├─ 自动发现 Trae IDE(解密 storage.json)
                                ├─ Token 自动刷新
                                └─ 3 级端点回退保障可用性

插件通过解密 Trae IDE 本地存储的 storage.json(支持 tc 加密和明文两种格式),自动获取认证信息,无需用户手动配置 API Key。

免责声明

  • 仅供个人学习研究使用
  • 需要自备已登录的 Trae IDE
  • 遵守 Trae 服务条款
  • 不保证持续可用

License

MIT