Introduction¶
DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, allowing developers to extend functionality through community plugins. Command Code is a model service for code generation and reasoning, and its native interface differs from DSH’s event model. While several plugins in the DSH ecosystem already bridge Command Code, most of them require running a local HTTP proxy. This plugin uses an adapter to directly convert Command Code’s native NDJSON generation stream into DSH’s event format, enabling DSH to call Command Code models without any proxy in between.
Plugin Overview¶
dsh-commandcode-subscription is an experimental DSH plugin for using Command Code Go models within DeepSeek Harness. It is maintained by developer LingBrian and is currently at version 0.1.14. The plugin manages Command Code API keys through DSH’s credential service and interfaces directly with the native NDJSON generation endpoint, eliminating the need for a local HTTP proxy.
Core Features¶
Model Chat¶
The plugin refreshes the model list from the public model catalog. If the initial query fails at startup, it retries in the background; when offline, a built-in placeholder model is displayed. The catalog’s model list does not reflect account permissions — actual availability depends on the authorizations granted to the Command Code account.
Model Settings¶
Once a Command Code model is selected, the gear popover on the right side of the input field provides model search, thinking-level options for verified models, and standard/express/ultra model variants available in the catalog. The selected thinking level is passed along with each generation request to Command Code. Speed is switched by selecting a distinct model ID from the Command Code catalog; the “Speed” option only appears when the current catalog lists multiple variants of the same series.
Streaming Output¶
The plugin converts the native NDJSON stream into DSH text, reasoning, tool-call, and tool-result events, with cancellation support.
Image Understanding¶
For models known to support images, DSH image attachments are enabled, and images within size constraints are converted into native request content. Each request image is capped at 1 MiB with a dimension budget of approximately 2048 × 2048 pixels, and the total encoded image payload per request is limited to 20 MiB. Whether a model is available still depends on the Command Code account’s permissions; the public catalog does not guarantee access.
Credentials & Multi-Account¶
Add multiple API keys, switch the active account, or log out from a dedicated Command Code Accounts page in DSH settings. Keys are stored in DSH’s host credential records; the existing COMMANDCODE_API_KEY is imported as an account on first launch. A single plugin configuration can store up to 10 accounts.
Usage Lookup¶
Open the usage dialog from plugin settings. When a Command Code model is selected, a 5h-quota mini bar appears on the right side of the input field; hovering over it reveals 5h, 1w, and 1m quotas with progress bars, refreshed every 30 seconds. Percentages are only calculated when the provider returns a quota ceiling.
Installation & Activation¶
Installing on DSH Web¶
On the Plugins → Add plugin page in DSH, choose one of the following sources and paste it into Package name or address:
- GitHub (repository source):
github:LingBrian/dsh-commandcode-subscription - npm (after publishing):
dsh-commandcode-subscription@0.1.14
Click Install and restart when prompted.
Installing on DSH Desktop¶
Open Plugins → Add plugin in the DSH Desktop app, paste either of the addresses above, and install. Restart the app when prompted.
Installing via CLI¶
If the CLI is already installed, you can explicitly install to the corresponding profile:
dsh plugin --profile desktop add github:LingBrian/dsh-commandcode-subscription
# or
dsh plugin --profile desktop add dsh-commandcode-subscription@0.1.14
For the Web profile of an existing CLI:
dsh plugin --profile web add dsh-commandcode-subscription@0.1.14
Configuring Credentials¶
Set COMMANDCODE_API_KEY in the DSH Credential Manager, or define the same-named variable in the process environment from which DSH is launched (the host credential service resolves environment fallback). Do not paste the key into plugin settings, chat messages, or any third-party website. No generation requests will be sent upstream if a key is absent.
Typical Usage¶
- Install the plugin and restart DSH.
- Configure the Command Code API key in the credential manager.
- Select a model from the
commandcode-goprovider in the model selector. - After selecting the model, click the gear on the right side of the input field to switch models, thinking level, and speed.
- For multi-account needs, add multiple API keys on the Command Code Accounts page in DSH settings.
- Open Command Code Usage in plugin settings to view remaining quota.
Use Cases & Caveats¶
This plugin is suited for developers who need to use Command Code models directly in DSH, wish to avoid a local proxy, or require multi-account management. The current version is 0.1.14, compatible with DeepSeek Harness 0.2.1-rc.5 or 0.2.2-rc.1.
The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installing. This is an experimental project that uses the undocumented /alpha/generate endpoint — both the API and CLI version requirements may change at any time. Please verify the terms of service, account authorizations, and actual billing.
Keep the following in mind:
- The zero-dollar cost in the model descriptor is merely a placeholder value required by pi-ai and does not imply the service is free. Refer to the provider’s actual billing.
- Runtime errors support a Chinese/English dictionary, but this plugin has no dedicated language toggle. When no valid locale is received, English is displayed; it does not guarantee automatic following of the DSH web interface language.
- OAuth, account management, multi-key rotation, and OpenAI/Anthropic-compatible proxies are not yet supported. No public model is guaranteed to be available.
- Testing has been performed with a mock upstream and the DSH adapter package; end-to-end acceptance with a real account or in a running DSH Web / Desktop interface has not yet been conducted.
Conclusion¶
This plugin bridges Command Code’s native interface directly via an adapter, offering DSH users a proxy-free approach to calling Command Code models. It supports model chat, settings, streaming output, image understanding, multi-account management, and usage lookup, making it well suited for developers who need to integrate Command Code models within DSH.
Project homepage: https://www.skillhub.cn/plugins/LingBrian/dsh-commandcode-subscription
GitHub: https://github.com/LingBrian/dsh-commandcode-subscription