DSH-CommandCode-Provider: Integrating Command Code into DSH with Studio API Key

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 commandcode provider into ctx.llm using the /alpha/generate streaming protocol.
  • Supports model catalog discovery and local offline caching.
  • Provides inference effort / reasoning_effort metadata.
  • 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-setkey commands.
  • 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

  1. Generate and copy an API key at commandcode.ai under Studio → API Keys.

  2. 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.

  1. If configuration is needed, edit $DSH_HOME/settings.yaml, where commandcode-provider supports optional fields such as apiKeyEnv, displayName, and baseURL:
commandcode-provider:
  apiKeyEnv: <credential-reference>
  displayName: <display-name>
  baseURL: <base-url>
  1. 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.yml line 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

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye