opencode2-cmdcOpenCode V2 plugin that starts a local Command Code Go subscription bridge.
0
127
近 7 天 127
32.9
生态多维模型
4 天前
2026-08-15
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode2-cmdc@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode2-cmdc@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode2-cmdcopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode V2 plugin for a Command Code Go subscription.
The plugin starts a loopback-only OpenAI-compatible bridge at
http://127.0.0.1:8788/v1. It reads Command Code authentication at runtime
from the existing Command Code login; it does not write credentials or alter
other OpenCode providers or models.
Authenticate with Command Code first:
cmd login
The bridge is derived from the MIT-licensed
hermes-commandcode-provider
project and supports its Command Code model/event protocol.
OpenCode setup
OpenCode V2's current plugin catalog API does not create new provider/model
records at runtime. Install this plugin normally, then register the bridge as
an OpenAI-compatible commandcode provider in your OpenCode provider config.
This plugin never rewrites an existing provider, model, or default model.