Documentation
Everything you need to set up lina-router and start saving tokens. Pick a guide below or follow the Quick Start if you're new.
First time? Install lina-router now:
npm install -g lina-routerQuick Start
Start hereInstall lina-router, connect a free provider, and start coding in under 5 minutes.
Claude Code Setup
PopularConfigure Claude Code to route through lina-router. Covers endpoint setup, API key, and RTK benefits.
RTK Token Saver
FeatureCompresses tool outputs (git diff, grep, ls) before they hit the model. Saves 20–40% input tokens.
Caveman Mode
FeatureForces the AI to respond in terse compressed language. Saves up to 65% on output tokens.
Other Tools Setup
SetupCursor, Cline, Codex CLI, Continue, and MITM-intercepted tools like Copilot — all configured.
Model Combos
FeatureMix providers into one named model. Set per-combo fallback strategies and multi-account rotation.
Providers Reference
ReferenceFull alias cheatsheet — kr/, cc/, glm/, and 40+ more. How to use the provider/model format.
npm install -g lina-router.