Integrations

Use uncensored models in Kilo Code

A custom provider in Kilo Code's settings, or a few lines in kilo.json when you want exact token limits.

Kilo Code (VS Code extension and CLI) adds OpenAI-compatible APIs as custom providers. The current extension has no "API Provider" dropdown; you add the provider from the Providers tab.

Setup in the extension

  1. Open Settings (gear) → Providers, scroll down and choose Custom provider.
  2. Fill in:
    • Provider ID: chainless
    • Display name: Chainless
    • Provider API: OpenAI Compatible (not "OpenAI Responses")
    • Base URL: https://chainless.one/v1
    • API key: your cl-… key
    • Models: fetched automatically from /v1/models; press Fetch models to retry, or add ids by hand
  3. Click Submit and pick chainless/kimi-k3.1-pro-uncensored in the model selector.

Token limits and tool calling can only be set in the config file: ~/.config/kilo/kilo.json (global) or ./kilo.json in the project.

json
{
  "provider": {
    "chainless": {
      "npm": "@ai-sdk/openai-compatible",
      "env": ["CHAINLESS_API_KEY"],
      "options": { "baseURL": "https://chainless.one/v1" },
      "models": {
        "kimi-k3.1-pro-uncensored": {
          "name": "Kimi K3.1 Pro Uncensored",
          "tool_call": true,
          "limit": { "context": 1048576, "output": 131072 }
        },
        "glm-5.3-fast-uncensored": {
          "name": "GLM 5.3 Fast Uncensored",
          "tool_call": true,
          "limit": { "context": 1048576, "output": 131072 }
        }
      }
    }
  },
  "model": "chainless/kimi-k3.1-pro-uncensored"
}
shell
export CHAINLESS_API_KEY="cl-..."

npm defaults to @ai-sdk/openai-compatible when omitted. Without limit, Kilo assumes a context of 0, so always set it. Every public model has the same limits shown here except where /models says otherwise.

Check the provider

shell
curl https://chainless.one/v1/models -H "Authorization: Bearer $CHAINLESS_API_KEY"

If the model list loads here but not in Kilo, the provider ID or base URL in the form has a typo. If requests fail with 402, the account needs an active plan (pricing).

Sources

Checked against the official documentation on 2026-11-29. Tools change their settings often; if a field moved, the source below is the reference.

Other tools

Questions

Should I pick OpenAI Compatible or OpenAI Responses?

OpenAI Compatible. Chainless serves Chat Completions only; the Responses option would call an endpoint that does not exist.

Why does Kilo Code compact my context immediately?

Models added without a limit get a context of 0, which breaks context management. Set limit.context and limit.output in kilo.json as shown on this page.

Can I keep the key out of the config file?

Yes. Use env with CHAINLESS_API_KEY in the global config. The {env:VAR} syntax resolves only in trusted global config, not in a project kilo.json.