Introduction¶
The design philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” When using local model tools like WorkBuddy, multi-account management, model integration, and providing an OpenAI-compatible external interface are often pain points. dsh-hyperworkbuddy aims to solve these problems: manage multiple WorkBuddy accounts directly within DSH settings and integrate models into DSH and any OpenAI-compatible client.
Plugin Overview¶
Maintained by ChaYeWuu, this plugin falls under the “Model Inference” category. It allows for direct management of multiple WorkBuddy accounts within DSH settings and integrates models into DSH and any OpenAI-compatible client.
Core Features¶
- External Interface Toggle: Independently controls the OpenAI-compatible endpoint; turning it off only stops external services, while model calls within DSH remain unaffected.
- API Key Management: Supports one-click regeneration and customization of external keys; old keys become invalid immediately without requiring a restart.
- Dual-version Isolation: The domestic and international versions maintain their own accounts, endpoints, and model lists; models with the same name will not cross over to the other region.
- Account Management: Automatically detects desktop client logins; supports token pasting and account file importing.
- Failover: Automatically switches accounts when encountering insufficient quota, rate limiting, or invalid logins, and applies exponential backoff to the affected account.
- Session Affinity: Pins the same session to the same account to preserve upstream prompt cache hits, preventing distribution via round-robin.
- Usage Dashboard: Records tokens and latency for each request, summarizing data for Today / Total / Last 7 Days / Per Account / Per Model.
- Auto-renewal: Automatically refreshes access tokens when they are about to expire.
- Inference Tiers: Selectable within DSH based on tiers declared by the upstream; undeclared tiers can be probed and filled in.
- Model Visibility: Individual models can be disabled, which only affects the selection list and does not interrupt ongoing sessions.
Installation and Activation¶
Prerequisites: The WorkBuddy desktop App must be installed and logged in (either the Domestic or International version). The plugin reuses the App’s login state, allowing for zero-configuration usage.
- Install using the following command (Web / CLI profile only):
dsh plugin --profile web add github:ChaYeWuu/dsh-hyperworkbuddy
- After installation, you must fully quit and restart DSH (new bundles are not hot-reloaded).
Note: This package is not published to npm; using the package name directly will result in a 404.
Typical Usage¶
After restarting DSH, navigate to Settings → WorkBuddy. The panel is divided into five sections: OpenAI-compatible Endpoint, Domestic Section, International Section, Usage, and Import Area.
In any OpenAI-compatible client, fill in the external endpoint address and API Key for either the Domestic or International version. For example, the default endpoint for the Domestic version is http://127.0.0.1:8791/v1.
Login via Link: Select the version, click to generate an authorization link, complete the login in your browser, and return to the panel.
Notes¶
- Permission Restrictions: The endpoint listens only on 127.0.0.1 and enforces validation of loopback Host and Origin headers. If
apiKeysis not explicitly configured, a key will be automatically generated. - Environment Differences: The Domestic and International versions each have independent account pools, endpoints, and model lists, ensuring no cross-contamination.
- Installation Methods: The
desktopprofile for the desktop App can only be installed via the plugin page, while thewebprofile for the CLI can be installed via the command line.