opencode-qoderQoder provider plugin for opencode
2
近 30 天 +1
371
近 7 天 91
41.0
生态多维模型
21 天前
2026-07-30
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-qoder@0.2.1"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-qoder@0.2.1"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-qoderopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
Qoder Global provider plugin for opencode. This is a port of the global-only pieces of pi-provider-qoder: PAT exchange, COSY request signing, Qoder body encoding, chat SSE parsing, reasoning, image input, and tool calls.
Qoder China endpoints and model aliases are intentionally not included.
Build
npm install
npm run build
Installation
Add the built plugin to opencode.json in this repo, or adjust the relative path for your config location:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-qoder"],
"model": "qoder/auto"
}
The plugin registers provider qoder and these models: auto, ultimate, performance, efficient, lite, qmodel_preview, qmodel, qmodel_latest, dmodel, dfmodel, gm51model, kmodel_latest, kmodel, and mmodel.
Authenticate
Use a Qoder Personal Access Token (pt-...). A PAT is exchanged for a short-lived Qoder job token automatically before requests.
export QODER_PERSONAL_ACCESS_TOKEN="pt-..."
opencode
You can also run opencode's auth flow after the plugin is loaded:
/connect qoder
Choose Personal Access Token and paste the PAT.
After adding or changing the plugin config, quit and restart opencode. Plugins and provider config are loaded at startup.