Other Tools Setup
Any OpenAI-compatible tool works with lina-router by pointing its base URL to localhost:20128/v1. Below are configs for the most common ones.
Cursor
IDE- 1Open Cursor → Settings (⌘, or Ctrl+,)
- 2Go to Models → API Keys
- 3Set "Override OpenAI Base URL" to http://localhost:20128/v1
- 4Paste your lina-router API key in the API Key field
- 5Select any model using the provider/model format
Base URL: http://localhost:20128/v1
API Key: <your-lina-router-api-key>
Model: kr/claude-sonnet-4-5Cline / Roo
VS Code- 1Open VS Code → Cline extension panel
- 2Click the settings gear → API Provider
- 3Choose "OpenAI Compatible"
- 4Set Base URL to http://localhost:20128/v1
- 5Enter your lina-router API key
- 6Set Model ID using the provider/model format
Provider: OpenAI Compatible
Base URL: http://localhost:20128/v1
API Key: <your-lina-router-api-key>
Model ID: kr/claude-sonnet-4-5Roo Code uses the same settings panel — identical config.
Codex CLI
CLI- 1Open or create ~/.codex/config.json
- 2Add the apiBaseUrl and model fields below
- 3Run: codex (it will use lina-router automatically)
{
"apiBaseUrl": "http://localhost:20128/v1",
"apiKey": "<your-lina-router-api-key>",
"model": "cx/claude-sonnet-4-5"
}Use cx/ alias to route through your Codex subscription, or kr/ for free Kiro.
Continue
VS Code / JetBrains- 1Open Continue extension → config.json (click the gear icon)
- 2Add a new model entry under the models array
{
"models": [
{
"title": "lina-router",
"provider": "openai",
"apiBase": "http://localhost:20128/v1",
"apiKey": "<your-lina-router-api-key>",
"model": "kr/claude-sonnet-4-5"
}
]
}IDE-Intercepted Tools
Some tools don't expose an API endpoint setting. lina-router supports them via a built-in MITM proxy that intercepts traffic at the network level — no code changes needed.
gh/GitHub Copilot
Requires MITM proxy — Copilot traffic is intercepted at the network level. No endpoint setting in the IDE.
kr/Kiro
Kiro works natively via lina-router without MITM. Add it as a provider in Dashboard → Providers → Kiro.
ag/Antigravity
Requires MITM proxy setup. See Dashboard → MITM Proxy for step-by-step instructions.
MITM setup guide: Dashboard → MITM Proxy — walks you through certificate trust + proxy activation.