Introduction

The plugin system of DSH allows external model services to be integrated into the harness. For Command Code users, there is a specific limitation: in Go / GOAT / Pro Plan scenarios, the Provider API endpoint returns 403 upgrade_required, and model calls need to go through /alpha/generate.

jiesou/dsh-commandcode-go-provider solves this problem. Below is an introduction to its positioning, installation method, configuration options, and precautions.

What is this

This is a DSH plugin maintained by jiesou under the MIT license, positioned as a Command Code Go API provider for dsh.

It targets Command Code Go / GOAT / Pro Plan scenarios, streaming into DSH’s native LlmAdapter via /alpha/generate, allowing Go / GOAT / Pro Plan users to directly use subscription models within DSH.

Core Features

Streaming Access to the Command Code Gateway

The plugin streams into DSH’s native LlmAdapter via /alpha/generate. It applies to Go / GOAT / Pro Plan scenarios where the Provider API endpoint returns 403 upgrade_required.

Dynamic Model Directory

The model list is not hardcoded in the code. When the plugin starts, it pulls a real-time model directory from /provider/v1/models and filters it based on the Min plan column in the official CLI catalog, keeping only models with Go and above.

The plan order is Go < GOAT < Pro < Max. If the upstream is unreachable during mounting, the directory is temporarily empty, which won’t crash the plugin.

Reasoning Effort

Reasoning Effort levels come from the official CLI catalog, and the plugin dynamically merges these levels.

Default means the reasoning_effort field is not sent. Off has the same wire format as Default, but explicitly declares the intent not to reason.

Installation and Enablement

Install from npm

The following command installs the plugin from npm:

dsh plugin --profile web add @jiesou/dsh-commandcode-go-provider

Install from GitHub

You can also install it from GitHub:

dsh plugin --profile web add github:jiesou/dsh-commandcode-go-provider

Configure API Key

The API Key is read via the COMMANDCODE_API_KEY environment variable name or credential ref. You can write the Key into ~/.dsh/.credentials.yaml:

echo 'COMMANDCODE_API_KEY: [your key, be like user_xxxx]' >> ~/.dsh/.credentials.yaml

No extra configuration is needed for the model list. After installation, select the Command Code Go provider and the model on the Models page in the Web interface to start a conversation.

Optional Configuration

The following configuration items are all optional and work by default:

- id: commandcode-go-provider
  name: '@jiesou/dsh-commandcode-go-provider'
  config:
    apiKeyEnv: COMMANDCODE_API_KEY
    baseURL: https://api.commandcode.ai
    maxTokens: 64000
    defaultContextWindow: 1000000
Configuration Type Default Description
apiKeyEnv string COMMANDCODE_API_KEY Environment variable name or credential ref to read the API Key
baseURL string https://api.commandcode.ai Base URL for the Command Code gateway; /alpha/generate is appended automatically
maxTokens number 64000 Upper limit of output tokens for a single request
defaultContextWindow number 1000000 Fallback value when the model does not have an exact contextWindow

Suitable Scenarios and Precautions

Suitable for the following scenarios:

  • Your Command Code account is on Go / GOAT / Pro Plan and the Provider API endpoint returns 403 upgrade_required.
  • You want to integrate /alpha/generate via a plugin in DSH instead of hardcoding the model list in the code.
  • You need to install from npm or GitHub and adjust apiKeyEnv, baseURL, maxTokens, or defaultContextWindow as needed.

Precautions before use:

  • The plugin runs with the permissions of the current dsh process; check the source code and license before installing.
  • This plugin is licensed under the MIT license.
  • The model directory depends on /provider/v1/models and the official CLI catalog; if the upstream is unreachable, the directory may be temporarily empty.

Conclusion

The value of jiesou/dsh-commandcode-go-provider is integrating the /alpha/generate gateway for Command Code Go / GOAT / Pro Plans into DSH’s LlmAdapter, while keeping the model directory and Reasoning Effort levels dynamically retrievable.