Integration guides

Connect your favorite tools in minutes

Choose your editor, coding agent, chat interface, or framework. Each guide includes installation, exact settings, Windows and macOS/Linux commands, and a final connection test.

01

Create a key

Your secret starts with sk_live_.

02

Pick a model

62 catalog models use stable ids.

03

Follow a guide

Copy the settings and run a test.

Fastest setup

One command, every tool

The helper finds the AI tools you already have installed, asks for your API key once, and writes the right base URL and key into each tool's own config file. No environment variables to export, no config files to hand-edit.

  • Detects Claude Code, Codex, Cursor, Cline and more
  • Writes each tool's config in the right place for your OS
  • Nothing to install — npx runs it and throws it away

Prefer to wire it up by hand? Every tool is still documented step by step below.

Terminal — macOS, Linux or Windows
npx omnirouter-helper

Needs Node.js 18 or newer and an API key from Dashboard › API keys. Restart your editor afterwards so it rereads its config.

OpenAI-compatible endpoint

Base URL for Cursor, Codex, Cline, SDKs, and most tools
https://omnirouter.li/v1

Anthropic-compatible endpoint

Base URL for Claude Code
https://omnirouter.li

Choose your tool

Installation and setup

Search or filter the list, then work through the steps in order. Every code block can be copied directly.

Claude Code

CLI

Set up Claude Code

Anthropic's terminal coding agent

Before you begin

  • Node.js 18 or newer
  • An omnirouter API key
  • A Claude model from the catalog
  1. 1

    Install Claude Code

    Install the official CLI globally with npm.

    Terminal
    npm install -g @anthropic-ai/claude-code
  2. 2

    Set the connection

    Claude Code uses the Anthropic Messages API. Use the origin without /v1 and choose the block for your shell.

    Environment variables
    # macOS / Linux
    export ANTHROPIC_BASE_URL=https://omnirouter.li
    export ANTHROPIC_API_KEY=sk_live_...
    
    # Windows PowerShell
    $env:ANTHROPIC_BASE_URL="https://omnirouter.li"
    $env:ANTHROPIC_API_KEY="sk_live_..."
  3. 3

    Launch it

    Start Claude Code inside your project with an exact model id from the catalog.

    Terminal
    claude --model claude-fable-5
  4. 4

    Verify the connection

    Ask a short question, then confirm the request appears under Dashboard > Usage.

Connection test: after your first prompt, open Dashboard > Usage. A successful request shows its model, tokens, latency, and exact cost.

Troubleshooting

401: Invalid API key

Create a new key in Dashboard > API keys and make sure the full sk_live_ value is set. A key is shown only once when created.

404: Model not found

Use the exact model identifier from the catalog, including punctuation. Display names are not accepted as model ids.

Wrong base URL

OpenAI-compatible tools use https://omnirouter.li/v1. Claude Code uses https://omnirouter.li without /v1 because it appends the Messages path itself.

402: Insufficient credit

Add prepaid credit under Dashboard > Billing. Failed requests are not charged, and requests resume immediately after top-up.

Still stuck? The request id from any error helps trace the call.Read the API docs