opencode-disable-zenOpenCode plugin to disable Zen provider for safe use at work
7
96
近 7 天 25
27.4
生态多维模型
7 个月前
2026-01-08
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-disable-zen@1.0.6"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-disable-zen@1.0.6"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-disable-zenopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode plugin to disable Zen provider for safe use at work.
Why?
OpenCode Zen's free models may collect data for model training during their free period:
| Model | Data Collection |
|---|---|
grok-code |
May be used to improve Grok Code |
glm-4.7-free |
May be used to improve the model |
minimax-m2.1-free |
May be used to improve the model |
big-pickle |
May be used to improve the model |
Source: OpenCode Zen Privacy Policy
Installation
Quick Install (Recommended)
npx opencode-disable-zen install --global
Manual Install
Add to your ~/.config/opencode/opencode.json:
{
"plugin": ["opencode-disable-zen"]
}
What it does
Adds "opencode" to disabled_providers list, preventing Zen models from being used.
CLI Commands
npx opencode-disable-zen install --global # Add to global config
npx opencode-disable-zen uninstall --global # Remove from global config
npx opencode-disable-zen --help # Show help
For oh-my-opencode users
If you're using oh-my-opencode, also update your agent models:
{
"agents": {
"explore": { "model": "anthropic/claude-haiku-4-5" },
"librarian": { "model": "anthropic/claude-sonnet-4-5" }
}
}
Alternative: Config-only approach
If you prefer not to use a plugin:
{
"disabled_providers": ["opencode"]
}
License
MIT