Preface¶
Integrating third-party models into DeepSeek Harness (DSH) typically involves applying for a separate API Key and filling in the base URL and key in the configuration. If you already use the Xiaoyi Work desktop client daily on Windows, with conversation quota drawn from your Xiaoyi Work account, maintaining a separate set of Keys just for DSH often feels redundant.
Below is an introduction to the community plugin dsh-xiaoyiwork-connect (maintainer: moxiaoren, category: model inference): it registers the local OpenAI-compatible proxy bundled with the logged-in Xiaoyi Work desktop client into the model selector of DSH conversation windows, without needing to apply for a separate API Key — requests are forwarded through the local proxy and directly consume your Xiaoyi Work quota. The plugin’s current version is 0.2.0, licensed under MIT; the DSH community catalog entry is at SkillHub, and the source code and documentation are in the GitHub repository.
What Is This¶
dsh-xiaoyiwork-connect is a DSH LLM routing plugin (bundle id: llm-xiaoyiwork). Within the DSH process, it reads the proxy credentials saved by Xiaoyi Work on Windows (without writing plaintext files to disk), initiates conversations with the local proxy at 127.0.0.1:19693, and behaves identically to using cloud models inside the Xiaoyi Work App — quota counts toward your Xiaoyi Work account.
Platform restriction: Windows only. Credentials are stored in the registry, with the master key protected by DPAPI (CurrentUser); macOS / Linux are not supported.
What the Xiaoyi Work Local Proxy Does¶
According to the README (the author claims to have verified via reverse engineering and does not modify the Xiaoyi Work client), the desktop client listens on a local port while the App is running:
- Address:
127.0.0.1:19693(environment variableGAUSSPD_MODEL_PROXY_PORT) - Streaming path:
/celia/v1/sse-api/chat/completions(SSE) - Authentication: request header
Authorization: Bearer <proxyKey>orX-Api-Key
The proxy forwards requests from the Xiaoyi Work side to the Xiaoyi cloud model endpoint, so conversations initiated by DSH through this address go through the Xiaoyi Work billing/quota system.
How Credentials Enter DSH (Without Being Written to Disk)¶
An earlier approach wrote the decrypted proxyKey to a local plaintext file for the plugin to read; the current implementation has deprecated this approach. The reason: the DSH desktop and Xiaoyi Work belong to the same current Windows logged-in user, so DPAPI (CurrentUser) can be decrypted by processes under the same user — the plugin only needs to complete key retrieval within its own process.
Brief flow:
- Through a single PowerShell call: read the Chromium OSCrypt v10 envelope from the registry at
HKCU\Software\ClawDesktop\keychain\model-proxy, and restore the 32-byte AES master key fromos_crypt.encrypted_keyin%APPDATA%\xiaoyiwork\Local Statevia DPAPI (PowerShell 5.1 requiresAdd-Type -AssemblyName System.Securityfirst). - On the Node side, decrypt the envelope with
aes-256-gcmto obtain the JSON plaintext, and take fieldvas theproxyKey. - Hold it only in memory and inject it into request headers, without writing any disk files.
If Xiaoyi Work is not running or not logged in, the model group will be hidden when the key cannot be obtained, and the plugin retries approximately every 30 seconds; once Xiaoyi Work starts and logs in, the group will appear within about 30 seconds.
Manually specifying the key (optional, takes priority over registry reading):
apiKeyin the plugin config- Environment variable
DSH_XIAOYIWORK_PROXY_KEY
Neither depends on PowerShell reading the registry.
Routes Registered in DSH¶
The plugin registers the route xiaoyiwork via ctx.llm.registerAdapter and PiAiAdapter (same API as dsh-workbuddy-connect). The host log will show “Xiaoyi Work model proxy plugin loaded (llm-xiaoyiwork)” and “Registered Xiaoyi Work model proxy route ‘xiaoyiwork’”; when the key cannot be obtained, the log provides the specific reason for troubleshooting.
The model selector in the conversation window will show the “Xiaoyi Work Model Proxy” group; model names listed in the README carry the “· Xiaoyi Work” suffix, such as DeepSeek-V4-Flash, V4-Pro, GLM-5.3, MiniMax M3, Kimi K3, etc. (subject to actual availability in the App and cloud).
Installation and Activation¶
Environment requirements (from package.json):
dsh:>=2.0.0node:^22.19.0 || >=24.0.0
Search for dsh-xiaoyiwork-connect in the DSH desktop plugin marketplace to install, or run in the terminal:
dsh plugin add dsh-xiaoyiwork-connect
This command writes the dependency into the profile’s package.json, links the plugin into node_modules with pnpm, and adds it to bundles. After completion, restart the DSH desktop app.
You can also install from source:
dsh plugin add github:moxiaoren/dsh-xiaoyiwork-connect
Before installing, it is recommended to review the repository source code and MIT license yourself; the plugin runs with the permissions of the Windows user to which the current DSH process belongs and will read key materials from that user’s registry and AppData.
Typical Usage¶
- Keep the Xiaoyi Work App running and logged in on Windows (the proxy only listens on port 19693 when the App is running).
- Install and restart the DSH desktop, and confirm the plugin has loaded (check the host log).
- Open the DSH conversation window → select a specific model under the “Xiaoyi Work Model Proxy” group in the model selector → chat normally.
If Xiaoyi Work is not logged in at startup, the model group will be hidden; after logging in, wait about 30 seconds until the group appears.
Applicable Scenarios and Precautions¶
Who it’s for:
- Those who already use the Xiaoyi Work desktop on Windows and want to reuse the account quota within the same DSH conversation interface, without maintaining a separate API Key.
Be sure to know:
- Quota consumption is real: conversations via this route count toward your Xiaoyi Work account; pricing is subject to the official terms.
- Local only, same Windows user: DPAPI binds to the user context; unavailable when switching users or machines.
- Depends on the Xiaoyi Work process: when the App is not running, the local proxy does not listen, and the DSH side cannot use it.
- Does not modify Xiaoyi Work: the plugin only reads the registry, decrypts in memory, and forwards to the local proxy; it does not inject into or modify the App process.
- Community plugin: SkillHub is a DSH community directory site with no official affiliation with DeepSeek / Huanfang; please review the GitHub repository source code yourself before installing.
Conclusion¶
dsh-xiaoyiwork-connect connects DSH to the existing local model proxy of the Xiaoyi Work desktop client, completing authentication with zero configuration (or optionally via apiKey / DSH_XIAOYIWORK_PROXY_KEY) in the same-user Windows environment, and handling credentials within the process to avoid plaintext disk writes. If your primary environment is Windows + Xiaoyi Work and you want to uniformly select models for conversation in DSH, you can enable it via the installation command above and ensure the App runs persistently.
- Directory page: https://www.skillhub.cn/plugins/moxiaoren/dsh-xiaoyiwork-connect
- GitHub: https://github.com/moxiaoren/dsh-xiaoyiwork-connect