Preface¶
DeepSeek Harness (DSH) extends model and agent capabilities through plugins. The community catalog is an independent site and has no official affiliation with DeepSeek / High-Flyer. For developers who need to call Command Code within dsh, one limitation is that some Command Code plans do not provide Provider API access. dsh-commandcode-provider addresses this scenario: it uses the Studio authentication API key to call /alpha/generate and supports all Command Code plans, including the $1 Go plan.
What This Is¶
dsh-commandcode-provider is a Command Code custom LLM provider plugin for DeepSeek Harness (dsh), maintained by Victor-770 and licensed under MIT. It registers the commandcode provider into ctx.llm and connects to Command Code using the /alpha/generate streaming protocol.
It should be noted that this is an unofficial, community-maintained integration that is not associated with, endorsed by, or supported by Command Code. Users must have their own Command Code account, and Command Code’s terms, availability, and pricing apply.
Core Features¶
The following are the verified capabilities of this plugin:
- Registers the
commandcodeprovider intoctx.llmusing the/alpha/generatestreaming protocol. - Supports model catalog discovery and local offline caching.
- Provides inference effort /
reasoning_effortmetadata. - Accepts or rejects image input based on the catalog.
- Resolves API keys through the Harness credential seam, environment credentials, or an existing Command Code auth file.
- Provides
/commandcode-refresh,/commandcode-status, and/commandcode-setkeycommands. - Displays a model price list.
- Redacts error text and normalizes context overflow information.
Installation and Enablement¶
Use the following installation command, specifying the web profile:
dsh plugin --profile web add dsh-commandcode-provider@0.1.3
After installation, restart dsh. The provider will appear in the web UI.
Additionally, do not manually add a cordis.patch.yml line for this plugin to avoid duplicate provider registration.
Typical Usage¶
-
Generate and copy an API key at commandcode.ai under Studio → API Keys.
-
Run the following command in the dsh chat and paste the key when prompted:
/commandcode-setkey
You can also fill in the API key under Settings → Models → Command Code → Edit.
- If configuration is needed, edit
$DSH_HOME/settings.yaml, wherecommandcode-providersupports optional fields such asapiKeyEnv,displayName, andbaseURL:
commandcode-provider:
apiKeyEnv: <credential-reference>
displayName: <display-name>
baseURL: <base-url>
- The plugin also provides the following commands:
/commandcode-refresh
/commandcode-status
/commandcode-setkey
Applicable Scenarios and Notes¶
- Suitable for scenarios where you need to integrate Command Code into dsh and prefer using a Studio authentication API key instead of a Provider API key.
- The Studio API key used is an authentication credential, not a Provider API key; this plugin does not require Provider API access.
- Users must have their own Command Code account, and Command Code’s terms, availability, and pricing apply.
- This plugin is an unofficial, community-maintained integration that is not associated with, endorsed by, or supported by Command Code.
- The plugin runs with the permissions of the current dsh process; review the source code and license before installation. This plugin is licensed under MIT.
- Do not manually add a
cordis.patch.ymlline to avoid duplicate provider registration.
Conclusion¶
With the steps above, dsh-commandcode-provider can be used as an LLM provider in dsh, connecting to Command Code via the Studio authentication API key and /alpha/generate, covering all Command Code plans including the $1 Go plan.
Catalog page: https://www.skillhub.cn/plugins/Victor-770/dsh-commandcode-provider
GitHub: https://github.com/Victor-770/dsh-commandcode-provider