Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click the Claude Code tile
Click Connect and complete the OAuth flow in your browser
Test the connection — kRouter auto-refreshes tokens from here on
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
cc/claude-opus-4-7How Claude Code billing works with kRouter
Claude Code connects with your existing subscription — kRouter signs in with OAuth and reuses the plan you already pay for, so there is no per-token bill. kRouter authenticates it via oauth. 7 models are routable as cc/<model>.
Through kRouter, Claude Code serves chat and code completion. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Claude Code is a one-line model change in your client rather than a rewrite.
Claude Code models & pricing
Prices are USD per 1M tokens, cheapest first. You are not billed per token on this provider — the figures show what the same model costs elsewhere, which is what routing here saves you.
| Model | Route as | Input /1M | Output /1M |
|---|---|---|---|
| Claude 4.5 Haiku | cc/claude-haiku-4-5-20251001 | $1.00 | $5.00 |
| Claude Sonnet 4.6 | cc/claude-sonnet-4-6 | $3.00 | $15.00 |
| Claude 4.5 Sonnet | cc/claude-sonnet-4-5-20250929 | $3.00 | $15.00 |
| Claude Opus 4.8 | cc/claude-opus-4-8 | $5.00 | $25.00 |
| Claude Opus 4.7 | cc/claude-opus-4-7 | $5.00 | $25.00 |
| Claude Opus 4.6 | cc/claude-opus-4-6 | $5.00 | $25.00 |
| Claude 4.5 Opus | cc/claude-opus-4-5-20251101 | $5.00 | $25.00 |
Claude Code links
Claude Code FAQ
Is Claude Code free through kRouter?
Claude Code does not bill per token here — kRouter uses your existing subscription via OAuth, so the only cost is whatever you already pay Claude Code directly. kRouter itself is MIT-licensed and free.
How do I use Claude Code with Claude Code or Cursor?
Connect Claude Code in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as cc/<model>.
Which Claude Code models can kRouter route to?
7 models, including Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6. Every one is addressed as cc/<model> from any client.
What happens when Claude Code is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.