dsh-workbuddy-broadcast: Publish Local WorkBuddy as an OpenAI-Compatible HTTP Service

Preface

In DSH (DeepSeek Harness), dsh-workbuddy-connect already enables the Harness to directly call models on the WorkBuddy desktop App. But if you are simultaneously using Codex, Claude Code, Cursor, or self-written scripts, these tools cannot access the same WorkBuddy login session and quota by default.

Below we introduce the community plugin dsh-workbuddy-broadcast (maintained by zk-wz, categorized as a networking tool): it exposes your locally logged-in WorkBuddy account as a standard OpenAI-protocol HTTP endpoint, allowing other agent tools on the same machine to reuse the models via a “custom OpenAI Base URL.” The plugin currently has about 1 star on GitHub, npm package version is 0.2.0, and it is licensed under MIT.

What Is This

dsh-workbuddy-broadcast is a plugin in the DSH ecosystem. At runtime, it starts a small HTTP service locally, providing Bearer authentication, GET /v1/models, and POST /v1/chat/completions (SSE streaming). Requests are forwarded by the plugin to WorkBuddy; credentials come from the App’s own login session, rather than storing a separate set of account/password in the plugin.

Compared to “only using WorkBuddy inside DSH”, its value lies in protocol standardization: any client that supports OpenAI-compatible endpoints, as long as it points to http://localhost:18731/v1 (or the forwarded address in WSL scenarios), can share your local WorkBuddy model list and quota.

Any Agent Tool
      |  http://127.0.0.1:18731/v1  (Standard OpenAI Protocol)
      ▼
┌─────────────────────────────────────────┐
│  DSH: dsh-workbuddy-broadcast           │
│    ├─ Bearer Authentication             │
│    ├─ GET  /v1/models                   │
│    └─ POST /v1/chat/completions  (SSE)  │
└─────────────────────────────────────────┘
      |
      ▼
   WorkBuddy Account (reads the App's own login session)

Prerequisites

Before use, please confirm:

  1. DSH is installed and running normally.
  2. WorkBuddy desktop App (domestic version) is installed and logged in.
  3. dsh-workbuddy-connect is installed, and its version matches the DSH kernel (package.json requires peer >=0.7.8). This is a runtime dependency: it is not enforced during installation of this plugin; if missing, the plugin will enter a missing-peer state, not listen on the port, and display a prompt on the settings page.

Core Features

OpenAI-Compatible Endpoint

  • Listens on default port 18731, with path prefix /v1.
  • The settings page displays the local endpoint (http://localhost:18731/v1); on Windows, it can also display the WSL endpoint (http://<vEthernet address>:18731/v1), as well as a copyable API Key.
  • The model list is fetched live from WorkBuddy at startup; if that fails, it falls back to the plugin’s built-in static list, which may not match the actual available set for your account. You can query it with curl:
curl -H "Authorization: Bearer <key>" http://localhost:18731/v1/models

Streaming-Only (SSE)

The service only supports streaming: requests are forced to stream: true, and returning the full response in one go is not supported. Tools that only perform non-streaming calls cannot connect.

Reasoning Effort Passthrough

Supports the standard parameter reasoning_effort, passed through to the upstream as-is. Different models have different tiers (e.g. deepseek-v4.1-flash commonly uses low / high / max); a few models (such as glm-5.1 in the documentation) must be passed explicitly, otherwise the upstream will reject the request.

Platform Differences

Platform Description
Windows Full support; can serve both local and WSL tools simultaneously
macOS Supported; only local address; credential decryption uses Spotlight to discover the App
Linux / WSL Partial support; if credentials are stored encrypted ($wbEncrypted), they cannot be decrypted; an unencrypted credentials file (WORKBUDDY_AUTH_FILE) is required

The WSL endpoint only exists on the Windows host; without a vEthernet, the plugin only listens on 127.0.0.1, and the settings page will explain the reason.

Installation and Activation

Run the official installation command under your configured DSH profile:

dsh plugin --profile <your profile> add dsh-workbuddy-broadcast

After installation, restart DSH. A “WorkBuddy Broadcast” page will appear in the settings; you can also modify configurations in the native form on the plugin management page. Changes to port, apiKey, or allowLocal require a DSH restart or plugin reload to take effect.

The plugin runs with the permissions of the current DSH process; before installation, it is recommended to review the source code and MIT license on the GitHub repository, and assess the access risk to your local configuration directory (the API Key will be written in plaintext to the profile’s cordis.patch.yml).

Typical Usage

1. Get the Endpoint and API Key

Open Settings → WorkBuddy Broadcast. On first enablement, the API Key is randomly generated and not written to disk; if you need to fix it, enter it in the input box on the page and save.

2. Configure in Other Agent Tools

Example (model names depend on what is actually available for your account):

Base URL : http://localhost:18731/v1
API Key  : <value copied from settings page>
Model    : deepseek-v4.1-flash

3. Accessing the Service on Windows from WSL

WSL cannot directly access the port listened on by Windows via 127.0.0.1; the vEthernet address also changes. The repository provides a standalone script wb-bridge (not included in the npm package), which can be obtained within WSL as follows:

mkdir -p ~/scripts ~/.local/bin
curl -fsSL https://raw.githubusercontent.com/zk-wz/dsh-workbuddy-broadcast/main/scripts/wb-bridge \
  -o ~/scripts/wb-bridge
chmod 755 ~/scripts/wb-bridge
ln -sfn ~/scripts/wb-bridge ~/.local/bin/wb-bridge

After starting the forwarding, tools within WSL can still use http://127.0.0.1:18731/v1. Note that the port on the WSL side must match the Windows plugin’s port; if you change the plugin port, wb-bridge port <port> must also be updated accordingly.

Common commands: wb-bridge start / status / stop / log / help.

Configuration Options

Item Default Description
port 18731 Listening port
apiKey Empty (randomly generated) Bearer token; only persisted if filled in
allowLocal true Whether to additionally listen on 127.0.0.1 for local Windows tools

By default, it listens on 127.0.0.1 and the WSL vEthernet network card, not on 0.0.0.0. If only WSL-side access is needed, you can set allowLocal to false.

Use Cases and Notes

Suitable for: You are already logged into WorkBuddy locally and want Cursor, Claude Code, self-developed scripts, etc. to share the same account models with DSH, and your client supports OpenAI-compatible endpoints and SSE streaming.

Limitations and Compliance (excerpted from the project description):

  • Only serves one currently logged-in WorkBuddy account.
  • Depends on the public export of dsh-workbuddy-connect; if the upstream is incompatible, you need to wait for updates to this plugin.
  • For personal local use only: do not share the API Key, do not expose to the public internet; the consumed quota is your own WorkBuddy quota, and you must comply with the WorkBuddy terms of service.

The community plugin directory site’s entry on SkillHub has no official affiliation with DeepSeek / Huanfang; the DSH ecosystem philosophy is “everything is a plugin”, so install from the directory or npm as needed.

Links

  • Directory page: https://www.skillhub.cn/plugins/zk-wz/dsh-workbuddy-broadcast
  • Source code and documentation: https://github.com/zk-wz/dsh-workbuddy-broadcast

With the above steps, you can maintain a single WorkBuddy login while delivering model capabilities to other agent tools on your machine via a universal HTTP interface.

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

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

Xiaoye