trae2api-dsh: Using TRAE Quota in DeepSeek Harness

Introduction

DeepSeek Harness (DSH) adopts a plugin architecture, allowing developers to integrate external capabilities into the native environment. If you have model quota on a TRAE account, using this quota directly within DSH eliminates the need to switch clients. The trae2api-dsh plugin implements this bridge, connecting TRAE CN or TRAE SOLO CN account quotas to DSH, enabling you to invoke these models within the native DSH interface.

What is this

This is a plugin that integrates TRAE account model quotas into DSH. It is maintained by user FuSheng-cs. It solves the issue of being unable to directly use TRAE account quotas in DSH. By providing an embedded console, it offers features such as multi-account management, daily check-ins, and polling. It also allows you to select TRAE models and thinking intensity within the native DSH conversation menu.

Core Features

The plugin possesses the following capabilities:

  • TRAE Quota Integration: After importing a TRAE account, invoke the models provided by the account and utilize its quota within DSH.
  • Auto Check-in: Performs daily check-ins based on Beijing Time, with support for skipping accounts that have already checked in for the day.
  • Multi-account Management: Supports importing desktop accounts or logging in via web authorization; allows switching accounts and enabling or disabling model invocation individually.
  • Account Polling: Performs sequential polling among valid and enabled accounts, or schedules based on cached remaining credits.
  • Models & Thinking Intensity: Supports discovering account models and provides thinking intensity tiers based on actual capabilities.
  • Model Display Management: Search, show, or hide models in the console; supports batch operations and synchronizes changes to the native model menu.
  • Credits & Usage Statistics: View account credits, tokens, cache, requests, consumption records, and daily summaries.
  • Full Embedded Console: Provides management interfaces within DSH, including Overview, Accounts & Check-in, Consumption Records, Polling & Settings, and Model Testing.
  • Automatic Service Management: Starts with dsh after initial setup; continues running when closing the window to the system tray; stops services upon full exit or disabling of the plugin.

Installation & Activation

Use DSH’s plugin management tool to add the plugin package.

Desktop Users:
Enter the following address in the “Add Package” entry of the dsh plugin manager. After installation and activation, open the sidebar TRAE Console.

https://github.com/FuSheng-cs/Trae2api-dsh/releases/latest/download/trae2api-dsh.tgz

Web / CLI Users:

dsh plugin --profile web add https://github.com/FuSheng-cs/Trae2api-dsh/releases/latest/download/trae2api-dsh.tgz
dsh web

Typical Usage

  1. Prepare Environment: Open TRAE Console → Service Settings, click “Prepare Environment,” and click “Start Service” once complete.
  2. Import Account: Select TRAE SOLO CN or Trae CN and click to import the current desktop account; alternatively, return to the console to log in via web authorization.
  3. Integrate Model: Click to integrate the model menu into dsh within DSH Model Management.
  4. Use Model: Select the model and thinking intensity in the conversation input box; model display or hiding is still managed within the console.

Use Cases & Notes

This plugin is designed for users who hold TRAE CN or TRAE SOLO CN accounts and require unified management via DSH. Please note the following when using it:

  • Execution Privileges: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code and license before installation.
  • Protocol Limitations: Currently only supports the China edition protocol and local Desktop / Web environments. It does not support international versions or remote browsers.
  • Operational Mechanism: Services continue to run when the window is closed to the tray; the proxy and check-in tasks stop when dsh is fully exited, the Host ends, or the plugin is disabled.
  • Data & Updates: Uninstallation preserves plugin data. To update, you must first disconnect the model, stop and remove the old plugin, and then add the new package.

Brief Conclusion

trae2api-dsh seamlessly integrates TRAE quotas into DeepSeek Harness via an embedded console, making it suitable for users who need to manage multiple account quotas or specific TRAE models uniformly. For detailed configuration, upgrade, and uninstallation steps, please refer to the project documentation.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye