Mars-Sea/dsh-commandcode-provider
Unofficial DeepSeek Harness LLM 提供程序插件,用于 Command Code:实时模型目录、推理努力支持、模型页面卡片。从 pi-commandcode-provider (MIT) 移植而来。
Project Overview项目介绍
This is an unofficial community-built native plugin for DeepSeek Harness (DSH) that adds CommandCode as an LLM provider option to DSH. It is packaged with a valid DSH bundle manifest, so installation is straightforward via the DSH CLI command: dsh plugin add @mars-sea/dsh-commandcode-provider. Once installed, it automatically registers the CommandCode provider and pulls the full CommandCode model catalog into DSH’s model picker, complete with annotations for plan tiers, free models, vision support, and context window sizes. It works with both DSH’s web interface and terminal TUI out of the box, no extra configuration needed beyond adding your API key.
This plugin is intended for DSH users who already have a CommandCode subscription or API key, and want to use CommandCode’s models directly within their DSH workflow instead of switching to the official CommandCode CLI. After installation, users can add their API key through the dedicated CommandCode settings page in DSH, which supports three methods: manual paste, importing from the official CommandCode CLI auth file, or completing the official in-browser sign-in flow that automatically saves the key to DSH’s credential store. It also supports multiple accounts with automatic rotation if one hits its usage limit, so you don’t have to manually switch accounts mid-conversation.
This plugin is released under the open source MIT license, so you can modify or redistribute it freely per the license terms. It does not include any telemetry or third-party tracking, and it only communicates directly with CommandCode’s API, never sending any of your data to third-party servers. The only requirement beyond a DSH installation is version 0.1.5-rc1 or newer of DSH for the optional sidebar quota panel feature, which displays your current CommandCode plan usage and billing details. You need to have your own active CommandCode subscription and API key to use this plugin, as it does not provide any free access to CommandCode’s models.
这是一个专为 DeepSeek Harness (DSH) 开发的原生 LLM 提供商插件,用于接入 Command Code 的模型服务,核心功能是为 DSH 注册 Command Code 模型路由,让用户可以在 DSH 中调用 Command Code 提供的各类大语言模型,包括支持图像输入的视觉模型。它遵循 DSH 插件开发规范,自带完整捆绑清单,可通过 DSH 命令行工具 dsh plugin add 直接安装到任意 DSH 配置文件中,同时适配 DSH 的网页端和终端 TUI 界面。
这个插件面向已经拥有 Command Code 账号或订阅的 DSH 用户,目标是填补 DSH 原生不支持 Command Code 模型的空白。用户安装后只需要完成 API 密钥配置,就能在 DSH 的模型选择器中看到所有 Command Code 提供的模型,还能自动隐藏超出当前订阅套餐的模型,也支持设置自定义模型白名单。日常使用中支持多账号自动轮换,当一个账号达到使用限额后会自动切换到下一个账号,保障服务不中断。
本插件采用 MIT 许可开源,完全免费使用,不收取任何费用,用户需要自行承担 Command Code 的订阅费用和 API 调用成本。插件本身没有额外依赖,只要求 DSH 版本不低于 0.1.5-rc1,否则部分功能如侧边栏配额面板无法正常启用。使用时需要用户自备 Command Code API 密钥,插件不会收集任何用户信息,仅在本地和 Command Code API 通信,也不会留存任何对话或凭证数据。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-commandcode-provider(Mars-Sea/dsh-commandcode-provider)
仓库:https://github.com/Mars-Sea/dsh-commandcode-provider
本站详情页:https://www.yhbd.top/plugins/mars-sea-dsh-commandcode-provider/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 359 · 最近提交 2026-10-03 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- This site's static screen found no obvious risk signal (stars, license, activity, manifest)本站静态筛查没发现明显风险信号(星标、许可证、更新活跃度、清单完整度)
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 @mars-sea/dsh-commandcode-provider@0.11.17
把 Mars-Sea/dsh-commandcode-provider 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-commandcode-provider
English | 简体中文
Unofficial DeepSeek Harness LLM provider plugin for Command Code, ported from pi-commandcode-provider (MIT).
This is a community integration. You need your own Command Code account and API key or subscription, and Command Code's terms apply. This project is not affiliated with Command Code, Inc.
What you get
- Plugin bundle — install into any dsh profile with
dsh plugin add; registers acommandcodeprovider route with a live model catalog. - Dedicated settings page — one account list (keys, sign-in, live quota, dedicated models), model visibility, privacy switches, and connection options.
- Works in the terminal too — the same install serves a dsh-TUI profile, with its own
/settings→ Command Code page for the API key and the model controls. - Models-page key card — the Settings → Models → Command Code card carries the key status, a paste field, and the sign-in button inline.
- In-browser sign-in for keys — start the official authorization flow (the same one
cmd loginruns) from the settings page; the approved key lands in the local credential service automatically. Manual paste remains the fallback. - Multi-account rotation — when one account hits its usage limit, requests switch to the next account automatically. See Account rotation.
- Flexible API key setup — via the settings page, an environment variable, or the official CLI login file.
- Model-picker annotations — minimum plan, active deal or
FREEbadge, peak/off-peak state, image support, and context window; free models listed first. - Plan-aware picker — models above your subscription tier are hidden by default (toggleable); an optional Model allowlist keeps only your favorites in the picker.
- Reasoning-effort support — models with selectable reasoning effort levels expose them in the picker.
- Image input — Vision-capable models accept images.
- Plans & quota panel — an optional Command Code card at the bottom of the sidebar (directly above Settings) shows the serving account's plan and its 5-hour and weekly windows; clicking it opens a dashboard with the billing period, both windows as progress bars with reset times, monthly credit consumption, and the purchased/free balances. The dashboard's × button hands the center column back to your conversation (the current session is untouched). Off by default — turn on "Show the quota card in the sidebar" under Settings → Command Code → Integrations & display to show it, and the same switch hides it again (a hidden card draws nothing at all and runs no background usage poll); the change lands as soon as you save. The panel follows your harness language (中文 / English).
- Session cost estimate — published-rate estimates (
≈) beside the composer token counter and in its usage dialog, using each request's model, request time and context tier from durable session history. Model switches and viewing the session later do not reprice earlier requests. Mixed-provider or unpriced usage shows a labeled subtotal (≥); missing history or wholly unpriceable usage stays hidden. These are estimates from the installed price snapshot, not provider invoices. Also English on every harness language. - Web search — the dsh
web_searchtool is backed by the Command Code Provider API (/alpha/web-search) with the same key/endpoint as chat, so no separate search key or base URL is needed. See Web search.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Alisa0808/vox-director
ysr666/dsh-vision-router
volcengine/ark-cli
franksong2702/dsh-codex-connect
WSL043/dsh-codex-subscription
Stormycry-cryp/dsh-AuthInOne
labring/sealos-skills