DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-commandcode-provider

Commandcode Provider

适用于 DeepSeek Harness (dsh) 的 Command Code provider 插件——支持所有 Command Code 套餐,包括 $1 Go plan;通过 /alpha/generate 使用 Studio authentication API key,而非 Provider API

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-commandcode-provider@0.2.1
README兼容性版本

兼容性与来源证明

Commandcode Provider 以 dsh-commandcode-provider 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.2.1stable
2026/10/7
0.2.0stable
2026/10/6
0.1.3stable
2026/8/14
查看其余 2 个版本收起版本
0.1.2stable
2026/8/14
0.1.1stable
2026/8/14

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
416.1 kB
文件数
56
Surface
any
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
270
安全扫描
✓ v0.2.1 扫描通过
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Codex Subscriptiondsh-codex-subscription在 DeepSeek Harness 中通过 OAuth 使用 ChatGPT 和 Codex 订阅,支持配额、安全重置、网络搜索、图像和快速模式,并可通过 ChatGPT 移动应用(Beta)控制 DSH

README

dsh-commandcode-provider

Languages: English | 中文

A custom LLM provider plugin for DeepSeek Harness (dsh) that connects dsh to Command Code — a faithful port of pi-commandcode-provider onto dsh's LLM seam.

Works with every Command Code plan, including the $1/month Go plan. Even the Go plan — the only one without Provider API access — gives you an API key in the Studio; that key authenticates the CLI/agent login. This plugin uses that same key against Command Code's own /alpha/generate endpoint, not the traditional Provider API protocol, so it works even when a plan has no Provider API access.

Disclaimer: This is an unofficial, community-maintained integration. It is not affiliated with, endorsed by, or supported by Command Code. You need your own Command Code account. Command Code's terms, availability, and pricing apply.

Requires dsh 0.2.0-rc.2 or newer. This release targets the 0.2 LLM and settings seam; on an older dsh the entry will not load. Settings edited on Settings → Models → Command Code → Edit apply live — no dsh restart.

Quick Start

Newbie-friendly: one command to install — the plugin mounts itself, no config files to edit.

1. Install

dsh plugin --profile web add dsh-commandcode-provider@0.2.1

The package declares dsh.bundle, so dsh plugin add installs it AND automatically joins it to the profile's bundle layers — the shipped cordis.patch.yml mounts the provider row for you.

Do not also add a manual cordis.patch.yml row for this plugin — the bundle patch already mounts it; a second row would double-register the provider.

2. Restart dsh

The provider then appears in the web UI automatically.

3. Get your API key

Even on the Go plan, Command Code gives you an API key used for authentication:

  1. Open commandcode.ai and sign in.
  2. Go to Studio → API Keys (in the sidebar).
  3. Click Generate API key and copy it.

This key is an authentication key for using Command Code — it is not a "Provider API" key. The plugin speaks Command Code's own /alpha/generate protocol with it, so no Provider API access is required, and the Go plan works.

4. Configure the API key (either way)

** Command:** In a dsh chat, run:

/commandcode-setkey

and paste the key when prompted.

That's it — pick a Command Code model from the model picker and start chatting.

How it works

This plugin is not a traditional API-protocol provider:

  • It talks to Command Code's own streaming endpoint https://api.commandcode.ai/alpha/generate with the same wire protocol the official CLI uses (x-command-code-version, x-cli-environment, x-project-slug, … headers).
  • The API key from Studio is an authentication credential for that endpoint — the same one cmd login writes to ~/.commandcode/auth.json.
  • Because it rides the CLI protocol instead of the Provider API, it works on every plan, including Go, and even models the Provider API cannot serve.
  • Model discovery still uses the public Provider API catalog endpoint when reachable, with an offline cache at <dsh home>/commandcode/commandcode-models.json; if that endpoint is unreachable (e.g. a Go plan), the last cached catalog keeps serving.

Functionality

Everything the pi plugin does, on the dsh host plane:

  • Provider registration — registers the commandcode provider route on ctx.llm with the same /alpha/generate streaming protocol, retry/timeout/abort semantics, and message/tool conversion as the pi plugin (paired tool-call filtering, data-URL image forwarding, legacy schema normalization).

  • Model discovery with offline cache — fetches the catalog from https://api.commandcode.ai/provider/v1/models and caches it locally (versioned, atomic writes); offline, the last cached catalog keeps serving.

  • Reasoning metadata — models with known Command Code effort support advertise their thinking levels through the LLM seam; a selected level is sent as params.reasoning_effort.

  • Image input — models marked image in the catalog accept image blocks (resolved through dsh's durable attachment service); text-only models reject images before any network request.

  • Authentication — credentials resolve per request through, in order:

    1. the Harness credential seam (ctx.credentials, what the web Models page writes),
    2. the trusted launch environment (COMMANDCODE_API_KEY),
    3. existing Command Code auth files: ~/.commandcode/auth.json, ~/.pi/agent/auth.json, ~/.omp/agent/auth.json.

    No browser OAuth flow — the key is entered in the web UI (Settings → Models → Command Code → Edit) or via /commandcode-setkey.

  • Commands — /commandcode-refresh (re-fetch + re-register the catalog), /commandcode-status (redacted diagnostics), /commandcode-setkey (store an API key).

  • Pricing display — the static per-model cost table from the pi plugin (USD per million tokens).

  • Error hygiene — context-overflow wording is normalized to CONTEXT_WINDOW_EXCEEDED, and every error/diagnostic text is redacted.

Configuration

The commandcode-provider settings section accepts (all optional):

FieldDefaultMeaning
apiKeyEnvCOMMANDCODE_API_KEYCredential reference resolved per request
displayNameCommand CodeName shown by selectors
baseURLCOMMANDCODE_API_BASE env → https://api.commandcode.aiAPI base for /alpha/generate (usually leave at default)
modelsUrlCOMMANDCODE_MODELS_URL env → Provider APIModel discovery endpoint
modelsTimeoutMsCOMMANDCODE_MODELS_TIMEOUT_MS env → 10000Discovery timeout
modelsCachePathCOMMANDCODE_MODELS_CACHE env → <dsh home>/commandcode/commandcode-models.jsonCatalog cache path
models—Optional explicit catalog entries; each overrides (or adds to) the discovered model by id
defaultContextWindow262144Context capacity for models neither the catalog nor an override sizes
defaultMaxTokens32768Output capability for models neither the catalog nor an override sizes
timeoutMs—Per-attempt HTTP request timeout
streamIdleTimeoutMs300000Max idle time while one stream read is outstanding
retryPolicynormal defaultsProvider-owned model-request retry policy
# $DSH_HOME/settings.yaml
commandcode-provider:
  apiKeyEnv: COMMANDCODE_API_KEY   # credential reference the Models page writes

Changelog

0.2.0

  • Adapted to the dsh 0.2.0-rc.2 seam: ToolCallId, first-class role: 'tool' result messages, JsonObject tool arguments, and the schema-derived settings form that replaced installSettingsSection.
  • Settings edits apply live: every config field is a live reference (Volatile), so the plugin re-reads settings per use and refreshes its provider route, catalog, and Models-page directory entry on loader/volatile-update.
  • Seam versions pinned to the dsh release being targeted, so a future seam drift fails at install instead of silently not loading.
  • Tests and typecheck resolve the published seam packages — no local deepseek-harness checkout required.

0.1.2

  • Removed the browser OAuth flow (and the local callback server): no more /commandcode-login, no browser pop-up. The API key is entered directly in Settings → Models → Command Code → Edit (single API key field) or via /commandcode-setkey.
  • Models-page card for Command Code shows only the API key field; no API address to configure.

0.1.0 / 0.1.1

  • Initial port of pi-commandcode-provider: /alpha/generate streaming, model discovery + cache, reasoning efforts, image input, pricing display.

Development

npm install        # dev + test dependencies
npm run typecheck  # strict tsc against the harness seam packages
npm run build      # emit lib/ (ESM + declarations)
npm test           # vitest suite (wire protocol, discovery, cost, adapter, plugin entry)

Typecheck and vitest resolve the @deepseek-ai/* seam packages from node_modules, pinned in package.json to the dsh release this plugin targets — the same published API surface the host loads, with no local harness checkout.

Plugin authors: see docs/dsh-0.2-plugin-migration.md — what changed between the 0.1.x and 0.2 dsh seams (first-class role: 'tool' messages, schema-derived settings over live Volatile references, loader/volatile-update), and how to migrate a plugin without the silent-failure traps.

License

MIT


中文文档: README.zh.md