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

@wallbreakerno4/opencode-commandcode

v0.2.0

Published

OpenCode provider plugin for the Command Code Go plan: an in-process bridge to the /alpha/generate gateway.

Readme

@wallbreakerno4/opencode-commandcode

OpenCode provider 插件:把 Command Code Go plan 专用的 /alpha/generate 网关桥接成 OpenCode 原生 provider,装好即可在 OpenCode 中使用 Command Code 的模型。

⚠️ 避坑:GLM 系列模型的缓存命中率不稳定,额度消耗明显更快,建议优先选用 deepseek 系列模型。详见已知问题。

安装

前置:Command Code Go plan 订阅,并在 Studio → API Keys 生成 API key(与 CLI 同一把)。

For Humans(推荐)

把下面这段 prompt 粘贴进 OpenCode 2 会话(需要 v2.0.4 及以上:opencode --version 输出 opencode v2.0.4 或更高,v2.0.0–v2.0.3 不支持),agent 会按 安装指南 自主完成安装;装完按它的提示输入 /connect 认证即可:

按照这份指南安装 @wallbreakerno4/opencode-commandcode 插件:
https://raw.githubusercontent.com/WallBreakerNO4/opencode-commandcode-provider/main/docs/guide/installation.md

手动安装(OpenCode 2)

  1. 确认宿主为 V2 且不低于 v2.0.4:opencode --version 输出应形如 opencode v2.0.4(v2.0.0–v2.0.3 不支持,请先升级宿主)。

  2. 安装插件:

    opencode plugin add @wallbreakerno4/opencode-commandcode
  3. 配置凭证(二选一):输入 /connect 选择 Command Code (Go) 粘贴 key;或设置环境变量:

    export COMMANDCODE_API_KEY=user_xxx
  4. 验证:

    opencode models            # 应出现 commandcode-go/ 前缀的模型
    opencode run --model commandcode-go/deepseek/deepseek-v4-pro "hi"

已知误区:opencode models 能列出插件模型(凭证就绪后),但安装后第一次调用可能为空,重试一次再判失败;未配置凭证前 provider 不可见、模型列表为空是预期。

OpenCode V1 用户

v1 支持面已冻结(只修致命问题),推荐升级到 OpenCode 2;继续使用 v1 的安装步骤见冻结版安装指南。注意:V1 安装后仍需重启宿主才能加载插件。

免责声明

本项目为社区开发的第三方插件,与 Command Code 官方无关。插件桥接的 /alpha/generate 端点无公开文档,行为可能随官方更新而变动,使用产生的账号风险请自行评估。仅供学习交流。