jiesou/dsh-commandcode-go-provider

适用于 dsh 的 Command Code Go API 提供商。Command Code 订阅 + DeepSeek Harness 兼容层

Project Overview项目介绍

This repository is a DSH-native plugin built exclusively to integrate Command Code's Go/GOAT/Pro Plan subscription models with DeepSeek Harness. It works around Command Code's vendor lock-in for non-OpenAI compatible Go plans by connecting DSH's native LlmAdapter to Command Code's private /alpha/generate streaming endpoint. On launch, the plugin automatically fetches an up-to-date model list from Command Code's /provider/v1/models API, then filters eligible models allowed for the user's current subscription tier based on the official CLI catalog hosted on Command Code's CDN. It can be installed via the DSH CLI with a single one-line command, either from npm pre-built packages or directly from the GitHub repository.

This plugin is targeted at developers who already maintain an active Command Code Go or higher subscription, and prefer to use DSH as their primary agent interface for managing multiple LLM providers. After installation, users only need to add their Command Code API key to the .credentials.yaml file in DSH's configuration directory. No manual model list configuration is required, and once the API key is added, users can immediately select the synced Command Code models from DSH's Web UI model selection page and start chatting right away without any extra setup.

The plugin is compatible with DSH versions from 0.1.2-alpha.3 up to but not including 0.2.0, and requires Node.js version 22.19.0 or higher to work correctly. It supports both DSH's web and headless profiles, and has been tested across multiple DSH alpha and release candidate versions to verify installation, launch, and uninstallation work as expected. It is released under the permissive MIT open source license, supports multiple API key accounts via configuration, and automatically pulls supported reasoning effort tiers for each model from the official catalog, with no extra manual configuration needed.

本项目是专为 DeepSeek Harness (DSH) 开发的原生插件,可让 Command Code 的 Go、GOAT 或 Pro 计划订阅用户,通过 DSH 原生的 LlmAdapter 调用 Command Code 私有网关 /alpha/generate 端点,流式获取模型响应。插件启动时会从 Command Code 的 /provider/v1/models 接口拉取实时模型列表,并根据 CDN 托管的官方 CLI 目录,筛选出符合当前订阅计划要求的模型。

本插件面向已经订阅 Command Code Go 及以上等级计划,同时日常使用 DSH 管理大语言模型的开发用户。安装完成后,用户只需将 Command Code 的 API 密钥写入 DSH 目录下的 .credentials.yaml 配置文件,无需额外手动配置模型列表,即可在 DSH Web 端的模型选择页面看到同步好的可用模型,直接开始对话。

本插件支持 DSH 版本 0.1.2-alpha.3 到 0.2.0 之间,要求 Node.js 版本为 22.19.0 及以上,兼容 DSH 的 web 和 headless 配置文件。它采用 MIT 许可证开源,支持多账号配置,支持通过配置文件自定义输出 token 上限、上下文窗口大小等参数,支持从官方目录自动读取模型支持的推理档位。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 18 stars - an early-stage project星标 18,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

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

把 jiesou/dsh-commandcode-go-provider 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-commandcode-go-provider

Command Code Go API provider for dsh.

English

Command Code 提供的订阅分两种:

  1. Provider API:提供标准 OpenAI 兼容端点,可以直接接入任何 agent harness,不需要第三方插件。
  2. Go / GOAT / Pro Plan:调用 Provider API 端点会返回 403 upgrade_required,只能通过 Command Code 私有的 CLI 网关 /alpha/generate 使用(vendor lock-in)。

本插件针对第二种情况:通过 /alpha/generate 流式接入 DSH 的原生 LlmAdapter,让 Go / GOAT / Pro Plan 用户直接在 DSH 中使用订阅的模型。模型列表不写死在代码里,插件在启动时从 /provider/v1/models 拉取实时目录,并按官方 CLI catalog (CDN) 的 Min plan 列筛选:

  • 只保留 Min plan 为 Go and above 的模型(计划顺序 Go < GOAT < Pro < Max),Go 计划包含的 premium 例外(GPT-5.6 Luna、Grok 4.5、Muse Spark 1.2 Contributor)自然落在其中,无需维护品牌名单。
  • 同一份 catalog 还提供每个模型支持的 Reasoning Effort 档位。

安装

从 npm 安装(预构建产物,推荐):

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

或从 GitHub 安装:

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

安装之后

Command Code 的 API Key 应写入 ~/.dsh/.credentials.yaml:

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

模型列表 无需任何配置 ,插件在启动时从 /provider/v1/models 同步你的 Go 计划包含的模型,并从官方 CLI catalog (CDN) 合并每个模型的 Reasoning Effort 支持。挂载时上游不可达也不挂——目录暂时为空、不会拖垮插件。装完后在 Web 的 Models 页面选择 Command Code Go provider 及模型即可开始对话。

配置项

全部可选,默认即可用:

- id: commandcode-go-provider
  name: '@jiesou/dsh-commandcode-go-provider'
  config:
    apiKeyEnv: COMMANDCODE_API_KEY
    baseURL: https://api.commandcode.ai
    maxTokens: 64000
    defaultContextWindow: 1000000
    maxRequestImageBytes: 2097152
配置项 类型 默认值 说明
apiKeyEnv string "COMMANDCODE_API_KEY" 读取 API Key 的环境变量名(或 credential ref)
baseURL string "https://api.commandcode.ai" Command Code 网关 base URL,/alpha/generate 自动追加
maxTokens number 64000 单次请求输出 token 上限
defaultContextWindow number 1000000 模型无精确 contextWindow 时的兜底值
maxRequestImageBytes number 2097152(2 MiB) 单次请求允许内联的 base64 图片字节上限
accounts object {} 多账号字典:每个 key 是一个独立 provider 路由。缺省或空 = 单账号模式,直接使用顶层字段
http1 boolean false 用 HTTP/1.1 发网关请求。Node ≥ 26 的 fetch 默认协商 HTTP/2 并把请求多路复用到一条连接上,网关边缘(Cloudflare)在高并发下会用 ENHANCE_YOUR_CALM 重置流;HTTP/1.1 把同一个限流变成可读的 429

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev multisim-mcp 下一个 Next minecraft-dev →