Save 20–40% tokens. Code with FREE AI.

LINA is your guide to setting up lina-router — the smart local proxy that routes your AI coding tools to 40+ providers and slashes token costs automatically.

$npm install -g lina-router
LINA mascot

Setup in minutes

How It Works

01

Install

One npm command. lina-router installs globally and opens a dashboard at localhost:20128.

npm install -g lina-router
02

Connect

Add a free provider like Kiro AI (no signup) or any of 40+ supported providers from the dashboard.

lina-router → Dashboard → Providers
03

Code

Point your AI tool's API endpoint to localhost:20128/v1. RTK starts saving tokens immediately.

Endpoint: localhost:20128/v1

Why lina-router

Built to save you money

Stop burning tokens on tool outputs. Stop switching providers manually. lina-router handles everything in the background.

RTK Token Saver

RTK (Result Token Kompressor) auto-compresses tool outputs (git diff, grep, ls) before they hit the model. Save 20–40% tokens on every request — automatically.

Learn more →

Auto-Fallback Routing

When your subscription quota runs out, lina-router silently falls back to cheap APIs, then free models. Zero downtime, zero intervention.

Multi-Account Round-Robin

Got multiple accounts? lina-router rotates between them automatically to distribute load and avoid rate limits.

Universal Compatibility

One endpoint. Works with every major AI coding tool. Change your endpoint once, never touch it again.

Works with every tool you use

One endpoint change. Universal compatibility.

Claude Code
Cursor
Cline
Copilot
Codex
OpenCode
Roo
Continue
Kilo Code
Antigravity
Droid
OpenClaw

Powered by Claude

Fully compatible
with Claude's API.

lina-router speaks Claude's native API format — so every RTK compression and provider fallback works with zero translation. No wrappers, no re-encoding, no surprises.

Claude Code Setup guide

40+

Supported providers

20–40%

Token savings

60s

Setup time

Free

Always a free tier

Fallback Strategy

Never stop coding

lina-router chains providers in tiers. When one runs out, the next one activates automatically.

Tier 1 — Subscription

  • Claude Code (Max/Pro)
  • GitHub Copilot
  • Codex CLI

Uses your existing subscription quota first

↓ when exhausted

Tier 2 — Cheap APIs

  • GLM ($0.6/1M tokens)
  • MiniMax ($0.2/1M tokens)
  • DeepSeek

Kicks in when quota is exhausted

↓ when exhausted

Tier 3 — Free

  • Kiro AI (unlimited)
  • OpenCode Free (no auth)
  • Vertex AI ($300 credits)

Final fallback — always available

Ready to stop wasting tokens?

Install lina-router in 60 seconds and let LINA walk you through the rest.