Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by Kilo Code

Use Ollama in Kilo Code

Kilo Code has a built-in Ollama provider for a local daemon; configure it in Settings > Providers (VS Code) or in kilo.json with baseURL http://localhost:11434/v1 and a model like ollama/qwen3-coder:30b.

Last verified 7 steps2 official sources

Steps

  1. Step 1.

    Make sure Ollama is running.

    Terminal
    ollama serve
  2. Step 2.

    In a second terminal, pull a model.

    Terminal
    ollama pull qwen3-coder:30b
  3. Step 3.

    VS Code: open Settings (gear icon) and go to the Providers tab to add Ollama. No API key is needed. The extension stores this in your kilo.json config file.

  4. Step 4.

    CLI: config file (~/.config/kilo/kilo.json or ./kilo.json).

    JSON
    {
      "provider": {
        "ollama": {
          "baseURL": "http://localhost:11434/v1",
        },
      },
    }
  5. Step 5.

    Then set your default model.

    JSON
    {
      "model": "ollama/qwen3-coder:30b",
    }
  6. Step 6.

    Set Context Window Size (num_ctx) in the API Provider settings; Kilo says you need at least 32k for decent results.

  7. Step 7.

    If a model does not appear in the picker, register it as a custom model.

    JSON
    {
      "model": "ollama/my-finetune:latest",
      "provider": {
        "ollama": {
          "models": {
            "my-finetune:latest": {
              "name": "My Fine-tuned Model",
              "tool_call": true,
              "limit": {
                "context": 32768,
                "output": 8192,
              },
            },
          },
        },
      },
    }

Caveats

  • Ollama's docs have no Kilo Code page; all steps come from Kilo Code's own docs.
  • Use ollama/<model_name> for local models. An ollama-cloud/... model means you are on the hosted Kilo Gateway/BYOK path, not your local server.
  • Kilo recommends qwen3-coder:30b and notes it sometimes fails to call tools correctly; devstral:24b is the documented alternative.
  • Requests time out after 10 minutes by default; raise API Request Timeout in Kilo Code settings for slow local models.

FAQ

How do I use Ollama in Kilo Code?

Kilo Code has a built-in Ollama provider for a local daemon; configure it in Settings > Providers (VS Code) or in kilo.json with baseURL http://localhost:11434/v1 and a model like ollama/qwen3-coder:30b.

Which Ollama model ids work in Kilo Code?

The official docs read for this guide list qwen3-coder:30b and devstral:24b. Requests go to http://localhost:11434/v1.

Is this an official Ollama and Kilo Code setup?

Kilo Code documents this setup in its own docs. It was last checked against 2 official pages on October 17, 2026.

Sources

Last verified against 2 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.