Foreword¶
Developing agents within DeepSeek Harness (DSH) typically involves connecting to models through provider plugins. If you have a Command Code account or subscription and wish to use its online model catalog directly within DSH’s model selector instead of maintaining a separate API wrapper, an official provider route is needed.
dsh-commandcode-provider, developed by community maintainer Mars-Sea, registers Command Code as the commandcode provider in DSH, offering a settings page, usage card, and model selector annotations. The project is ported from pi-commandcode-provider (MIT), currently has approximately 87 stars and 5 forks on GitHub, an npm package version of 0.8.1, and is licensed under MIT.
What This Is¶
@mars-sea/dsh-commandcode-provider is an unofficial DeepSeek Harness LLM provider plugin for the Command Code platform. After installation via dsh plugin add, it writes to the profile, registers the commandcode route, and displays a Command Code card in the Settings → Models page.
The plugin only communicates between your local DSH profile and your Command Code account: it reads and writes credential storage and model caches locally, and only calls the Command Code API over the network, sending no telemetry data. You must provide your own Command Code account and API key or subscription, and comply with Command Code’s terms of service; this project has no affiliation with Command Code, Inc.
Core Features¶
Below are the main capabilities listed in the README.
Provider and Model Catalog¶
- After installation, it registers the
commandcodeprovider route, with the model catalog fetched in real-time from the Command Code API. - The model selector annotates minimum plan, active promotions or
FREEbadges, peak/off-peak status, image input support, and context window; free models are listed by default. - Supports reasoning-effort: for models with optional reasoning intensity, corresponding tiers are exposed in the selector.
- Plan-awareness: models above the current subscription tier are hidden by default, adjustable via the “Hide out-of-plan models” toggle in settings.
Settings Page and Credentials¶
Settings → Command Code provides:
- API key configuration and connection options;
- Real-time Account usage card;
- Browser-based login: Clicking Sign in to Command Code initiates the same official authorization flow as
cmd login. Upon approval, the key is automatically written to the local credential service; you can also manually paste the key or set it via the environment variableCOMMANDCODE_API_KEY.
In remote Host scenarios, browser login requires the Host and browser to be on the same machine (loopback callback); for remote deployments, please manually paste the key. If the composition layer sets a literal apiKey, it takes precedence over the logged-in credentials.
Multi-Account Rotation¶
After configuring multiple Command Code subscriptions, when one account reaches its usage limit, requests automatically switch to the next account:
- Add labeled accounts in the Account rotation card under Settings → Command Code; the top-level key is always used first as the
defaultaccount. - The Active account dropdown can pin a preferred account; if that account is exhausted, it falls back to other accounts and resets after the window resets.
- The
/commandcodecommand and Account usage card can view the status of each account.
Image Input¶
Supports image input for Vision models; pure text models will reject requests containing images. If you switch to a pure text model during a session containing images, DSH will reject the operation. You need to select a model labeled Image or remove the images first.
Other Notes¶
- The model catalog can be browsed without a key; actual conversation requests require an API key.
stopsequences are not supported; requests containing stop will fail.- Reasoning blocks are not replayed in subsequent turns; only tool calls paired with tool results will be replayed.
Installation and Enablement¶
Install the latest version in the web profile:
dsh plugin --profile web add @mars-sea/dsh-commandcode-provider@latest
Update the plugin:
dsh plugin --profile web update @mars-sea/dsh-commandcode-provider@latest
After installation or update, restart the web application.
Uninstall:
dsh plugin --profile web remove @mars-sea/dsh-commandcode-provider
Uninstalling does not delete the dsh credential store or keys in ~/.commandcode/auth.json.
Typical Usage¶
Obtaining an API Key¶
Recommended via the official CLI (requires Node.js 22+):
npm i -g command-code@latest
cmd login # macOS/Linux; on native Windows, use cmdc login
You can also click Sign in to Command Code in the DSH settings page, or create a key on the Keys settings page and paste it, or run:
export COMMANDCODE_API_KEY="user_..."
Verifying Installation¶
After restarting, fill in and save the API key in Settings → Command Code. Settings → Models should display the Command Code card, and the model selector should list the real-time catalog under commandcode. Send a message with a model included in your plan to verify.
Viewing Usage¶
The plugin registers the /commandcode slash command:
/commandcode # or /commandcode status
Configuration File¶
Equivalent configuration can be written to $DSH_HOME/settings.yaml (applies immediately after modification, no restart needed):
llm-commandcode:
apiKeyEnv: COMMANDCODE_API_KEY # credential reference
apiBase: https://api.commandcode.ai
workingDir: /path/to/project # optional
modelsCachePath: ~/.commandcode/models-cache.json
requestTimeoutMs: 60000 # default 60s
streamIdleTimeoutMs: 300000 # default 300s
YAML example for multi-account rotation:
llm-commandcode:
apiKeyEnv: COMMANDCODE_API_KEY # first (default) account
activeAccount: COMMANDCODE_API_KEY_2 # optional: pin the active account
accounts:
- label: Go #2
apiKeyEnv: COMMANDCODE_API_KEY_2
- label: Go #3
apiKeyEnv: COMMANDCODE_API_KEY_3
Disabling Without Uninstalling¶
Edit the profile’s cordis.patch.yml, comment out or remove the llm-commandcode line, or set disabled: true, then restart.
Suitable Scenarios and Notes¶
Who is this for:
- Those with an existing Command Code account or subscription who want to use its model catalog and reasoning intensity options directly in the DSH web profile;
- Those needing automatic multi-account rotation to handle single-account usage limits;
- Those who prefer to complete authorization and view usage within the DSH settings page rather than maintaining a separate API client.
Pre-installation notes:
- The plugin runs with the permissions of the current dsh process. Before installation, review the GitHub source code and the MIT license.
- This is a community integration, not official from Command Code or DeepSeek; the DSH ecosystem follows an “everything is a plugin” philosophy, with community directories like SkillHub being independent sites, with no official affiliation to DeepSeek / High-Flyer.
- Development environment requires Node.js >= 22 (see the
enginesfield in package.json).
Links¶
- SkillHub directory page: https://www.skillhub.cn/plugins/Mars-Sea/dsh-commandcode-provider
- GitHub repository: https://github.com/Mars-Sea/dsh-commandcode-provider
- npm package: https://www.npmjs.com/package/@mars-sea/dsh-commandcode-provider
If you have completed subscription configuration on the Command Code side, after the above installation and key setup steps, you can select models from Command Code’s online catalog in the DSH model selector according to your plan.