Package Exports
- opencode-disable-zen
- opencode-disable-zen/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (opencode-disable-zen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
opencode-disable-zen
OpenCode plugin to disable Zen provider for ZDR (Zero Data Retention) compliance.
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
Additionally, Zen's anonymous access (no sign-in required for free models) is undocumented behavior - the official documentation states sign-in is required.
Installation
Quick Install (Recommended)
npx opencode-disable-zen installFor global installation:
npx opencode-disable-zen install --globalManual Install
npm install opencode-disable-zenThen add to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-disable-zen"]
}Or global config at ~/.config/opencode/opencode.json.
What it does
- Adds
"opencode"todisabled_providerslist - Logs a warning at startup about ZDR implications
- Provides audit trail for compliance
CLI Commands
npx opencode-disable-zen install # Add to local opencode.json
npx opencode-disable-zen install --global # Add to ~/.config/opencode/opencode.json
npx opencode-disable-zen uninstall # Remove from local config
npx opencode-disable-zen --help # Show helpFor oh-my-opencode users
If you're using oh-my-opencode with free model defaults, 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:
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": ["opencode"]
}License
MIT