Kilo Code Local Setup: 12 Steps, 60 Min [2026] Kilo Code, the MIT-licensed open-source AI coding assistant for VS Code, JetBrains and the terminal, can be configured to run against a local open-weight model in 12 steps taking about 60 minutes, according to a Shattered walkthrough published in 2026. The guide builds a small Python library called textkit with seven deliberately failing tests, a preflight script that checks the local model, and a project config governing what the agent may read, edit and run, with the goal of turning the red suite green without touching the tests. Anaconda announced on July 15, 2026 that it had acquired Kilo Code, though individual use remains free; the stable GitHub release v7.8.12 changed the default Kilo Gateway route to ai-gateway.kilo.ai with a KILO_AI_GATEWAY_URL override. Kilo Code, the open-source AI coding assistant for VS Code, JetBrains https://shattered.io/jetbrains-java-kotlin-vs-code-cursor-rc-2026/ and the terminal, can run against a model on your own hardware instead of a paid API. Anaconda announced on July 15, 2026 that it had acquired Kilo Code https://www.anaconda.com/press/anaconda-acquires-kilo-code , but individual use is still free and the clients are described as MIT-licensed. That combination makes Kilo Code a practical open-source AI coding assistant to pair with a local open-weight model. Demand for this kind of tooling keeps climbing. In its 2025 developer survey, Stack Overflow reported that “31% of developers said they currently use AI agents, while 17% planned to use them.” https://stackoverflow.co/company/press/archive/stack-overflow-2025-developer-survey/ Teams that cannot send proprietary code to a third-party API are exactly where a local Kilo Code setup earns its keep. If you prefer a terminal-first agent, our walkthrough of OpenCode with Ollama https://shattered.io/open-source-ai-coding-assistant-opencode-ollama-2026/ covers that route. Kilo Code takes the editor-first route and adds permission rules, specialised agents and a shared config file across VS Code, JetBrains and the CLI. The project built below is a small Python library called textkit with seven deliberately failing tests, a preflight script that checks your local model, and a project config that decides what the agent may read, edit and run. The agent’s job is to turn the red suite green without touching the tests. Don't miss new tech stories on Google Add Shattered once in the Google app and our stories show up in your news suggestions. Add now https://www.google.com/preferences/source?hl=en&q=https%3A%2F%2Fshattered.io%2F Why Kilo Code Fits a Local Open-Source Coding Setup Kilo Code ships as a VS Code extension, a JetBrains plugin and a CLI. According to its own pricing material, it supports more than 60 providers and more than 500 models, including hosted frontier models, open-weight models, free models, bring-your-own-key setups and local inference. That breadth matters for a local build because you never bet the workflow on one runtime. If your 30B model stalls on a hard refactor, you change one line of config and the same agent, rules and history carry over to a hosted model. The current VS Code extension is built on the Kilo CLI, and every client reads the same JSONC config files. Kilo’s docs put the global file at ~/.config/kilo/kilo.jsonc and the project file at kilo.jsonc or .kilo/kilo.jsonc . The stable release tagged on GitHub as v7.8.12 https://github.com/Kilo-Org/kilocode/releases/tag/v7.8.12 is one of the October 2026 7.8.x builds, and newer ones have shipped since. The v7.8.12 release changed the default Kilo Gateway route for chat, model listing, embeddings, autocomplete and transcription to ai-gateway.kilo.ai , with a KILO AI GATEWAY URL override for anyone who proxies traffic. Local does not mean fully offline. Kilo’s own documentation notes that account services, connected tools and some application functions can still reach hosted services even when inference stays on your machine. Treat the local model as a privacy and cost lever for the code that leaves your laptop, and verify the rest with a firewall rule if you need a strict air gap. | Plan or service | Price | What it covers | |---|---|---| | Individual VS Code, JetBrains, CLI | Free | The clients themselves. Inference is billed separately or runs locally | | Local models Ollama, LM Studio | $0 in software fees | You pay in hardware and electricity instead | | Kilo Gateway | Provider list rates, no inference markup | Pay-as-you-go access to 500+ models through one key | | Credit top-ups by card | 5% processing fee | Applies to card purchases of credits, not to seats or non-card payments | | Teams | $15 per user per month | Shared agent modes, analytics, centralized billing, shared BYOK. Inference and cloud compute extra | | Enterprise | Custom pricing | SSO, SCIM, audit logs, private gateway, SLAs | Expect a gap between local and hosted quality. Kilo’s Ollama guide warns that locally runnable models are generally much smaller than cloud-hosted ones, get stuck in loops more often, call tools incorrectly more often and need more prompt trial and error. Plan for that, keep tasks small, and the setup below stays productive. For a broader look at which open-weight models deserve a spot on your disk, see our ranking of open-source LLMs by input price https://shattered.io/best-open-source-llm-october-2026-kimi-glm-deepseek/ . Prerequisites and Tested Versions Everything below was assembled against Kilo’s official documentation as of October 23, 2026. The Python project, the preflight script, the config file and the test results were run and checked on a Linux machine. The editor, extension and Ollama steps follow the vendor docs, so pin your own versions once they work. | Component | Version or requirement | Role | |---|---|---| | Visual Studio Code | Latest stable | Editor that hosts the extension | | Kilo Code extension | 7.8.x line v7.8.12 stable on GitHub, newer builds since | The agent | | Kilo CLI optional | npm package @kilocode/cli | Terminal client sharing the same config | | Ollama | Latest release | Local model runtime on port 11434 | | Model | qwen3-coder:30b Kilo’s documented recommendation , devstral:24b as the alternative | Local coding model | | Python | 3.12 tested on 3.12.3 | Lab project | | pytest | 9.x tested on 9.1.1 | Test runner | | Node.js | 20 or newer | Only for the CLI install | | Hardware | GPU with 24 GB VRAM or more, or a Mac with 32 GB unified memory or more | Per Kilo’s Ollama guide | The hardware line comes straight from Kilo’s Ollama documentation, which says the models it discusses need a GPU with a large amount of VRAM 24 GB or more or a MacBook with a large amount of unified memory 32 GB or more to run at decent speed. Smaller machines can still handle side features such as Enhance Prompt and commit-message generation, since the docs say smaller models may suffice there. Microsoft is also reshaping the editor. A VS Code blog post dated October 15, 2026 https://code.visualstudio.com/blogs/2026/10/15/modern-ui/ previews a modernized interface with Dark 2026 and Light 2026 themes, and users can still switch back to the classic workbench. The Kilo steps below describe the sidebar and the gear-icon settings panel, so pick whichever UI you like. Create a working folder for the whole exercise and keep it outside any repository that holds client code. The agent will read and edit files here, so a clean sandbox keeps experiments contained and makes checkpoints easy to reason about. Phase 1, Steps 1 to 3: Install Ollama, Pull the Model, Fix the Context Window Step 1: install Ollama and start the daemon. On Linux, the official install script does the job. On macOS, use Homebrew or the app installer from the Ollama site. On Windows, run the installer. All three expose the same HTTP API on http://localhost:11434 . Linux curl -fsSL https://ollama.com/install.sh | sh macOS Homebrew brew install ollama Confirm the CLI works ollama --version Start the daemon in its own terminal skip if a service already runs it ollama serve If ollama serve reports that the address is already in use, a background service started it for you. That is fine. Confirm with one request. curl -s http://localhost:11434/api/tags {"models": } <- empty list on a fresh install Step 2: pull the coding model. Kilo’s Ollama guide currently recommends qwen3-coder:30b for the Kilo Code agent, with devstral:24b as the alternative. If a tool call fails, rephrase the prompt or press the Enhance Prompt button. ollama pull qwen3-coder:30b ollama list The download runs to many gigabytes, so start it on a wired connection. Newer open-weight coding models appear weekly, and the Advanced Tips section covers how to swap one in without touching the rest of the setup. The pull above gives you a known-good baseline first. Step 3: bake a 32k context window into a derived model. This step prevents the most common local failure. Kilo’s docs say Ollama truncates prompts to a very short length by default and that you need at least 32k tokens for decent results. A Modelfile fixes the problem at the source, so every client that talks to this model name gets the same window. cat Modelfile <<'EOF' FROM qwen3-coder:30b PARAMETER num ctx 32768 PARAMETER temperature 0.2 EOF ollama create qwen3-coder-32k -f Modelfile ollama run qwen3-coder-32k "Reply with the single word: ready" ollama ps The last command shows what is loaded and where. Look at the processor column. A value such as 100% GPU means the model fits in VRAM. A split between CPU and GPU means part of it spilled into system memory, and generation will crawl. If you see a split, lower num ctx or switch to the smaller devstral:24b . Larger windows cost memory, so raise the number only when your hardware has headroom. You can also set Context Window Size num ctx in the Kilo provider settings, as the docs describe. The derived-model approach wins because the value travels with the model name and works the same way from the editor and the CLI. Phase 2, Steps 4 and 5: Build the Lab Project and the Preflight Script Step 4: scaffold the project with a red test suite. A coding agent needs an objective pass or fail signal, and a local model needs one even more. Tests give the agent a loop it can run without your help. The library below has a slugify function with three planted defects: it never trims leading or trailing hyphens, truncation can leave a dangling hyphen, and empty results do not fall back to a default. mkdir kilo-local-lab && cd kilo-local-lab git init python3 -m venv .venv . .venv/bin/activate Windows: .venv\Scripts\activate pip install pytest mkdir -p textkit tests scripts .kilo printf '.venv/\n pycache /\n.pytest cache/\n.env\n' .gitignore Copy the Modelfile from Step 3 into this folder so the model recipe lives with the code. Then create the four source files exactly as shown. The package exports slugify , a tiny main module lets you try it from the shell, and the tests encode the specification. python from .slugify import slugify all = "slugify" php import re import unicodedata def slugify text: str, max length: int = 60 - str: """Return a lowercase ASCII slug. Rules: words are joined by single hyphens, no leading or trailing hyphen, at most max length characters, and "untitled" when nothing usable is left. """ normalized = unicodedata.normalize "NFKD", text ascii text = normalized.encode "ascii", "ignore" .decode "ascii" slug = re.sub r" ^a-z0-9 +", "-", ascii text.lower return slug :max length php import sys from .slugify import slugify def main argv: list str - int: if not argv: print "usage: python -m textkit