Install Kilo Code and Connect It to TeamoRouter

Kilo Code is an open-source AI coding agent for VS Code (it also has a CLI). It lets you add your own provider and choose which API protocol to use for it, so you can run Claude, GPT and other models in Kilo Code with one TeamoRouter API key.

New accounts start with a $0 balance — top up before your first request. Top up from $5. If a request returns 402 with "wallet balance is insufficient", your balance is empty — your base URL and key are fine. Top up and retry.

Field names below were checked against Kilo Code's documentation on 2026-11-03 (Kilo Code 7.8). We tested every connection on this page with the Kilo CLI 7.8.18, which uses the same configuration as the VS Code extension.

1. Install Kilo Code

Already have Kilo Code? Skip to "2. Get your TeamoRouter API Key".

  1. Open VS Code and press Command + Shift + X on macOS, or Ctrl + Shift + X on Windows and Linux, to open Extensions.
  2. Search for Kilo Code.
  3. Click the dropdown arrow next to Install and choose Install Pre-Release Version. Kilo publishes its current extension on the pre-release channel and recommends it for all users.
  4. Click the Kilo Code icon in the side bar to open the chat panel.

VS Code-compatible editors without the Microsoft marketplace (VSCodium, Windsurf and others) can install it from Open VSX. On first launch Kilo Code asks you to sign in to a free Kilo account. You don't need Kilo credits to use TeamoRouter.

2. Get your TeamoRouter API Key

Open the TeamoRouter dashboard, create an account, create an API Key and copy it.

3. Add TeamoRouter as a custom provider

Kilo Code lets you choose the API protocol for each custom provider. Pick the protocol by model family, so add TeamoRouter once per family you use:

Models Provider API Base URL Why
Claude Anthropic Messages https://api.teamorouter.com/v1 Native Claude protocol, so prompt caching and thinking work
GPT OpenAI Responses https://api.teamorouter.com/v1 Kilo recommends Responses for OpenAI models
DeepSeek, GLM, Kimi, Qwen, MiniMax, Gemini, Grok OpenAI Compatible https://api.teamorouter.com/v1 Chat Completions format

To add one:

  1. In the Kilo Code panel, click the gear icon to open Settings, then open the Providers tab.
  2. Scroll to the bottom and click Custom provider.
  3. Fill in the dialog. For Claude, for example:
    • Provider ID: teamorouter-claude (any unique name; use teamorouter-gpt and teamorouter for the other two)
    • Display name: TeamoRouter Claude
    • Provider API: Anthropic Messages
    • Base URL: https://api.teamorouter.com/v1 (keep /v1)
    • API key: the key you created in the TeamoRouter dashboard
    • Models: pick models from the list Kilo Code fetches, or add model IDs by hand, such as claude-opus-5-5, claude-sonnet-5-5 and claude-haiku-5-5. Only add Claude models to this provider.
    • Headers: leave empty.
  4. Click Submit. Repeat for GPT (OpenAI Responses) and for other models (OpenAI Compatible) if you use them.

Don't add Claude models to the OpenAI Compatible provider. Over the OpenAI format, Claude requests can miss the prompt cache, which costs more. In our test through Anthropic Messages, the second step of a task read Kilo Code's whole 54,000-token prompt from cache.

Model IDs you can use:

ID model yang tersedia37 model

OpenAIGPT9

  • gpt-6.1-sol
  • gpt-6-astra
  • gpt-6-sol
  • gpt-6-luna
  • gpt-5.6-sol
  • gpt-5.6-terra
  • gpt-5.6-luna
  • gpt-5.5
  • gpt-5.4

ClaudeClaude12

  • claude-opus-5-5
  • claude-sonnet-5-5
  • claude-haiku-5-5
  • claude-fable-5-1
  • claude-opus-5
  • claude-fable-5
  • claude-sonnet-5
  • claude-opus-4-8
  • claude-opus-4-7
  • claude-opus-4-6
  • claude-sonnet-4-6
  • claude-haiku-4-5

GeminiGemini5

  • gemini-3.8-flash
  • gemini-3.7-flash
  • gemini-3.6-flash
  • gemini-3.5-flash-lite
  • gemini-3.1-pro-preview

DeepSeekDeepSeek6

  • deepseek-flash
  • deepseek-flash-free
  • deepseek-v4-flash-vision-exp
  • deepseek-v4-pro
  • deepseek-v4-flash
  • deepseek-v4-flash-free

ZhipuGLM4

  • glm-5.3-flash
  • glm-5.3-flash-free
  • glm-5.3
  • glm-5.2

GrokGrok1

  • grok-4.6

Or edit kilo.json directly

The extension and the CLI both save providers in kilo.json (~/.config/kilo/kilo.json for all projects, or kilo.json in a project folder). You can paste the configuration instead of using the dialog. This is the configuration we tested:

jsonc
{
  "provider": {
    "teamorouter-claude": {
      "npm": "@ai-sdk/anthropic",
      "name": "TeamoRouter Claude",
      "options": { "baseURL": "https://api.teamorouter.com/v1", "apiKey": "your TeamoRouter API Key" },
      "models": {
        "claude-opus-5-5": { "name": "Claude Opus 5.5", "limit": { "context": 200000, "output": 16384 } },
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5", "limit": { "context": 200000, "output": 16384 } }
      }
    },
    "teamorouter-gpt": {
      "npm": "@ai-sdk/openai",
      "name": "TeamoRouter GPT",
      "options": { "baseURL": "https://api.teamorouter.com/v1", "apiKey": "your TeamoRouter API Key" },
      "models": {
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol", "limit": { "context": 200000, "output": 16384 } }
      }
    },
    "teamorouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "TeamoRouter",
      "options": { "baseURL": "https://api.teamorouter.com/v1", "apiKey": "your TeamoRouter API Key" },
      "models": {
        "deepseek-v4-pro": { "name": "DeepSeek V4 Pro", "limit": { "context": 128000, "output": 8192 } }
      }
    }
  },
  "model": "teamorouter-claude/claude-sonnet-5-5"
}

limit tells Kilo Code how much context it can use and how long a reply can be, so it knows when to compact a long conversation.

4. Start using Kilo Code

  1. In the Kilo Code chat panel, open the model picker and choose a TeamoRouter model.
  2. Describe the task in plain language, for example "add error handling to src/api.ts", and press Enter.
  3. Kilo Code reads files, edits code and asks before running shell commands. To change what needs approval, open Settings → Auto-Approve.

Common errors

  • 402 "wallet balance is insufficient": your TeamoRouter balance is $0. Top up and retry.
  • 401 or "Invalid API Key": check that the key was pasted in full, without spaces, and that it hasn't been deleted in the dashboard.
  • 404 or "Model Not Found": check the model ID spelling, and that the model is added to the right provider (Claude under Anthropic Messages, GPT under OpenAI Responses).
  • No model list after filling in the base URL: check that the base URL ends in /v1, then click Fetch models. You can always type model IDs by hand.
  • Connection errors: check that https://api.teamorouter.com opens from your network and that VS Code's proxy settings are correct.

Pay with USDT or USDC

You don't need a credit card to use Kilo Code with TeamoRouter. Top up your balance with USDT, USDC or ETH straight from an exchange app (Binance, OKX and others) or any wallet: click Pay with crypto in the top-up dialog, pick a coin and network, and send. The minimum is $5 (USDT on BEP20), and no browser extension is needed. Step by step: Pay for Claude and GPT APIs with crypto (USDT).

Siap? Tiga langkah untuk memulaiMasuk ke konsol · isi saldo · buat API key
DiscordDapatkan bantuan komunitas secara instan