npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jiesou/dsh-commandcode-go-provider

v0.1.5

Published

Command Code Go provider adapter for dsh: scan the Go-plan model catalog dynamically and serve /alpha/generate through the harness LLM seam

Downloads

408

Readme

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 拉取实时目录,并按 Go Plan 的规则筛选:

  • 默认保留开源模型(deepseek、Qwen、MiniMaxAI、xiaomi、stepfun、tencent、nvidia、moonshotai 等 provider)。
  • 包含几个 Go Plan 的 premium model 例外,如 GPT-5.6 Luna、Grok 4.5、Muse Spark 1.2 Contributor。
  • 其余 premium 模型(Claude、Gemini 等)一律排除。

筛选后还会从官方 CLI catalog (CDN) 合并每个模型的 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
  name: '@jiesou/dsh-commandcode-go-provider'
  config:
    apiKeyEnv: COMMANDCODE_API_KEY
    baseURL: https://api.commandcode.ai
    maxTokens: 64000
    defaultContextWindow: 1000000

| 配置项 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | 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 时的兜底值 |

Reasoning effort 不需要配置:插件会从官方 CLI catalog 合并每个模型支持的档位;未知档位的模型直接暴露全部档位(off + minimal 到 max),由网关决定默认深度。

Credit

移植自 brent-weatherall/opencode-commandcode-provider 到 DSH。

本 plugin 加入了动态 reasoning effort 提取功能,从 https://cdn.jsdelivr.net/npm/command-code@latest/dist/bundled/command-code-knowledge/reference/models.md 解析。

License

MIT