跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    andresnator

    Models Presets

    opencode-models-presets·v0.3.5·模型接入

    Provider-agnostic OpenCode TUI plugin for assigning models, variants, and presets to agents.

    GitHub 星标

    0

    月装机量

    504

    近 7 天 461

    综合评分

    36.6

    生态多维模型

    最近提交

    3 天前

    2026-10-01

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-models-presets@0.3.5"]
    }

    OpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    npm version

    Assign models and variants to OpenCode agents, review the changes, and save reusable presets. The plugin uses the live agents and models from your OpenCode server instead of a hardcoded catalog.

    Install

    Requires OpenCode >=1.17.15 <2.

    opencode plugin opencode-models-presets --global
    

    To pin the first automated npm release:

    opencode plugin opencode-models-presets@0.3.1 --global --force
    

    Restart OpenCode, then press Ctrl+P and choose Configure model presets, or run /models-profiles.

    Use

    1. Choose project or global scope.
    2. Start from live agents, an optional profile, or a saved preset.
    3. Keep, replace, or inherit assignments.
    4. Review and apply the changes.

    See Configuration for profiles, presets, storage, and write safety.

    Configure options

    Options live beside the npm package spec in tui.json:

    {
      "plugin": [
        ["opencode-models-presets", {"profilesDir": ".opencode/model-profiles"}]
      ]
    }
    

    Relative profile paths resolve from the active project.

    Update or remove

    Keep "opencode-models-presets" to follow latest. To pin a release, use "opencode-models-presets@<version>".

    To remove the plugin, delete only its matching string or tuple from the global tui.json, preserve every other entry, and restart OpenCode. There is no global npm installation to uninstall.

    Develop

    See Contributing to load local source and run checks.

    Help

    同类生态推荐