mitian233/dsh-plugin-commandcode-provider

Plugin插件 Native原生 ⭐ 2 MIT Models & Routing模型与路由

Project Overview项目介绍

This is a native DeepSeek Harness (DSH) plugin that adds the Command Code LLM provider route to DSH. It forwards LLM requests to Command Code’s public /alpha/generate API endpoint, and ships with a valid DSH bundle manifest that allows automatic activation via the official dsh plugin command. No manual edits to cordis.patch.yml are required, and the plugin is compatible with DSH version 0.1.0-rc.6 and all newer releases. It can be installed from a local checkout, packed tarball, npm package, or directly from the GitHub repository via the standard DSH plugin install command.

After installation, you can configure the plugin by adding an override patch to your DSH profile’s cordis.patch.yml if you want to change default settings like base URL, max tokens, or the credential environment variable name. The plugin includes an optional browser-assisted OAuth flow that helps you retrieve and store your Command Code API key directly through DSH’s credentials service. If the OAuth flow fails, you can always fall back to manual API key input. To use a Command Code model, just reference it as commandcode/<model-id> in your DSH model configuration.

The plugin supports core LLM features including text messages, streaming text output, standard JSON Schema tool calls, reasoning deltas for supported models, usage reporting, request cancellation, and error classification. It is released under the open source MIT license, and currently does not support credential refresh, image inputs, or stop sequences in its v1 release. Unsupported request types are rejected before any network call is made. To develop the plugin locally, you need to add the plugin directory to your DSH workspace’s pnpm-workspace.yaml to resolve internal DSH dependencies correctly.

这是一个面向 DeepSeek Harness (DSH) 的原生插件,为 DSH 新增了 Command Code LLM 提供商路由能力,它会向 Command Code 的 /alpha/generate API 发送请求,完全适配 DSH 官方的插件管理工作流,无需手动编辑配置文件,可直接通过官方 dsh plugin 命令完成安装,兼容 DSH 0.1.0-rc.6 及后续所有版本。

这个插件支持浏览器辅助的 OAuth 流程获取 API 密钥,用户也可以选择手动输入密钥,配置完成后即可通过 commandcode/<模型ID> 的格式调用 Command Code 提供的各类大模型。它支持文本消息、流式输出、标准 JSON Schema 工具调用、推理增量返回和用量统计等核心能力,适合需要在 DSH 中接入 Command Code 模型服务的开发者。

这个插件使用 MIT 许可开源,目前 v1 版本不支持凭证刷新、图片输入和 stop 序列,这些不支持的请求会在发送网络请求前就被拦截。它依赖 DSH 官方使用的 pnpm 包管理工具,开发时需要将插件路径加入 DSH 工作区的 pnpm-workspace.yaml 才能正确解析内部依赖,API 密钥需要通过 DSH 凭证服务完成配置。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 github:mitian233/dsh-plugin-commandcode-provider

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

READMEREADME

Command Code provider for DeepSeek Harness

dsh-plugin-commandcode-provider adds the commandcode LLM provider route to DeepSeek Harness (DSH). It sends requests to Command Code's /alpha/generate API.

Installation

This plugin is a standalone DSH plugin. It does not modify the DeepSeek Harness repository: install it into a profile with dsh plugin, the official plugin manager. The package declares a dsh.bundle manifest (a cordis.patch.yml layer), so dsh plugin add activates it automatically — no manual cordis.patch.yml edit is required.

Run DSH

The official npm form runs the harness without a global install:

npx @deepseek-ai/dsh web

If dsh is already on your PATH (installed globally or via a package manager), dsh web is equivalent. This plugin is compatible with DSH 0.1.0-rc.6 and later (npm next tag).

Install the plugin into a profile

From the plugin checkout, install the local directory into a profile. The first use initializes the profile (with @deepseek-ai/dsh-base as its first bundle):

cd /path/to/dsh-plugin-commandcode-provider

# Official form, no global dsh needed:
npx @deepseek-ai/dsh plugin --profile web add .

# Or with a global dsh on PATH:
dsh plugin --profile web add .

add . anchors the relative path to the invoking directory, so it links this checkout into the profile's pnpm-managed node_modules. Because the package declares dsh.bundle, dsh plugin also appends the package to the profile's dsh.profile.bundles, so its patch layer activates on boot without any additional wiring. Any other pnpm spec works the same way — an npm package, a packed tarball, or a git host:

dsh plugin --profile web add ./dsh-plugin-commandcode-provider-0.1.0.tgz
dsh plugin --profile web add github:mitian233/dsh-plugin-commandcode-provider

Remove the plugin (also removes the bundle layer) with:

dsh plugin --profile web remove dsh-plugin-commandcode-provider

Override config in the profile

The bundle's patch supplies schema defaults. To override any key, add an id-targeted patch row to your own profile cordis.patch.yml (applied after bundle layers):

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

← 上一个 Prev formalswarm 下一个 Next bailinghub-dsh-plugin →