cli-models
它能做什么
这项技能展示如何通过命令行浏览和管理 AI 模型目录。适合想找到某个模型、查看详情或添加新模型的人。
适用场景
- ✓当用户想按提供商或关键词查找 AI 模型的时候。
- ✓当用户想把新模型添加到目录中的时候。
- ✓当用户想查看模型别名或名称变体的时候。
技能链接
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-models/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的提供商提供的哪些模型可以处理长文档?”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能列出浏览目录、按提供商或查询词搜索、查看模型的手动详情,以及在所选连接上添加或测试模型的命令,并提供试运行选项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Overview
Query available AI models, list model aliases, and browse the full model catalog from the CLI. Filter by provider, search by capability, and resolve model name variants.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
models test-add <model>
Validate an OpenAI-compatible model on one strict connection, then add it after a synthetic tool round-trip
Flags:
--provider <id>--connection <id>--name <name>--max-input-tokens <count>--max-output-tokens <count>--api-format <format>--context <name>--base-url <url>--allow-inference--yes--dry-run--json
Example:
omniroute models test-add example-model --provider example-provider --connection example-connection --dry-run
models [provider]
Flags:
--search <query>--json
Example:
omniroute models [provider]
models manual <provider>
List manual model metadata from the selected server
Example:
omniroute models manual <provider>
models add <provider> <model-id>
Add an unverified manual model, then verify persistence
Flags:
--name <name>--api-format <format>--context-window <tokens>--max-output-tokens <tokens>--dry-run
Example:
omniroute models add <provider> <model-id>
models edit <provider> <model-id>
Edit manual model metadata, then verify persistence
Flags:
--name <name>--api-format <format>--context-window <tokens>--clear-context-window--dry-run
Example:
omniroute models edit <provider> <model-id>
models remove <provider> <model-id>
Remove only a manual model override, then verify persistence
Flags:
--yes--dry-run
Example:
omniroute models remove <provider> <model-id>
常见问题
添加前能先测试模型吗?
可以。test-add 命令会验证模型,并提供试运行选项。
有 JSON 输出吗?
有。目录列表有 JSON 选项。
哪些选项控制验证?
dry-run、yes 和 allow-inference 等选项,控制模型如何被测试和添加。
详情
作者的原始描述
Query available AI models, list model aliases, and browse the full model catalog from the CLI. Filter by provider, search by capability, and resolve model name variants.
热度
- GitHub 星标
- 84k
- 排名
- #1407
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …