Introduction¶
When integrating third-party models into DeepSeek Harness (DSH), the common approach involves configuring a separate API Key, using OAuth, or maintaining a set of credentials unrelated to the desktop client. If you are already logged into the Qoder CN desktop app on your local machine, a more convenient path is to directly reuse the local login state saved by the client. This allows an independent “Qoder” group to appear in the DSH model selector without requiring a separate authorization flow.
Below is an introduction to the community plugin dsh-qoder-connect (maintained by marsma-101), which targets the “model inference” scenario: it decrypts the Chromium OSCrypt local credentials of the Qoder CN client, signs requests using the COSY scheme, and registers the qoder model group with DSH. The current version of the plugin is 0.1.0, licensed under MIT; the GitHub star count is 0 (based on public repository information).
What is this¶
dsh-qoder-connect is a bridge plugin connecting the “Desktop App → DSH”: it reads the Qoder CN data directory under %APPDATA%, extracts the token from auth.v1.dat, communicates with the upstream via the agent_chat_generation SSE endpoint at gateway.qoder.com.cn, and integrates the models into DSH through a loopback OpenAI-compatible entry and ctx.llm.registerAdapter. The entire process is zero-interaction, and the README explicitly states No OAuth interaction needed.
The signing implementation is ported from the public scheme of the MIT-licensed qoder2api project. The project declares that it is for personal learning and research only and is not affiliated with Qoder, Alibaba Cloud, or DeepSeek. Please read the repository disclaimer and terms of service yourself before use.
Core Features¶
Zero-Interaction Login & Credential Following¶
The plugin automatically scans all com.qodercn.app.* data directories under %APPDATA% (stable, beta, dev channels, etc.). For each candidate, it uses Chromium OSCrypt (DPAPI-protected AES-256-GCM) to decrypt auth.v1.dat:
- First Run: It exports keys for each channel to
<DSH_HOME>\.qoder-connect\oscrypt-<channel>.key(e.g.,oscrypt-stable.key) via PowerShell in one go. The legacy single-fileoscrypt.keyis copied as the stable cache, and the original file is retained. - Subsequent Runs: Decryption is performed locally by Node. If multiple directories contain credentials, stable takes precedence, followed by others based on the directory’s modification time (mtime).
- Refresh: If decryption fails, the cache is invalidated and re-exported once. After the desktop app refreshes the token, the plugin follows the file mtime, and the signed session is automatically rebuilt after token rotation.
If no credentials can be decrypted, the error message will prompt: first ensure the Qoder desktop program has been started and logged into (the program must remain running during the scanning of the model list and paths), and complete a login in Qoder on first use.
Explicit Data Directory Specification¶
You can set the dataDir field in the settings card or the QODER_DATA_DIR environment variable to directly specify the Qoder data directory, or even point directly to the auth.v1.dat file. Explicit paths take precedence over automatic scanning; if the explicit path fails to decrypt, it automatically falls back to scanning.
Dynamic Model Catalog & Labeling¶
The plugin fully fetches the upstream model catalog (assistant group, unfiltered) and refreshes it approximately every 10 minutes. Model names are annotated with credit multipliers in a WorkBuddy style (e.g., · x0.5, with free models marked as · Free). Upstream enable status is linked to account balance and does not represent the model’s inherent availability, so models will not be hidden based on this.
Tool Calls & Reasoning¶
tool_callsreturned by the upstream are merged into the OpenAI-compatible response as-is (supporting both streaming deltas and non-streaming messages).- The pass-through of reasoning intensity (thinking strength) is determined by the model’s
is_reasoningflag.
How It Works (Overview)¶
- Credentials: Scan candidate directories → decrypt
auth.v1.dat(v10+ nonce + cipher + tag) using cached keys for each channel → obtain a validdt-token for subsequent requests. - COSY Signing: Device fingerprint derivation → RSA(PKCS1) encryption of a temporary key → AES-CBC encryption of the identity payload → MD5 signature over payload, key, date, body, path, etc.; the request body is encoded using a custom alphabet base64 variant.
- Protocol Translation: Chatting uses SSE; upstream frames are
{headers, body, statusCodeValue}envelopes, compatible with bodies being strings, objects, or the literal"null". User messages are reconstructed using acontentsarray; thedeveloperrole is collapsed intosystem. - Registration: A local OpenAI-compatible gateway + registration of the
qoderprovider within DSH, causing the Qoder group to appear in the model selector.
Installation & Enablement¶
The retrieved materials and the GitHub README do not provide a fixed one-line installation command like dsh plugin add …; please do not attempt to construct one based on the repository name. It is recommended to find and install this plugin in SkillHub, a community directory within the DSH ecosystem:
- Directory Page: https://www.skillhub.cn/plugins/marsma-101/dsh-qoder-connect
- Source Code & Instructions: https://github.com/marsma-101/dsh-qoder-connect
package.json declares that the plugin integrates with DSH via a bundle patch called cordis.patch.yml (dsh.bundle.patch points to this file). Before installing, please review the repository source code and the MIT license to confirm you are willing to run the decryption and signing logic with current DSH process privileges on your local machine (which involves accessing the desktop client’s local login data).
Typical Usage (Reproducible Prerequisites)¶
The following steps are derived from the usage prerequisites described in the README, not fictional scenarios:
- Install and start the Qoder CN desktop program on your local machine and complete at least one login (if switching computers or channels, the client for that channel must also be logged into once on this machine, otherwise keys cannot be exported).
- Install and enable dsh-qoder-connect in DSH (refer to the SkillHub directory page for the installation entry point).
- Keep the Qoder desktop program running, especially during the plugin’s initial scan for the model list and paths.
- In the DSH model selector, choose a model under the Qoder group to start a conversation; if automatic scanning fails to find data, you can fill in
dataDirin the plugin settings or set theQODER_DATA_DIRenvironment variable to point to the data directory orauth.v1.dat.
The plugin is invoked via the OpenAI-compatible interface exposed by DSH. The specific conversation method is consistent with other registered providers on the same machine, requiring no additional OAuth pages.
Applicable Scenarios & Notes¶
Who it is for: Developers who are already using the Qoder CN desktop version and wish to directly select Qoder model catalogs (including tool calls and certain reasoning models) within the unified orchestration of DSH; research-oriented users who accept that it “relies on private client interfaces and requires maintenance alongside upstream changes.”
Environment & Limitations (Known limitations from README):
- Only supports the China (CN) version.
- The request body is based on the captured template
baseprompt.json; the plugin needs updates if the upstream structure changes. - Relies on private Qoder client interfaces; adjustments may be needed after major client updates.
Security & Compliance:
- The plugin decrypts local Qoder login credentials and signs requests on your behalf. You must review the GitHub source code before installing; it is only recommended to drive your own Qoder account on your local machine.
- The disclaimer points out that consequences such as account restrictions, quota clearing, or service interruptions resulting from use are borne by the user; please do not use it for commercial purposes.
Conclusion¶
dsh-qoder-connect transforms “being logged into the Qoder desktop version” into an out-of-the-box Qoder model group in DSH: local OSCrypt decryption, COSY signing, dynamic model lists, and tool_calls pass-through, avoiding repetitive OAuth. The DeepSeek Harness community adopts an “everything is a plugin” extension approach; SkillHub is an independent community site and has no official affiliation with DeepSeek / High-Flyer.