Preface¶
When building agents or having daily conversations in DeepSeek Harness (DSH), model sources are typically cloud API keys or self-hosted reverse proxies. If you have already installed Qoder locally and completed the login via qoderclicn login, the model capabilities reside within the CLI but may not appear directly in DSH’s model selector. Setting up an additional HTTP reverse proxy layer yourself, while handling authentication and protocol alignment, involves a non-trivial cost.
Below is an introduction to the community plugin DSH Qoder Connect (Repository: chilianxiao/dsh-qoder-connect). It does not initiate a separate OAuth flow, nor does it forward requests to an upstream HTTP server. Instead, it wraps the local qoderclicn login state into an OpenAI-compatible Provider, allowing Qoder models to appear in DSH under the “Qoder” group. The plugin is published by the maintainer chilianxiao and categorized under “Model Inference” in the SkillHub directory. The core reverse proxy logic is ported from adapters/qoder.js of 1416277987/proxy-hub, and the plugin structure references corrinehu/dsh-workbuddy-connect (MIT).
What is this¶
In one sentence: It reuses the local Qoder CLI’s login credentials and invocation paths to use Qoder models via a standard chat completion interface in DSH, requiring zero additional OAuth configuration.
The locally logged-in CLI serves as the “upstream”; the plugin is responsible for detecting the login state, fetching the model list, translating DSH requests into qoderclicn subprocess calls, and providing a settings card and model selector integration on the Web interface.
Core Features¶
Login State & CLI Resolution¶
- Reuses credentials stored by
qoderclicn login, eliminating the need for a separate login flow in the plugin. - Automatically identifies multiple login state paths:
~/.qoderworkcn/.auth-cn/user,~/.qoder-cn/.auth/user,~/.qoder/.auth/user; also supports the environment variableQODERCN_PERSONAL_ACCESS_TOKEN. - If the CLI is not in the PATH, it resolves via PATH → default installation directories (e.g.,
~/.qoder-cn/bin/qoderclicn,~/.qoder/bin/qodercli); on Windows,.cmdshims are launched via shell.
Model List & Grouping¶
- Executes
qoderclicn --list-modelsonce at startup; subsequently, the list is only refreshed when clicking “Fetch Models” in the settings card. New Qoder models generally appear in the selector without requiring a plugin update. - If the fetch fails, the last successful result (already persisted) is retained, preventing the entire group from disappearing; the settings card indicates whether the list is from the CLI, the last save, or a built-in fallback.
- The “Qoder” group is hidden if the CLI is not installed or not logged in; it appears without restarting DSH once logged in.
- The model ID within DSH is
qoder-+ the CLI name in lowercase; display names follow the CLI spelling.
Reasoning Levels & Official Catalog¶
- The model selector supports displaying reasoning levels (e.g., low / medium / high / xhigh / max) for models, mapping per-request to the CLI’s
--reasoning-effort; each model only displays valid levels declared by the official catalog. - The plugin reads the encrypted model catalog (QMC v1) cached by the official Qoder client. After decryption, it is used to display
price_factor, off-peak promotions, per-model reasoning levels, and context window declarations—without relying on local empirical reverse-engineering of coefficients. - The settings card allows configuration of global reasoning level, thinking mode, and thinking budget; the level selected for a single request in the selector overrides the global settings. The global reasoning level can be filled with values not present in the selector (e.g.,
auto,ultracode), which are sent as-is without per-model validation; if the model does not support it, it silently falls back to the default level.
Images, Context & Model Switches¶
- Models marked with
is_vlin the official catalog declare image capabilities in the selector; images are passed to the CLI as data URLs via--attachment, without initiating remote image HTTP requests. - “Use upstream declared max window” switch: When enabled, requests the maximum context according to the catalog declaration; when disabled, uses the official client default (usually 200K).
- The settings card allows toggling individual models, combined with search and “Enable All / Disable All”.
Streaming, Timeouts & Usage Ledger¶
- Supports
/v1/chat/completionsstreaming and non-streaming; client disconnection or timeout (default 600s, adjustable viaQODER_TIMEOUT_MS) terminates the CLI subprocess. - After the conversation ends, it attempts to write the CLI-reported
total_creditsto$DSH_HOME/qoder-credits/ledger.jsonl, which can be viewed as a trend via thedsh-qoder-creditsfloating window; ledger write failures do not affect the conversation itself.
Installation & Activation¶
Prerequisites: Qoder is installed locally, and qoderclicn login has been executed at least once (or QODERCN_PERSONAL_ACCESS_TOKEN is configured).
Install from GitHub (Recommended in README):
dsh plugin --profile web add github:chilianxiao/dsh-qoder-connect
dsh web
After installation, you need to add dsh-qoder-connect to the dsh.profile.bundles list in the corresponding profile’s package.json (as dsh plugin add only handles the pnpm package installation, bundles must be maintained manually), then start or restart the Web interface.
Version Notes: The plugin is written according to DSH interfaces starting from 0.1.6-alpha.2; the settings card relies on the settings API available from DSH 0.1.7, so on 0.1.6, the card may not save correctly. The current plugin version is 0.2.1 (see repository package.json).
Note: There is another package named dsh-qoder-connect on npm by author masknull with a different implementation; please use the GitHub installation method described above for this plugin and do not replace it with npm add dsh-qoder-connect.
Typical Usage¶
- After completing Qoder CLI login, install and enable the bundle as described in the previous section, then start
dsh web. - Open Settings → Plugins → Qoder card, verify the CLI path, login method, login state file, and model list; if not ready, follow the card prompts to fix issues.
- Select a model under the “Qoder” group in the model selector; set reasoning levels, attached images, or adjust global reasoning/thinking parameters in that card if needed.
- If the official client has updated the model catalog, click “Fetch Models” in the card to sync the list and coefficient displays.
Common environment variables and settings (see README for the full table):
| Configuration | Default | Description |
|---|---|---|
QODERCN_CLI |
qoderclicn |
CLI command name or full path |
QODERCN_PERSONAL_ACCESS_TOKEN |
Empty | Used when there is no persisted login state |
QODER_TIMEOUT_MS |
600000 |
Total timeout for a single CLI request (ms) |
DSH_QODER_POLL_MS |
30000 |
Polling interval for ready status (testing/troubleshooting) |
Applicable Scenarios & Notes¶
Who it is for: Users who already use a Qoder CLI subscription or quota locally, wish to uniformly select models, adjust reasoning levels, chat with images, and record total_credits ledgers within the DSH Web interface.
Runtime Permissions: The plugin runs with the current DSH process and will launch local qoderclicn subprocesses and read login states and official model caches under the user directory. Please review the Repository Source Code and the MIT license yourself before installation to ensure compliance with your security and compliance requirements.
Ecosystem Note: DSH adopts an “Everything is a plugin” extension approach; the SkillHub Plugin Directory is a community site and has no official affiliation with DeepSeek or Huanfang.
Conclusion¶
DSH Qoder Connect connects the “locally logged-in Qoder CLI” directly to DSH’s model Provider layer: no extra OAuth, the model list follows the CLI, and reasoning levels and price coefficients follow the official catalog. If you are orchestrating agents in DSH and wish to reuse your existing Qoder account, you can obtain the plugin from the directory page and GitHub and install it according to the README.
- Directory Page: https://www.skillhub.cn/plugins/chilianxiao/dsh-qoder-connect
- GitHub: https://github.com/chilianxiao/dsh-qoder-connect