跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    quino0627

    Disable Zen

    v1.0.6模型接入
    opencode-disable-zen

    OpenCode plugin to disable Zen provider for safe use at work

    GitHub 星标

    7

    月装机量

    96

    近 7 天 25

    综合评分SCORE

    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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 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