Skip to content
rawroute
Docs / CLI

CLI

Detect your SDK, measure latency and inspect models from the terminal.

Install directly from rawroute using npm. No npm account is needed to install. Download CLI package

npm install -g https://rawroute.dev/downloads/rawroute-cli.tgz
rawroute models --offline

CLI for setting up your project, checking gateway latency, diagnosing environment issues and inspecting your balance from the terminal.

Commands

rawroute init [--mcp] [--verify]
Detects your installed AI SDK, writes RAWROUTE_BASE_URL and RAWROUTE_API_KEY to .env, optionally wires MCP configs (--mcp) and verifies live key access (--verify).
rawroute ping [--all]
Measures gateway round-trip time (RTT) and streaming time-to-first-token (TTFT); pass --all to benchmark every active chat model.
rawroute balance
Shows remaining USD balance, key spend limit and current usage.
rawroute models [id]
Lists active chat, image, video and audio models with unit prices and endpoints, or pass a model ID (models <id>) for full specs, cached rates and provider count.
rawroute doctor
Runs local diagnostics across Node.js, .env variables, gateway reachability and key authentication.

Example output

Illustrative terminal output from ping and balance.

  /\_/\     ROUTE.CAT · rawroute CLI
 ( o.o )    gateway  https://api.rawroute.dev
  > ^ <     key      rr_live_••••8f2a

ping     claude-sonnet-5-5   RTT  42 ms   TTFT 218 ms   ● ● ● ●  ok
         gpt-6.2-sol         RTT  39 ms   TTFT 194 ms   ● ● ● ●  ok
         gemini-4-neon       RTT  44 ms   TTFT 235 ms   ● ● ● ●  ok
────────────────────────────────────────────────────────────────────
balance  $24.50 USD          ████████████░░░░  remaining