Skip to main content
skill CX Codex

cli-chat — Claude Code skill: CLI chat with OmniRoute

Sends completions to OmniRoute chat models from the terminal, streams responses, and starts an interactive REPL session.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add cheaper-inference/OmniRoute --skill cli-chat -a claude-code
Open on GitHub

What cli-chat does

The skill adds three commands: omniroute chat [prompt] for one-off requests, omniroute repl for interactive dialogue with session resumption, and omniroute stream [prompt] for streaming output. Supports all OmniRoute providers, combo routing, and system prompt configuration via -s or --system flags. You can pass text from a file (--file), stdin (--stdin), or directly as an argument.

Flags let you specify model (-m), temperature, max-tokens, top-p, reasoning effort (--reasoning-effort), and thinking budget (--thinking-budget). Streaming supports --raw, --debug, and --save to write output to a file. REPL can resume a previous session with --resume <session>, and --no-history disables history in the chat command.

What it helps with

  • send a request to an LLM from the terminal without writing a script
  • stream model responses in real time
  • start an interactive dialogue with history and session resumption
  • switch between OmniRoute providers and combo routes
  • pass system prompt and generation parameters via flags

Example prompts for the agent

  • Send a question from question.txt to gpt-4o and save the answer to answer.md
  • Start a REPL with model claude-3-5-sonnet-20241022 and system prompt 'You are a text editor'
  • Stream a response to 'Explain how async/await works in JS' with temperature 0.7

How to install cli-chat

1Skills CLI (Vercel)

npx skills add cheaper-inference/OmniRoute --skill cli-chat -a claude-code

2Manually: put the files in place

~/.claude/skills/cli-chat/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-chat/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cli-chat

How to install cli-chat in Claude Code?

Run npx skills add cheaper-inference/OmniRoute --skill cli-chat -a claude-code, then open ~/.claude/skills/cli-chat/SKILL.md.

What does cli-chat do?

Adds a CLI interface for sending requests to OmniRoute chat models: one-off commands, streaming, and interactive REPL with history.

Which providers does cli-chat support?

All OmniRoute providers, including combo routing via the --combo <name> flag.

Source text

SKILL.md · MIT
---
name: cli-chat
description: Send chat completions, stream responses, and start an interactive REPL session from the CLI. Supports all OmniRoute providers, combo routing, and system prompt configuration.
---
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->

## Overview

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

```bash
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:**

```bash
omniroute chat [prompt]
```

### `repl`

**Flags:**

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

**Example:**

```bash
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:**

```bash
omniroute stream [prompt]
```

© cheaper-inference · MIT · cheaper-inference/OmniRoute

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set45

config-codex-cli Automate OpenAI Codex CLI setup to work with OmniRoute on any OS. The skill detects your system and shell, writes config, creates 7 profiles, and verifies the connection. CX Codex +1 990installs cli-mcp Inspects MCP server status, triggers tools, manages scopes, and controls transports through the omniroute command-line interface. CX Codex +1 987installs omni-budget Sets spending limits, token quotas and rate-limit policies per key or globally. Shows current consumption and enforces cost controls across providers. CX Codex +1 973installs omni-context-rtk Configures RTK filters, context rules, and relay settings, then tests compression on real prompts. Use it when context transformation needs inspection. CX Codex +1 984installs omni-cli-tools Manages CLI tool integrations via the OmniRoute API. It helps configure tool profiles, inspect runtime statuses, and automate CLI plugin settings. CX Codex +1 982installs omni-api-keys This skill creates, lists, rotates and revokes Anthropic API keys, and sets per-key scopes and limits. Useful when keys are handed out from inside an agent. CX Codex +1 966installs omni-agents-a2a Skill for agent-to-agent interaction via JSON-RPC 2.0 protocol. Agents discover each other, pick optimal models by cost and capabilities, check quotas, and monitor system health. CX Codex +1 977installs cli-backup-sync A skill for driving Anthropic backups from the terminal: incremental snapshots, cloud sync, schedules and restore from archive files. CX Codex +1 963installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor