# Kilo Code

Run Kilo Code on Boundless models: the kilo.jsonc provider, model ids with limits, a verify step and common errors.


Kilo Code's CLI and extension share one config, `kilo.jsonc`. It is OpenCode's format with Kilo's schema, and the base URL is `https://api.inference.boundless.network/v1`.

## Install

Install Kilo Code from its own documentation first. Then pick one way to point it at Boundless.

Run this in a terminal on macOS or Linux and choose **Kilo Code**:

```bash
curl -fsSL https://boundless.md/install | sh
```

Or run the package yourself, which also works on Windows:

```bash
npx -y @boundless.md/setup@latest
```

Setup signs you in through your browser, creates a key on your account and backs up every file it changes. To undo it, run `curl -fsSL https://boundless.md/install | sh -s -- --revert`. Need a key to configure by hand? Create one in [API Keys](https://inference.boundless.network/settings/api-keys).

## Configure

### Kilo Code

Kilo's CLI and extension share one config, `kilo.jsonc` in your project or `~/.config/kilo/kilo.jsonc`. It is OpenCode's format with Kilo's schema:

```json
{
  "$schema": "https://app.kilo.ai/config.json",
  "model": "boundless/deepseek/deepseek-v4.1-flash",
  "small_model": "boundless/deepseek/deepseek-v4-flash-0731",
  "provider": {
    "boundless": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Boundless",
      "options": {
        "baseURL": "https://api.inference.boundless.network/v1",
        "apiKey": "{env:BOUNDLESS_API_KEY}"
      },
      "models": {
        "deepseek/deepseek-v4-flash-0731": {
          "name": "DeepSeek V4 Flash",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "deepseek/deepseek-v4.1-flash": {
          "name": "DeepSeek V4.1 Flash",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "deepseek/deepseek-v4.1-flash-1017": {
          "name": "DeepSeek V4.1 Flash 1017",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "openai/gpt-oss-120b": {
          "name": "gpt-oss-120b",
          "limit": {
            "context": 131072,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "nvidia/nemotron-3-super-120b-a12b": {
          "name": "Nemotron 3 Super",
          "limit": {
            "context": 262144,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "qwen/qwen3.6-35b-a3b": {
          "name": "Qwen3.6-35B-A3B",
          "limit": {
            "context": 262144,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "moonshotai/kimi-k3": {
          "name": "Kimi K3",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "moonshotai/kimi-k3.1-pro": {
          "name": "Kimi K3.1 Pro",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "z-ai/glm-5.3": {
          "name": "GLM-5.3",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "z-ai/glm-5.3-flash": {
          "name": "GLM-5.3 Flash",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "video"
            ]
          }
        },
        "deepseek/deepseek-v4-pro-0813": {
          "name": "DeepSeek V4 Pro",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "google/gemma-4-31b-it": {
          "name": "Gemma 4 31B",
          "limit": {
            "context": 262144,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "xiaomi/mimo-v2.6-pro": {
          "name": "MiMo-V2.6 Pro",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "audio",
              "video"
            ]
          }
        },
        "xiaomi/mimo-v2.6-flash": {
          "name": "MiMo-V2.6 Flash",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "audio",
              "video"
            ]
          }
        },
        "minimax/minimax-m3.1-flash": {
          "name": "MiniMax M3.1 Flash",
          "limit": {
            "context": 1000000,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "video"
            ]
          }
        },
        "minimax/minimax-m3": {
          "name": "MiniMax M3",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "video"
            ]
          }
        },
        "minimax-m3-free": {
          "name": "MiniMax M3 (Free)",
          "limit": {
            "context": 1048576,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image",
              "video"
            ]
          }
        },
        "openai/gpt-6-luna": {
          "name": "GPT-6 Luna",
          "limit": {
            "context": 1050000,
            "output": 128000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "openai/gpt-6-sol": {
          "name": "GPT-6 Sol",
          "limit": {
            "context": 1050000,
            "output": 128000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "anthropic/claude-opus-5.5": {
          "name": "Claude Opus 5.5",
          "limit": {
            "context": 1000000,
            "output": 128000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        },
        "anthropic/claude-fable-5.1": {
          "name": "Claude Fable 5.1",
          "limit": {
            "context": 262144,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true
        },
        "anthropic/claude-fable-5.2": {
          "name": "Claude Fable 5.2",
          "limit": {
            "context": 1000000,
            "output": 32000
          },
          "reasoning": true,
          "tool_call": true,
          "modalities": {
            "input": [
              "text",
              "image"
            ]
          }
        }
      }
    }
  }
}
```

`small_model` is what Kilo uses for session titles, commit messages and prompt enhancement. Leave it unset while signed in to Kilo's own gateway and those go there instead. In the extension the same provider can be added by hand: **Settings → Providers → Custom provider**, with Provider API left on **OpenAI Compatible**.

## Model ids

The examples use `boundless/deepseek/deepseek-v4.1-flash`. Use `boundless/` plus any id from `GET https://api.inference.boundless.network/v1/models`, never the bare id; the [models page](https://inference.boundless.network/models) lists each one with its price and limits. The list in the config above carries each model's limits.

## Verify

To check the base URL and key on their own, list the models the gateway serves. A list of models means both are right. A `401` means the key is missing or wrong:

```bash
curl https://api.inference.boundless.network/v1/models -H "Authorization: Bearer YOUR_API_KEY"
```

Then send a short message in a new session and check that a reply comes back.

## Common errors

| What you see | What it usually is |
| --- | --- |
| `401` on every request | The key is wrong, or `BOUNDLESS_API_KEY` is not set where Kilo starts. |
| Session titles or commit messages come from another provider | `small_model` is unset while you are signed in to Kilo's own gateway. Set it. |
| An error naming a model you never chose | The harness is sending its default. Set the model explicitly, including any small or background slot. |
| `403` with `model_not_allowed` | Your team admin has not enabled that model for you. Ask them, or pick another. See [Model access](https://inference.boundless.network/docs/teams#model-access). |

Every status and code is on the [Errors](https://inference.boundless.network/docs/errors) page. Other harnesses are on the [Coding Agents & Harnesses](https://inference.boundless.network/docs/coding-agents-and-harnesses) page.
