Docs/Other Tools

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
  1. 1Open Cursor → Settings (⌘, or Ctrl+,)
  2. 2Go to Models → API Keys
  3. 3Set "Override OpenAI Base URL" to http://localhost:20128/v1
  4. 4Paste your lina-router API key in the API Key field
  5. 5Select any model using the provider/model format
Cursor settings
Base URL:  http://localhost:20128/v1
API Key:   <your-lina-router-api-key>
Model:     kr/claude-sonnet-4-5

Cline / Roo

VS Code
  1. 1Open VS Code → Cline extension panel
  2. 2Click the settings gear → API Provider
  3. 3Choose "OpenAI Compatible"
  4. 4Set Base URL to http://localhost:20128/v1
  5. 5Enter your lina-router API key
  6. 6Set Model ID using the provider/model format
Cline settings
Provider:  OpenAI Compatible
Base URL:  http://localhost:20128/v1
API Key:   <your-lina-router-api-key>
Model ID:  kr/claude-sonnet-4-5

Roo Code uses the same settings panel — identical config.

Codex CLI

CLI
  1. 1Open or create ~/.codex/config.json
  2. 2Add the apiBaseUrl and model fields below
  3. 3Run: codex (it will use lina-router automatically)
~/.codex/config.json
{
  "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
  1. 1Open Continue extension → config.json (click the gear icon)
  2. 2Add a new model entry under the models array
~/.continue/config.json
{
  "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.