---
title: "Draft Kilo Code integration"
description: "Unverified draft settings for using Kilo Code with minirouter."
canonical_url: "https://minirouter.sh/integrations/kilo-code"
markdown_url: "https://minirouter.sh/integrations/kilo-code.md"
last_updated: "2026-08-04"
---

# Kilo Code + minirouter

Verification status: UNVERIFIED DRAFT
Confirm the current client fields and run the verification request before relying on this configuration.

Draft OpenAI-compatible provider configuration for Kilo Code.

Base URL: https://api.minirouter.sh/v1
Get a key: https://minirouter.sh/key

## Settings

Kilo Code sidebar → ⚙ Settings → Providers

1. API Provider: OpenAI Compatible
2. Base URL: https://api.minirouter.sh/v1
   The bare host also works. Never append /chat/completions.
3. API Key: mr-live-… (your key)
4. Model: meta/llama-3.3-70b

## Draft configuration

Verify outside Kilo first — one request, literal values

```
curl https://api.minirouter.sh/v1/chat/completions \
  -H "Authorization: Bearer $MINIROUTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"meta/llama-3.3-70b","messages":[{"role":"user","content":"ping"}]}'
```

## Recommended models

Only use a model after confirming it appears in the live model catalog at https://minirouter.sh/api/v1/models.

- mistral/devstral-small-2: Coding-oriented candidate for edits and tool calls.
- meta/llama-3.3-70b: General-purpose candidate for agent tasks.
- deepseek/deepseek-v3: Reasoning-oriented candidate for multi-step work.
- meta/llama-4-maverick: Long-context candidate for larger repositories.

## Troubleshooting

### 404, HTML, or a parse error on every request

Almost always the base URL. Use https://api.minirouter.sh/v1 — the bare host without /v1 also works, but never append /chat/completions to the base URL field; the client adds that path itself.

Error reference: https://minirouter.sh/docs/errors#invalid_request

### 401 on every request

Wrong or rotated key. Keys start with mr-live-; after a rotation the old key keeps working for 24 hours, then dies.

Error reference: https://minirouter.sh/docs/errors#invalid_api_key

### 402 before any tokens arrive

Balance below the estimated cost of the request. Top up ($5 minimum) — and watch the x-minirouter-balance-usd header, the low-balance signal every response carries.

Error reference: https://minirouter.sh/docs/errors#insufficient_credits

### Response stops mid-sentence with a credits message

Balance hit $0 mid-stream. The stream ends with a terminal error naming the exact charge for tokens delivered — never a silent close.

Error reference: https://minirouter.sh/docs/errors#insufficient_credits
