dsh-workbuddy-multi: Manage multiple WorkBuddy accounts in DSH

Preface

Integrating the WorkBuddy model into DeepSeek Harness (DSH) typically relies on the community plugin dsh-workbuddy-connect. This plugin handles connecting WorkBuddy models to the DSH model selector. When using a single account, if a rate limit is triggered or the daily quota is exhausted, conversations must wait or require manual switching of credentials. This is inconvenient for developers who need to run long tasks or parallel sessions.

dsh-workbuddy-multi is a companion plugin to dsh-workbuddy-connect. It does not modify any files of the upstream plugin; instead, it maintains separate account pools for the Domestic and International versions on top of it. It also provides a unified settings page for rate limiting, rotation, token renewal, and model grouping. The following sections introduce its positioning, capabilities, and installation instructions.

About This

  • Name: dsh-workbuddy-multi (DSH WorkBuddy Multi-Account)
  • Maintainer: richardhxwang
  • Category: Client-side plugin (Injects settings UI into the DSH Web client)
  • Repository: github.com/richardhxwang/dsh-workbuddy-multi
  • Current Version (package.json): 0.7.0, License MIT
  • Dependencies: dsh-workbuddy-connect (peer requirement ^0.7.8); If not installed or disabled, it will attempt to automatically install or enable it via the plugin market.

In short: dsh-workbuddy-connect handles model integration, while this plugin handles multi-account pools and rotation strategies.

Core Features

Multi-Account Rotation

Separate account pools are maintained for the Domestic and International versions. When an account triggers a rate limit or exhausts its quota, it will be paused until the quota recovery time. The next request will use the next available account, and requests will not be sent to accounts currently under rate limiting.

The rotation method can be selected in the settings page:

Method Behavior
Switch on Rate Limit (Default) Continuously use the current account; pause and switch only when rate limited or quota is exhausted.
Round-Robin Use the next available account for each request in sequence.
Manual Selection No automatic switching; only use the account manually set as “Current”.

Only rate limits where WorkBuddy returns a quota recovery time will cause the account to be paused and switched. Temporary limits without a recovery time, such as “Model Busy,” will not trigger an account switch; instead, DSH will handle automatic retries.

Adding Accounts & Token Renewal

  • Scan to Add: Generate a WorkBuddy official login link in the settings page; scan with WeChat to add to the account pool.
  • Import from Desktop App: Read the currently logged-in account from the WorkBuddy Desktop App.
  • Import Auth Files: Maximum 10 at a time; if DSH is not running locally, expand “Import by Path” to fill in the path.

Expired tokens are refreshed on a schedule; accounts requiring re-login are marked separately. Each account supports refresh token, disable/enable, rename, and delete; available accounts can be “Set as Current”.

Model Grouping & Upstream Capability Merging

Grouping Method Behavior
Merge by Version (Default) One model group for Domestic and one for International; accounts within the group rotate automatically.
Group by Account Each account corresponds to a model group, selectable directly in the model selector.

Reasoning Tier Sharing (Enabled by default): The reasoning level detected by any account within the same version in the settings page applies to all accounts in the pool. Detection only occurs in the settings page; the “Reasoning Level” button will not appear in the input box. For models declared to not validate parameters, four levels—low / medium / high / max—are provided by convention.

Context Tiering: For models declared with multi-tier windows in the manifest, you can select the window size individually in the model list, or set all to Default/Min/Max with one click; the entry names in the model selector remain unchanged.

Credits Aggregation: Aggregates credits of enabled accounts in the pool by version. Can be displayed next to the input box (controllable via config or settings page toggle).

The switches in the settings page (model grouping, reasoning tier sharing, input box credits, context tiering) take effect immediately and are saved in ~/.dsh/workbuddy-pool/settings.json, persisting after DSH restarts. Upstream plugin account status, credits, model list refresh, visibility, max context, reasoning tier detection, and version update checks are also consolidated into this plugin’s settings page.

Installation & Activation

The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and MIT license on GitHub before installation.

Install from Plugin Market (Recommended): Open the DSH “Plugin Market”, search for dsh-workbuddy-multi, and click install.

Command Line (dsh web profile):

dsh plugin --profile web add https://github.com/richardhxwang/dsh-workbuddy-multi/releases/latest/download/dsh-workbuddy-multi.tgz

After installation, refresh the page, open dsh-workbuddy-multi in the “Plugins” page to access the settings.

The dependency dsh-workbuddy-connect is checked automatically after installation; if there is no plugin market, the settings page will prompt for manual installation:

dsh plugin add dsh-workbuddy-connect

Typical Usage

Adding Accounts

  1. Open the plugin settings page and click “Add Account” in the top right corner.
  2. Select Domestic or International version, open the generated login link in a browser or mobile device, and scan with WeChat.
  3. After successful login, the account immediately enters the account pool for the corresponding version.

You can also import from the Desktop App or import auth files via the “⋯” menu to the right of the version title.

Selecting Rotation & Grouping

In the settings page, select “Switch on Rate Limit / Round-Robin / Manual Selection” and “Merge by Version / Group by Account”. No additional restart is required after making changes; requests will follow the new strategy immediately.

Optional Configuration (cordis.patch.yml)

Generally, no changes are needed; switches modified in the settings page take precedence. If you need to adjust settings in the profile’s cordis.patch.yml, refer to:

- id: llm-workbuddy-multi
  config:
    cooldownMs: 1800000      # Pause duration (milliseconds) when quota is exhausted but recovery time is unknown
    keepalive: true          # Automatic token renewal
    keepaliveSweepMs: 900000 # Renewal check interval
    poolRoot: ''             # Account pool directory, blank defaults to ~/.dsh/workbuddy-pool
    reasoningCache: true     # Reasoning tier sharing across accounts
    creditsChip: false       # Credits total chip in input box
    contextTiers: true       # Select context window per model
    creditsIntervalMs: 300000 # Background credits statistics interval; 0 = no periodic statistics

Use Cases & Notes

Suitable For: Users already using dsh-workbuddy-connect in DSH who need multiple WorkBuddy accounts to share the load of rate limits, or who wish to differentiate by account in the model selector.

Important Notes:

  • Do not fill in authFile / authFileAI paths in the dsh-workbuddy-connect settings; these take precedence over this plugin. If filled in, automatic rotation will not take effect, and the settings page will show a prompt.
  • Domestic version account credentials are encrypted by the local WorkBuddy App key. The account pool cannot be used if copied to another computer; the Domestic version can only be used on the local machine.
  • Credentials are only stored locally in ~/.dsh/workbuddy-pool/ (file permissions 0600); tokens are not displayed in the settings page or APIs.
  • For Domestic accounts imported from the Desktop App, tokens are refreshed by the upstream during use; if you wish to include them in this plugin’s automatic renewal, please use “Add Account” to scan and log in once.

The DSH community plugin directory (such as the entry on skillhub.cn) is maintained by the community and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-workbuddy-multi centralizes multi-account pools, rate limit switching, scanning and importing, token renewal, and model grouping into a single settings page without touching the upstream dsh-workbuddy-connect. If you are already using WorkBuddy in DSH Web, you can install this plugin from the market, add accounts by version, and select a rotation strategy.

  • Directory Page: https://www.skillhub.cn/plugins/richardhxwang/dsh-workbuddy-multi
  • GitHub: https://github.com/richardhxwang/dsh-workbuddy-multi
羽毛球分组比赛记分
小程序二维码

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

Xiaoye