About cli-chat
cli-chat provides OmniRoute chat completions and interactive sessions through the command line. It is for users who want to select models and routing options, stream responses, or configure prompts from a CLI.
Key features
- 01Send chat completions
- 02Stream model responses
- 03Run an interactive REPL
- 04Set system prompts and model
- 05Route requests with combo
Use cases
- 01Send a one-off prompt from the CLI
- 02Continue a conversation in the REPL
- 03Stream a response to the terminal
- 04Pass prompt content from a file or stdin
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cheaper-inference/ omniroute --skill cli-chatAfter installing, type/cli-chatin Claude Code to confirm it loaded.
Details
From the project READMEOverview
Send chat completions, stream responses, and start an interactive REPL session from the CLI. Supports all OmniRoute providers, combo routing, and system prompt configuration.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
chat [prompt]
Flags:
--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
Example:
omniroute chat [prompt]
repl
Flags:
-m, --model <id>--combo <name>-s, --system <prompt>--resume <session>
Example:
omniroute repl
stream [prompt]
Flags:
--file <path>--stdin-m, --model <id>-s, --system <prompt>--combo <name>--max-tokens <n>--responses-api--raw--debug--save <path>
Example:
omniroute stream [prompt]
Comments
Markdown supported