mcpField
C
cli-chat

cli-chat

github.com/diegosouzapwAgent 工作流82.6k910 次安装今天更新
代码仓库

关于 cli-chat

通过命令行向 OmniRoute 服务商发送聊天请求、流式接收回复并运行交互式 REPL 的技能,支持组合路由及可配置的系统提示词和模型参数。

主要功能

  1. 01发送聊天补全请求
  2. 02流式接收回复
  3. 03运行交互式 REPL
  4. 04选择服务商、模型或组合路由
  5. 05配置提示词和生成参数

适用场景

  1. 01从终端发送一次性提示词
  2. 02将流式回复接入工作流
  3. 03使用指定模型继续交互会话

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/diegosouzapw/omniroute --skill cli-chat

安装后在 Claude Code 中输入/cli-chat确认已加载。

详细介绍

概览

通过 CLI 发送聊天补全、流式传输响应,并启动交互式 REPL 会话。支持所有 OmniRoute 提供商、组合路由和系统提示词配置。

快速安装

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

子命令

chat [prompt]

标志:

  • --file <path>
  • --stdin
  • -s, --system <prompt>
  • -m, --model <id>
  • --max-tokens <n>
  • --temperature <t>
  • --top-p <p>
  • --reasoning-effort <level>
  • --thinking-budget <tokens>
  • --combo <name>
  • --responses-api
  • --stream
  • --no-history

示例:

omniroute chat [prompt]
repl

标志:

  • -m, --model <id>
  • --combo <name>
  • -s, --system <prompt>
  • --resume <session>

示例:

omniroute repl
stream [prompt]

标志:

  • --file <path>
  • --stdin
  • -m, --model <id>
  • -s, --system <prompt>
  • --combo <name>
  • --max-tokens <n>
  • --responses-api
  • --raw
  • --debug
  • --save <path>

示例:

omniroute stream [prompt]

评论

支持 Markdown