Preface

When integrating a third-party subscription gateway into DeepSeek Harness (dsh), the common approach involves manually writing vendor configurations, aligning model lists and protocol endpoints yourself, and modifying routing whenever plans change. Command Code offers tiers such as Go, GOAT, Pro, and Max, where models and capabilities are updated based on the account and gateway.

Below is an introduction to the community plugin Command Code for DSH | Subscription Access (repository Plocr/dsh-commandcode, configuration identifier remains dsh-commandcode-goat). It connects Command Code subscriptions to dsh, merges the gateway model list with the plan capability catalog, and writes to the official llm-pi-ai provider. Streaming, tool calls, images, and history replay are handled by dsh’s built-in adapters. The maintainer is Plocr, categorized as a web tool, licensed under MIT, with the current package version 0.8.0 (see GitHub Releases and package.json).

What is this

In short: Using a single Command Code API Key, you can sync models within your tier inside dsh, manage inference presets and usage alerts, and optionally use the web search provided by the account.

The plugin supports all four plans (go / goat / pro / max). The display name is “Command Code for DSH | Subscription Access”; it has been included in dsh-market and can also be installed via the community plugin index (see below).

Core Features

The capability table in the README can be summarized into the following categories, all operable in the plugin configuration page under “Overview / Models / Usage & Alerts / Settings”.

Models and Routing

  • Model Sync: Merges https://api.commandcode.ai/provider/v1/models with the plan capability catalog, filters based on the selected tier, and generates providers.
  • Protocol Routing: Selects OpenAI Chat, Anthropic Messages, or OpenAI Responses based on the endpoints supported by the model; multiple providers appearing for the same plan (e.g., Command | <Tier>, Command | <Tier> · Claude) is normal.
  • Sync Preview Support: Starting from 0.8.0, a sync preview is supported: it displays additions, removals, and capability changes before confirmation; you can favorite or hide models, enable “Sync Favorites Only”, and set window, output limits, and inference presets for individual models.

Account and Alerts

  • Account Usage: Displays account, organization, active subscription, 5-hour and weekly windows, balance, as well as request and token summaries.
  • Quota Alerts: Optional background check of usage windows and balance every minute, logging notifications when thresholds are crossed.
  • Default Registration Tool: commandcode_usage is registered for the model to read account usage (enableUsageTool is enabled by default).

Diagnostics and Operations

  • Invocation Diagnostics: Tests connection, streaming, or tool calls separately for published models; each active diagnosis sends 1 real model request, which may count towards account usage.
  • Configuration Migration: JSON export, merge or replace import; written after validation and preview; credentials, interfaces, and request headers are not included in the export.
  • Long Sessions: Attempts pruning under high context pressure; for specific gateway rejections, retries can be combined with options like recoverUpstreamOverflow (no guarantee of never exceeding limits).

Web Search

  • Optional Enablement: web_search provided by the Command Code account (webSearch defaults to false). When disabled or uninstalled, if the search selection is still held by this plugin, the previous provider will be restored.

Installation and Activation

The plugin runs with the permissions of the current dsh process. Before installation, it is recommended to review the GitHub repository source code and the MIT license. Node.js 20 or newer is required (see engines in package.json).

Method 1: Plugin Panel

Paste the following in dsh “Plugins → Add Plugin”:

github:Plocr/dsh-commandcode

Method 2: Release Package

https://github.com/Plocr/dsh-commandcode/releases/latest/download/dsh-commandcode-goat.tgz

Method 3: Command Line (Example for Web profile)

dsh plugin --profile web add github:Plocr/dsh-commandcode

Desktop users should prioritize the plugin panel; for command-line installation, use the actual desktop profile and DSH_HOME to avoid installing into a different configuration.

dsh 0.2.1 allows searching and installing after adding a community index in “Plugins → Discover → Index Source” (Market Description):

https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json

Restart according to host prompts after installation. autoSync defaults to true; after loading, wait about ten seconds, and the provider will appear in “Settings → Models”. If it does not appear, confirm it is installed in the current profile, the official llm-pi-ai is loaded, and check for errors (e.g., fetch-failed, provider-plugin-missing) in the plugin configuration page.

Typical Usage

1. Select Plan and Sync

Open the “Plugins → Installed → dsh-commandcode-goat” configuration page, select Go, GOAT, Pro, or Max matching your account, and click “Create / Update”. The default plan is GOAT; after reading the subscription, it will prompt for tier differences but will not automatically switch. To require full manual confirmation, disable auto-sync.

2. Configure API Key and Select Model

Find the generated Command | <Tier> providers in “Settings → Models”, fill in the Command Code API Key and save, then select the model in the session.

You can also set environment variables before starting dsh (README example is PowerShell):

$env:COMMANDCODE_API_KEY = 'Your Command Code API Key'
dsh web

Chat, account usage, and optional search share this credential by default; other credential reference names can be modified via targetApiKeyEnv (default COMMANDCODE_API_KEY).

3. Common Configuration Items (Selection)

For full fields, see the repository Configuration Definition.

Config Default Description
plan goat go / goat / pro / max
autoSync true Automatically create and refresh models periodically after startup
autoSyncIntervalMs 21600000 Sync interval (milliseconds), minimum 60 seconds
webSearch false Use Command Code web search
onlyFavorites false Only publish favorited and unhidden models
pruneOtherPlans true Clean up routing generated by old tiers after manual sync

Background sync refreshes every 6 hours by default and does not delete old tier routing; if old providers remain after switching plans, perform a manual sync or use the cleanup action on the configuration page.

Use Cases and Notes

Who is it for

  • Users with Command Code Go / GOAT / Pro / Max subscriptions who want to unify model selection and view usage within dsh instead of manually writing multiple providers.
  • Users who need to filter by model favorites, inference presets, or wish to receive alerts when usage approaches thresholds.
  • Users who want to optionally integrate Command Code’s web_search in dsh and share the API Key with existing sessions.

Version and Host

The README states: The acceptance baseline for 0.8.0 is dsh 0.2.1-rc.2; dsh 0.1.6 users should continue using plugin 0.4.8. Real paid model calls and long session effects are noted in the documentation as not yet fully accepted. Issues like Claude routing 404 require v0.7.9 or above and a re-sync.

Security and Cleanup

Disabling or uninstalling the plugin cleans up generated providers and backs up *.commandcode-goat-backup.json next to the profile configuration; backups may contain custom request headers and must be kept secure. Usage and search requests use credentials on the host side; the configuration card does not accept key content.

Model count, prices, and account quotas are subject to sync results, account usage, and the official Command Code plan page. The plugin does not guarantee that every gateway behavior is fully consistent with the documentation.

Conclusion

Command Code for DSH | Subscription Access connects the four Command Code subscription tiers to DeepSeek Harness: automatically syncing models, generating providers by protocol, and covering usage alerts, diagnostics, configuration migration, and optional web search. Installation and feedback are subject to the repository README.