cli-routing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
<!-- 由 src/lib/agentSkills/generator.ts 生成;手动编辑将被覆盖 -->

Overview

概述

Create, list, update, and delete routing combos from the CLI. Test routing strategies, inspect combo metrics, and configure fallback chains interactively.
通过 CLI 创建、列出、更新和删除路由组合。测试路由策略、查看组合指标,并以交互方式配置回退链。

Quick install

快速安装

bash
npm install -g omniroute   # or: npx omniroute
omniroute --version
bash
npm install -g omniroute   # 或:npx omniroute
omniroute --version

Subcommands

子命令

suggest

suggest

Flags:
  • --task <description>
  • --max-cost <usd>
  • --max-latency-ms <ms>
  • --weights <json>
  • --top <n>
  • --explain
  • --switch
Example:
bash
omniroute suggest
参数:
  • --task <description>
  • --max-cost <usd>
  • --max-latency-ms <ms>
  • --weights <json>
  • --top <n>
  • --explain
  • --switch
示例:
bash
omniroute suggest

combo combo

combo combo

Example:
bash
omniroute combo combo
示例:
bash
omniroute combo combo

combo list

combo list

List configured routing combos
Flags:
  • --json
Example:
bash
omniroute combo list
列出已配置的路由组合
参数:
  • --json
示例:
bash
omniroute combo list

combo switch <name>

combo switch <name>

Activate a routing combo
Example:
bash
omniroute combo switch <name>
激活一个路由组合
示例:
bash
omniroute combo switch <name>

combo create <name>

combo create <name>

Create a new routing combo
Flags:
  • --models <spec>
  • --model <spec>
Example:
bash
omniroute combo create <name>
创建一个新的路由组合
参数:
  • --models <spec>
  • --model <spec>
示例:
bash
omniroute combo create <name>

combo delete <name>

combo delete <name>

Delete a routing combo
Flags:
  • --yes
Example:
bash
omniroute combo delete <name>
删除一个路由组合
参数:
  • --yes
示例:
bash
omniroute combo delete <name>