dsh-workbuddy2api-panel: Syncing workbuddy2api-panel Models and Quota into DeepSeek Harness

Introduction

When integrating workbuddy2api-panel into DeepSeek Harness (DSH), the common practice is to manually write the providers.workbuddy2api.models configuration for llm-pi-ai in ~/.dsh/profiles/<profile>/cordis.patch.yml. This requires manually copying the id, name, contextWindow, and maxTokens for each model from the panel. Whenever the panel adds or removes models, the configuration must be re-copied, and missing entries are hard to spot.

jerry9692/dsh-workbuddy2api-panel is a client-side plugin categorized as a “Networking Tool” in the DSH community directory. It reads the panel’s HTTP API to write the model list (including rate multipliers, domestic/international partitions, and thinking tiers) into the DSH llm-pi-ai configuration and displays remaining quota and usage in the settings page. If you only need an OpenAI-compatible /v1 endpoint and do not care about multipliers and quotas, a lighter bridge method is sufficient; this article covers the usage for when you need to align with panel models and credit policies.

What is this

dsh-workbuddy2api-panel (npm package name dsh-workbuddy2api-panel, current version 1.0.3, MIT License) is published by maintainer jerry9692. It is a client-side plugin: it does not modify or proxy the panel itself. Instead, it calls the panel’s /panel/api/* via Bearer authentication and synchronizes the results to DSH’s own llm-pi-ai configuration (the plugin bundle in cordis.patch.yml is id: workbuddy-panel).

The README specifies that it is applicable to workbuddy2api-panel 1.13.0-panel (tested and passing); applicable DSH is @deepseek-ai/dsh-desktop-runtime 0.2.0-rc.2 (aligned with llm-pi-ai, dsh-settings, and dsh-credentials for that version). The runtime environment requires Node >=20 (CI badges indicate 20 / 22 / 24).

Core Features

The following summarizes the capabilities described in the README and does not involve features not appearing in the materials.

Model Synchronization

  1. Fetches models from the panel via GET /panel/api/models (cn: / global: prefixes, multipliers, thinking tiers, context, etc.).
  2. Rewrites the models array under providers.workbuddy2api based on your selections in the settings page; selector names will include partition and multiplier info, e.g., Deepseek-V4.1-Flash · Domestic · ×0.11.
  3. Default auto-sync every 2 minutes. No DSH restart is required after the panel adds or removes models (the same applies to changing plugin configuration or model selection).
  4. You can disable a specific thinking tier for individual models; rate display follows the panel’s credits (promotional rates take priority).

The plugin explicitly writes compat: { supportsReasoningEffort: true, thinkingFormat: 'openai' } for the LAN baseURL to prevent pi-ai misjudgments that could cause reasoning_effort to silently fail.

Connection and Sniffing

The WorkBuddy Panel card in the settings page supports:

  • Multi-line panel addresses: attempts connections in order and adopts the first available one; supports automatic correction for formats like 192.168.x.x:7863, http://…/v1, http://…/panel; timeout seconds can be added at the end of the line.
  • Auto-probe: attempts the entered address, then current host + 7863, 127.0.0.1:7863, and localhost:7863 in sequence.
  • API Key: stored in the DSH credential library with the reference name consistent with llm-pi-ai: WORKBUDDY2API_API_KEY; leaving it blank inherits existing environment variables or credentials. It can be left blank if the panel has auth_required: false.
  • If the plugin has not saved an address yet, it reads providers.workbuddy2api.baseURL and apiKeyEnv from your existing cordis.patch.yml on first startup.

Quota, Usage, and Alerts

  • Remaining Quota: Summarizes credits and account health status by Domestic/International versions (data from /panel/api/overview, /panel/api/packages).
  • Usage: Request count, credit consumption, cache hit rate, latency, and statistics by model (/panel/api/usage?hours=N, supporting 24h / 72h / 168h).
  • Top Alert Bar: Invalid Key (401/403), panel continuously unreachable, domain quota insufficient, credit package expiring, etc.; the bottom “Policy” allows configuring default selection behavior for newly listed models, low quota marking, clearing plugin-written configuration, etc.

Mounted on the host’s sidebar.footer.action slot: displays WB and a status dot; clicking pops up remaining quota by domain, alert count, panel version, etc.; display modes (Remaining/Total, Split Domain, Only Remaining, Hidden) can be switched in the policy and synced with the settings page via the bundle’s internal store without waiting for the 60-second polling.

Installation and Activation

Official installation command (from README):

dsh plugin --profile desktop add dsh-workbuddy2api-panel

dsh plugin add writes the package into the profile’s dependencies and dsh.profile.bundles and loads the cordis.patch.yml bundled with the plugin. A restart of DeepSeek Harness is required after the first installation to load the host-side code; subsequent changes to plugin configuration or model selection generally do not require a restart.

For local development, you can use the link method (replace the path with your clone directory):

dsh plugin --profile desktop add "link:$PWD"

Uninstallation:

dsh plugin --profile desktop remove dsh-workbuddy2api-panel

To temporarily disable it, set disabled: true for this bundle in cordis.patch.yml and restart.

The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the GitHub repository source code and MIT license, and understand the “Security Model” section of the README: write interfaces /workbuddy-panel/api/* rely on three checks—localhost loopback, same-origin, and JSON; if DSH is bound to 0.0.0.0 or exposed externally via a reverse proxy, you need to harden it yourself at the proxy layer.

Typical Usage

1. Connect and Initial Sync

  1. After restarting DSH, open Settings → WorkBuddy Panel.
  2. Fill in an accessible address under “Panel Address” (e.g., http://192.168.1.10:7863), and fill in the panel API Key as needed (or share it with the existing WORKBUDDY2API_API_KEY).
  3. Click “Save and Sync” or enable “Auto-probe”; confirm that “Auto-sync to DSH” is enabled to write models to llm-pi-ai.
  4. The panel has many default models; the README suggests “Select None” first for the initial setup, then checking common models to avoid an overly long selector.

2. Daily Maintenance

  • After the panel changes models, wait for auto-sync or save manually; deprecated models have a 24-hour grace period and display · Deprecated.
  • Check credits and consumption over the last 72 hours for each domain in “Quota & Usage”; use the sidebar badge for a quick glance at remaining status.
  • If you only need to clear the provider configuration written by the plugin, use “Clear Plugin-Written Config” in the policy area (requires double confirmation).

3. Comparison with Manual Configuration

Before installing the plugin, a typical snippet looks like this:

- id: llm-pi-ai
  config:
    providers:
      workbuddy2api:
        baseURL: http://192.168.1.10:7863/v1
        apiKeyEnv: WORKBUDDY2API_API_KEY
        models:
          - id: cn:deepseek-v4.1-flash
            name: Deepseek-V4.1-Flash
            contextWindow: 1000000
            maxTokens: 393216
          # ……The panel has over 50 models, requiring manual copying one by one

After installing the plugin, models are maintained by the panel API; the provider key is fixed as workbuddy2api, and the state file is workbuddy-panel.json (does not contain plaintext API Keys).

Applicable Scenarios and Notes

Suitable for:

  • workbuddy2api-panel is deployed locally or within the LAN, and the machine running DSH can access the panel’s HTTP API.
  • You need to see domestic/international partitions and credit multipliers directly in the DSH model selector, and need to view account pool quota and usage within the Harness rather than just filling in a /v1 baseURL.

Notes:

  • The panel API Key protects both /v1/* and /panel/api/*, granting broad permissions; do not leak it.
  • The plugin only maintains providers.workbuddy2api and does not modify agent-default-model; if the default model has been deleted from the panel, DSH will still report the model as non-existent, requiring you to change the default item yourself.
  • When panel fields or APIs change, the plugin needs to be adjusted according to the workbuddy2api-panel version (dependency interfaces are listed in the README “Depended Panel APIs” table).
  • The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; the SkillHub Directory Page is a community site with no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-workbuddy2api-panel brings workbuddy2api-panel’s model metadata and operational-side quotas and usage into the DSH settings interface, eliminating the maintenance cost of manually writing the long models list in cordis.patch.yml. The installation command is dsh plugin --profile desktop add dsh-workbuddy2api-panel. After installation, simply restart once to connect to the panel and start syncing as described above.

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

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

Xiaoye