Skip to main content
G

dsh-trae-multi (dsh-trae-multi)

gittuyn/dsh-trae-multi/dsh-trae-multi

Manage multiple Trae accounts and model access in DeepSeek Harness.

Install

dsh plugin --profile web add github:gittuyn/dsh-trae-multi

This plugin lives in the dsh-trae-multi subdirectory of the repository.

README

dsh-trae-multi

Several trae.cn accounts serving at the same time, each spending its own quota, behind one model-picker entry — plus a credit readout in the composer, an account scanner that mirrors the local Trae logins, and a settings page that shows exactly which account is paying.

A DeepSeek Harness plugin (bundle).

model picker:   Trae CN (2)         ← one entry, accounts chosen for you
composer:       ★ 2847              ← credits left, click for a per-account breakdown
settings:       Accounts · Models · Scan · Paths & import

What it does

  • One picker entry, several accounts. The picker carries a single trae-multi-cn provider whose requests are served by one account at a time. Rotation exists only as failover, so a dead login degrades to "the other account answered".
  • Spend expiring credits first. By default the account with the most credits expiring within 3 days (then the largest balance) pays. Pin a different account on the page whenever you want; both the page and the composer pill show which one is in use and whether it is auto or pinned.
  • The plugin owns its logins. A login found in the Trae client directory is copied — storage.json verbatim, device identity included — into the plugin's own profile tree, and everything bills from that copy. Signing in to the client again can no longer pull the credential out from under a request.
  • Only Trae CN's own models reach the pickers. Custom third-party models, internal helpers and retired built-ins are listed on the settings page but not offered for a conversation.
  • Official model options. The Models tab lists the reasoning levels and context windows Trae advertises for each model; a chosen level is sent with later requests using Trae's own wire names.
  • Honest account discovery. Every scanned directory is classified — found, duplicate, unreadable, or simply absent on this platform — with its reason shown.
  • Daily check-in per account, reporting what the upstream actually said.

Install

This is a DSH bundle. From a DSH session:

plugin_manager install_bundle  target: <path to this checkout>

or point the profile's package.json at it. It is fully standalone: the Trae protocol implementation is vendored in dsh-trae-multi/lib/trae-protocol.js, so no other plugin needs to be installed.

Documentation

The full manual — account discovery and the mirror, the picker gate, credit windows, check-in outcomes, every configuration key — is in dsh-trae-multi/README.md.

Two PowerShell helpers for running the Trae client on one profile per account are in tools/.

Requirements

  • DeepSeek Harness with the Web GUI (dsh web)
  • A signed-in trae.cn account, obtained either in the Trae CN client or by pasting credentials on the settings page

Licence

MIT — see LICENSE.

Related plugins