cli-models

GitHub

CLI工具omniroute的模型管理技能,支持查询AI模型目录、按提供商过滤、搜索功能及别名解析。提供测试添加、手动增删改查模型元数据等功能,用于维护和管理可用的AI模型列表。

skills/cli-models/SKILL.md cheaper-inference/OmniRoute

触发场景

需要查询或浏览可用的AI模型列表 需要根据提供商或能力筛选模型 需要添加、编辑或删除自定义模型配置 需要验证新模型的连接和兼容性

安装

npx skills add cheaper-inference/OmniRoute --skill cli-models -g -y
更多选项

不安装直接使用

npx skills use cheaper-inference/OmniRoute@cli-models

指定 Agent (Claude Code)

npx skills add cheaper-inference/OmniRoute --skill cli-models -a claude-code -g -y

安装 repo 全部 skill

npx skills add cheaper-inference/OmniRoute --all -g -y

预览 repo 内 skill

npx skills add cheaper-inference/OmniRoute --list

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>

版本历史

  • d804179 当前 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

同 Skill 集合

config/quality/skill-templates/green-prs/SKILL.md
config/quality/skill-templates/merge-batch/SKILL.md
config/quality/skill-templates/merge-prs/SKILL.md
config/quality/skill-templates/quality-scan/SKILL.md
config/quality/skill-templates/sweep-reds/SKILL.md
config/quality/skill-templates/validate-release-green/SKILL.md
skills/cli-a2a/SKILL.md
skills/cli-backup-sync/SKILL.md
skills/cli-batches/SKILL.md
skills/cli-chat/SKILL.md
skills/cli-compression/SKILL.md
skills/cli-contexts/SKILL.md
skills/cli-cost-usage/SKILL.md
skills/cli-eval/SKILL.md
skills/cli-health/SKILL.md
skills/cli-keys/SKILL.md
skills/cli-mcp/SKILL.md
skills/cli-plugins-skills/SKILL.md
skills/cli-policy-audit/SKILL.md
skills/cli-providers/SKILL.md
skills/cli-resilience/SKILL.md
skills/cli-routing/SKILL.md
skills/cli-serve/SKILL.md
skills/cli-setup/SKILL.md
skills/cli-skill-collector/SKILL.md
skills/cli-tunnel/SKILL.md
skills/config-codex-cli/SKILL.md
skills/omni-agents-a2a/SKILL.md
skills/omni-api-keys/SKILL.md
skills/omni-auth/SKILL.md
skills/omni-budget/SKILL.md
skills/omni-cache/SKILL.md
skills/omni-cli-tools/SKILL.md
skills/omni-combos-routing/SKILL.md
skills/omni-compression/SKILL.md
skills/omni-context-rtk/SKILL.md
skills/omni-db-backups/SKILL.md
skills/omni-github-skills/SKILL.md
skills/omni-inference/SKILL.md
skills/omni-mcp/SKILL.md
skills/omni-models/SKILL.md
skills/omni-providers/SKILL.md
skills/omni-proxies/SKILL.md
skills/omni-resilience/SKILL.md
skills/omni-settings/SKILL.md
skills/omni-sync-cloud/SKILL.md
skills/omni-tunnels/SKILL.md
skills/omni-usage-logs/SKILL.md
skills/omni-version-manager/SKILL.md

元信息

文件数
0
版本
5dbd2eb
Hash
e30f6391
收录时间
2026-07-25 11:46

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-08 00:52
浙ICP备14020137号-1