Skip to main content
kRouter
All providers

Pay-per-token

cmc/

Command Code

Command Code — connect via API key.

commandcode.ai

Quick setup

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

  2. Go to Providers → click Command Code

  3. Paste your API key, click Save

  4. Test the connection

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
cmc/<model-id>

How Command Code billing works with kRouter

Command Code is pay-per-token. You bring your own API key and kRouter routes to it, so you keep your own rate limits and billing relationship. kRouter authenticates it via apikey. 11 models are routable as commandcode/<model>.

Through kRouter, Command 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 Command Code is a one-line model change in your client rather than a rewrite.

Use your CommandCode CLI API key (starts with user_...) from ~/.commandcode/auth.json or commandcode.ai/studio.

Command Code models & pricing

Prices are USD per 1M tokens, cheapest first. kRouter bills nothing on top; this is the provider's own rate.

ModelRoute asInput /1MOutput /1M
Qwen 3.6 Max Previewcommandcode/Qwen/Qwen3.6-Max-Preview$0.50$2.00
Qwen 3.6 Pluscommandcode/Qwen/Qwen3.6-Plus$0.50$2.00
DeepSeek V4 Procommandcode/deepseek/deepseek-v4-pro
DeepSeek V4 Flashcommandcode/deepseek/deepseek-v4-flash
Kimi K2.6commandcode/moonshotai/Kimi-K2.6
Kimi K2.5commandcode/moonshotai/Kimi-K2.5
GLM 5.1commandcode/zai-org/GLM-5.1
GLM 5commandcode/zai-org/GLM-5
MiniMax M2.7commandcode/MiniMaxAI/MiniMax-M2.7
MiniMax M2.5commandcode/MiniMaxAI/MiniMax-M2.5
Step 3.5 Flashcommandcode/stepfun/Step-3.5-Flash

Command Code links

Command Code FAQ

Is Command Code free through kRouter?

Command Code is pay-per-token: you bring your own API key and are billed by Command Code at their rates. kRouter adds nothing on top and is free and MIT-licensed.

How do I use Command Code with Claude Code or Cursor?

Connect Command 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 commandcode/<model>.

Which Command Code models can kRouter route to?

11 models, including DeepSeek V4 Pro, DeepSeek V4 Flash, Kimi K2.6. Every one is addressed as commandcode/<model> from any client.

What happens when Command 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.