Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click the Gemini CLI tile
Sign in with the provider's free flow (AWS Builder ID / Google / GitHub)
Pick the model you want to expose to your IDE
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
gc/gemini-2.5-proHow Gemini CLI billing works with kRouter
Gemini CLI has a genuinely free tier — no card, no per-token cost. Rate limits apply, and kRouter rotates across accounts when you add more than one. kRouter authenticates it via oauth. 2 models are routable as gc/<model>.
Through kRouter, Gemini CLI serves chat and code completion. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Gemini CLI is a one-line model change in your client rather than a rewrite.
Gemini CLI 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 |
|---|---|---|---|
| Gemini 3 Flash Preview | gc/gemini-3-flash-preview | $0.50 | $3.00 |
| Gemini 3 Pro Preview | gc/gemini-3-pro-preview | $2.00 | $12.00 |
Gemini CLI links
Gemini CLI FAQ
Is Gemini CLI free through kRouter?
Gemini CLI does not bill per token here — kRouter uses your existing free tier, so the only cost is whatever you already pay Gemini CLI directly. kRouter itself is MIT-licensed and free.
How do I use Gemini CLI with Claude Code or Cursor?
Connect Gemini CLI 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 gc/<model>.
Which Gemini CLI models can kRouter route to?
2 models, including Gemini 3 Flash Preview, Gemini 3 Pro Preview. Every one is addressed as gc/<model> from any client.
What happens when Gemini CLI 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.