Introduction¶
DeepSeek Harness (DSH) is an agent development environment with a plugin-centric architecture. The dsh-qoder-connect plugin aims to solve the issue where Qoder CN (Alibaba’s domestic desktop version of Qoder) subscription models cannot be directly invoked within DSH. This solution reads PAT credentials to bypass the desktop App’s encrypted credentials, integrating Qoder models into DSH via an OpenAI-compatible interface. It is a solution designed for personal use.
Core Features¶
The plugin implements the following features to adapt to Qoder CN’s private protocols:
- OpenAI Compatible Interface: Exposes Qoder CN models in standard OpenAI format within DSH.
- Provider Registration: Registers the
llm-qoderprovider ID with the channel nameqoder1. - Credential Flow: Reads PAT and exchanges it for a short-term
jobToken. - Protocol Adaptation: Implements Qoder’s proprietary COSY signature, custom request body encoding, and dual-layer SSE parsing.
Installation and Activation¶
Before use, you must generate a PAT on the Qoder CN official website and complete the configuration.
- Generate PAT: Log in to https://qoder.com.cn/account/integrations to generate a PAT.
- Configure Credentials: Write the PAT to the
$DSH_HOME/qoder/patfile (permissions 0600), or set environment variables (Priority:QODERCN_PAT>QODERCN_PERSONAL_ACCESS_TOKEN>QODERCN_API_KEY). - Execute Installation: Install the plugin using the following command (choose the profile based on your DSH version).
dsh plugin --profile web add github:yembors64632/dsh-qoder-connect
After installation, the plugin registers the llm-qoder provider without altering the profile’s current default model.
Usage¶
Once installed and configured, Qoder models can be used within DSH.
- Select the channel name
qoder1in DSH’s model selector. - The plugin will automatically read the PAT and obtain a
jobTokenfor the conversation.
Note: This plugin reads the PAT generated by the original author, which is only valid for the original author’s account. To run it in your own environment, you must modify the hardcoded paths, endpoints, and identity fields according to the README instructions.
Scenarios and Precautions¶
- Version Compatibility: The DSH core version must match the
0.1.5/0.1.6/0.1.7alpha line, otherwise startup will fail. Requires Node.js^22.19.0 || >=24.0.0. - Credential Maintenance: PATs do not auto-renew upon expiration and must be manually regenerated.
- Scope of Use: For personal learning and research only; compliance with Qoder’s Terms of Service is required. The upstream protocol is a proprietary implementation and is subject to potential invalidation.
Conclusion¶
This plugin provides a viable path for accessing Qoder CN subscription models within DSH. Refer to the links below for the relevant directories and source code.
- Plugin Directory: https://www.skillhub.cn/plugins/yembors64632/dsh-qoder-connect
- GitHub Repository: https://github.com/yembors64632/dsh-qoder-connect