cli-models
GitHubCLI工具,用于查询、浏览AI模型目录,管理别名及元数据。支持按提供商过滤、能力搜索和名称变体解析。新增test-add命令,通过严格连接验证并添加兼容OpenAI的模型,确保注册前经过合成测试。
Trigger Scenarios
Install
npx skills add diegosouzapw/OmniRoute --skill cli-models -g -y
SKILL.md
Frontmatter
{
"name": "cli-models",
"description": "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."
}
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>
Version History
-
d804179
Current 2026-10-19 14:20
新增 models test-add 子命令,支持在严格连接下验证并添加模型;增加 POST /api/provider-models/validate-and-add 端点,要求生成证明后注册。
-
a58000c
2026-09-28 06:17
新增手动模型管理功能,支持添加、编辑和移除手动模型,同时保留完整目录。
- 1cafd32 2026-07-25 11:46


