NewHow we catch a seller listing the wrong model, and refund you if one does.

Kilo Code with MartLLM: add a custom provider in 1 minute

In Kilo Code open Settings → Providers → Custom provider, set Provider API to OpenAI Compatible, Base URL to https://api.martllm.com/v1, paste your MartLLM key, press Fetch models, pick the ones you want and Submit. The same setup can live in ~/.config/kilo/kilo.jsonc.

Kilo Code's current version (7.x) shares one settings file between VS Code, JetBrains and the kilo CLI, so you set MartLLM up once. Older guides that show a provider dropdown with model-info fields describe the legacy extension.

Fastest: one command

npx uberllm init --tool kilo-code

For VS Code, JetBrains and the kilo CLI at once: it makes a key in your browser, adds the provider to ~/.config/kilo/kilo.jsonc with each model's real context and output limits, and adds one line to your shell profile that loads the key. The file is backed up first, and npx uberllm init --undo puts it back. What it changes. To do it by hand, follow the steps below.

Steps (in the editor)

  1. Make a key on your keys page and add credit.
  2. Open Kilo Code, click the gear icon → Providers tab, scroll to the bottom and click Custom provider.
  3. Fill in:
    • Provider ID: uberllm
    • Display name: MartLLM
    • Provider API: OpenAI Compatible
    • Base URL: https://api.martllm.com/v1
    • API key: your ull_… key
  4. Press Fetch models. The list comes from MartLLM; keep the ones you want, for example moonshotai/kimi-k3.
  5. Click Submit, then choose the model in Kilo's model picker.

Steps (config file)

The same provider in ~/.config/kilo/kilo.jsonc (Windows: C:\Users\<you>\.config\kilo\kilo.jsonc; for one project, .kilo/kilo.jsonc in the project):

{
  "provider": {
    "uberllm": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MartLLM",
      "env": ["UBERLLM_API_KEY"],
      "options": { "baseURL": "https://api.martllm.com/v1" },
      "models": {
        "moonshotai/kimi-k3": {
          "name": "moonshotai/kimi-k3",
          "tool_call": true,
          "limit": { "context": 200000, "output": 32000 }
        }
      }
    }
  },
  "model": "uberllm/moonshotai/kimi-k3"
}

Then set UBERLLM_API_KEY=ull_your_key in your environment. The limit numbers are an example: copy the real context length from the model's page on martllm.com/models.

Two settings people miss

  • limit: without it Kilo treats the context as 0 and never compacts a long task, so it eventually fails. The editor dialog cannot set it; add it in the file ("edit advanced settings in the JSON config file").
  • tool_call: true: Kilo's agent works through tools. If the model answers in plain text instead of editing files, this is missing.

Prefer the Anthropic format?

Kilo also offers Provider API → Anthropic Messages. With MartLLM, use https://api.martllm.com/v1 as the Base URL there as well (not the bare host), and the same key. Model fetching is not available in that mode, so type the ids yourself.

Troubleshooting

  • "Authentication failed. Check the API key above and try again." when fetching: the key is missing or has a space.
  • Model not in the picker: the model key must match uberllm/<model id>. Run kilo models to see what Kilo loaded.
  • Agent never edits files: add "tool_call": true to the model.
  • Task fails after a long session: set limit.context.
  • 402 insufficient credits: add credit on the credits page.

Keep reading

Coding models for Kilo Code

Tool calls and long context. The first one is in the config below.

ModelModel id (paste this)Price now
Kimi K3moonshotai/kimi-k3$0.0384 in · $0.2021 out / 1M
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash$0.0075 in · $0.0282 out / 1M
GLM 5.3z-ai/glm-5.3$0.0029 in · $0.0100 out / 1M
Claude Sonnet 5.5anthropic/claude-sonnet-5.5$0.3600 in · $1.80 out / 1M
Qwen 3 Coder 480bqwen/qwen3-coder$0.0030 in · $0.0099 out / 1M
GPT-5.5openai/gpt-5.5$1.25 in · $7.50 out / 1M
Claude Opus 5.5anthropic/claude-opus-5.5$0.6780 in · $3.39 out / 1M
DeepSeek V4 Prodeepseek/deepseek-v4-pro$0.0634 in · $0.1268 out / 1M
MiniMax M3minimax/minimax-m3$0.0230 in · $0.0920 out / 1M

Prices at the last hourly build, no fee added · every model →

Cheaper models for routine edits

ModelModel id (paste this)Price now
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flash$0.0075 in · $0.0282 out / 1M
GLM 5.3z-ai/glm-5.3$0.0029 in · $0.0100 out / 1M
Qwen 3 Coder 480bqwen/qwen3-coder$0.0030 in · $0.0099 out / 1M
DeepSeek V3.2deepseek/deepseek-v3.2$0.0026 in · $0.0038 out / 1M
GPT-OSS 120Bopenai/gpt-oss-120b$0.000069 in · $0.00030 out / 1M
Kimi K2 Thinkingmoonshotai/kimi-k2-thinking$0.0059 in · $0.0248 out / 1M

Prices at the last hourly build, no fee added · every model →

FAQ

How do I add MartLLM to Kilo Code?

Settings → Providers → Custom provider: Provider API OpenAI Compatible, Base URL https://api.martllm.com/v1, your MartLLM key, Fetch models, Submit. Or add the same provider to ~/.config/kilo/kilo.jsonc.

Why does Kilo Code stop on long tasks with a custom provider?

Without limit.context in kilo.jsonc Kilo assumes a context of 0 and cannot compact. Add the model’s real context and output limits.