Skip to content

Cannot configure context windows for Ollama #3319

@eduvationit

Description

@eduvationit

Plugin Type

Kilo Code CLI

App Version

0.0.10

Description

I cannot configure the context windows for a custom Ollama model.
Or I can't find the config for it.

My config:

{
  "version": "1.0.0",
  "mode": "code",
  "telemetry": true,
  "provider": "Ollama",
  "providers": [
    {
      "id": "Ollama",
      "provider": "ollama",
      "ollamaBaseUrl": "http://0.0.0.0:11434",
      "ollamaModelId": "qwen3-coder:30b-a3b-q8_0",
      "ollamaApiKey": ""
    }
  ],
  "autoApproval": {
    "enabled": true,
    "read": {
      "enabled": true,
      "outside": true
    },
    "write": {
      "enabled": true,
      "outside": true,
      "protected": false
    },
    "browser": {
      "enabled": false
    },
    "retry": {
      "enabled": false,
      "delay": 10
    },
    "mcp": {
      "enabled": true
    },
    "mode": {
      "enabled": true
    },
    "subtasks": {
      "enabled": true
    },
    "execute": {
      "enabled": true,
      "allowed": [
        "ls",
        "cat",
        "echo",
        "pwd"
      ],
      "denied": [
        "rm -rf",
        "sudo rm",
        "mkfs",
        "dd if="
      ]
    },
    "question": {
      "enabled": false,
      "timeout": 60
    },
    "todo": {
      "enabled": true
    }
  },
  "theme": "dark"
}

Reproduction steps

  1. Configure a custom Ollama model
  2. Start kilocode cli
  3. Run a prompt
  4. Error should pop up:
Image

Provider

Ollama

Model

qwen3-coder:30b-a3b-q8_0

System Information

No response

Metadata

Metadata

Assignees

Labels

CLIKilo Code CLI

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions