junjiezhou1122/plugins/tree/main/model-search
model-search
可搜索的 Claude Code 模型选择器(/ms),适用于模型列表很长的配置,同时保持内置 /model 命令不变。
关于这个 mod
一个 Claude Code 插件,添加打开可搜索模型面板的 /ms 斜杠命令。输入时会实时筛选模型名称、标签和提供商 ID,高亮第一个匹配项,按 Enter 选择,按 Esc 取消。它会把 Claude Code 自带的模型(Default、Sonnet、Opus、Haiku 等)列在网关提供的模型之前,并高亮当前模型。它读取 modelPicker 设置,不进行网络调用;选择模型时会交给 Claude Code 自己的 /model <id>。原生 /model 菜单和 /model <id> 都不会改变,也可以通过 claude plugin disable 禁用插件。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add junjiezhou1122/plugins claude plugin install model-search
原文 / README
model-search
A searchable model picker, for setups where the model list is longer than a menu can usefully show.
Type /ms and a palette opens with the query already focused. Results appear as
you type, so there is no Tab to press and no dropdown to expand. The first match
is highlighted, Enter selects it, and every visible row is clickable. Esc closes
without changing anything.
/model is left exactly as Claude Code ships it. This plugin adds a second way
in rather than replacing the first.
Install
claude plugin marketplace add junjiezhou1122/plugins
claude plugin install model-search@plugins
Why you would reach for it
Claude Code's /model menu lists every model and asks you to scroll. Behind a
gateway such as magpie that list runs past a
thousand entries, and the menu has no way to type into it. /ms searches
model names, labels and provider IDs as you type.
The palette reads its list from the modelPicker setting in your Claude Code
settings, which is what a gateway writes. Without one there is nothing long to
search, and /model is the better tool.
Claude Code's own models come first
The palette lists Claude Code's own names (Default, Sonnet, Opus, Haiku,
Fable, Best, and the 1M-context variants) ahead of anything a gateway adds,
so typing opus offers Claude Code's Opus first rather than burying it under
every provider's Opus clone. Your current model is highlighted above both.
/model still works
The plugin does not hook the built-in model command at all. /model opens
Claude Code's own menu, /model <id> still switches directly, and the native
menu's session-only option is untouched.
To turn this plugin off entirely:
claude plugin disable model-search@plugins
What it does not do
It makes no network calls of its own. It reads the model list already in your
settings, and selecting a model runs Claude Code's own /model <id> so the
switch goes through the normal path and is saved the normal way.
Development
claude plugin validate model-search
claude plugin test model-search
.claude-plugin/types/ and tsconfig.json are written by the engine when the
plugin loads. They are gitignored.
