Skip to main content
kRouter
All providers

OAuth subscription

cc/

Claude Code

Anthropic's CLI — Claude Pro/Max subscription via OAuth.

claude.ai

Quick setup

  1. Open the kRouter dashboard at http://localhost:20128

  2. Go to Providers → click the Claude Code tile

  3. Click Connect and complete the OAuth flow in your browser

  4. 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.

ide configbash
# Endpoint
http://localhost:20128/v1

# API key (from Dashboard → API Keys)
sk-krouter-XXXX

# Model
cc/claude-opus-4-7

How 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.

ModelRoute asInput /1MOutput /1M
Claude 4.5 Haikucc/claude-haiku-4-5-20251001$1.00$5.00
Claude Sonnet 4.6cc/claude-sonnet-4-6$3.00$15.00
Claude 4.5 Sonnetcc/claude-sonnet-4-5-20250929$3.00$15.00
Claude Opus 4.8cc/claude-opus-4-8$5.00$25.00
Claude Opus 4.7cc/claude-opus-4-7$5.00$25.00
Claude Opus 4.6cc/claude-opus-4-6$5.00$25.00
Claude 4.5 Opuscc/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.