Mars-Sea/dsh-commandcode-provider 预览 preview

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 通信,也不会留存任何对话或凭证数据。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 no risk signal found未发现风险信号
  • 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 | 简体中文

Awesome GitHub Repo stars DeepSeek Harness PRs Welcome CI License: MIT npm

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 a commandcode provider 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 login runs) 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 FREE badge, 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_search tool 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 →

← 上一个 Prev dsh-mobile 下一个 Next harmony-next.skills →