Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click the Grok CLI (Grok Build) 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
gcli/<model-id>How Grok CLI (Grok Build) billing works with kRouter
Grok CLI (Grok Build) 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. 4 models are routable as gcli/<model>.
Through kRouter, Grok CLI (Grok Build) serves chat and code completion. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Grok CLI (Grok Build) is a one-line model change in your client rather than a rewrite.
Sign in with your xAI / Grok account via device code. Uses Grok Build subscription credits (cli-chat-proxy.grok.com), not xAI API credits.
Grok CLI (Grok Build) 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 |
|---|---|---|---|
| Grok 4.5 | gcli/grok-4.5 | $0.50 | $2.00 |
| Grok 4.5 (Low Effort) | gcli/grok-4.5-low | $0.50 | $2.00 |
| Grok 4.5 (Medium Effort) | gcli/grok-4.5-medium | $0.50 | $2.00 |
| Grok 4.5 (High Effort) | gcli/grok-4.5-high | $0.50 | $2.00 |
Grok CLI (Grok Build) links
Grok CLI (Grok Build) FAQ
Is Grok CLI (Grok Build) free through kRouter?
Grok CLI (Grok Build) does not bill per token here — kRouter uses your existing subscription via OAuth, so the only cost is whatever you already pay Grok CLI (Grok Build) directly. kRouter itself is MIT-licensed and free.
How do I use Grok CLI (Grok Build) with Claude Code or Cursor?
Connect Grok CLI (Grok Build) 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 gcli/<model>.
Which Grok CLI (Grok Build) models can kRouter route to?
4 models, including Grok 4.5, Grok 4.5 (Low Effort), Grok 4.5 (Medium Effort). Every one is addressed as gcli/<model> from any client.
What happens when Grok CLI (Grok Build) 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.