Setup guide - Documented by Kilo Code
Use LM Studio in Kilo Code
Kilo Code has a built-in lmstudio provider that needs no API key. You add it in Settings > Providers, and unlisted models can be registered in kilo.json.
Last verified 4 steps2 official sources
Steps
- Step 1.
Download and install LM Studio, download a model (GGUF), then start the local server from the "Local Server" tab (icon <->): select the model and click "Start Server".
- Step 2.
In Kilo Code, open Settings (gear icon) and go to the Providers tab to add LM Studio. No API key is needed. You can configure the base URL if LM Studio runs on a different host or port. The extension stores this in your kilo.json config file.
- Step 3.
If the model you loaded doesn't appear in the Kilo model picker, register it as a custom model in your config file. The model key must match the model identifier LM Studio serves.
JSON{ "model": "lmstudio/my-custom-model", "provider": { "lmstudio": { "models": { "my-custom-model": { "name": "My Custom Model", }, }, }, }, } - Step 4.
If the display name differs from the API identifier, use the id field to set the API-facing name separately.
JSON{ "provider": { "lmstudio": { "models": { "my-llama": { "id": "meta-llama-3.1-8b-instruct", "name": "Llama 3.1 8B (Local)", }, }, }, }, }
Caveats
- The rendered Kilo page does not state the default base URL. The CLI tab content was not in the fetched HTML. LM Studio's own default server address is
http://localhost:1234. - The page notes 'Kilo has been acquired by Anaconda.'
- kilo.ai/docs/providers/lmstudio redirects to kilo.ai/docs/ai-providers/lmstudio.
More setup guides
Same tool, other providers
Related reading
- LM Studio Bionic: A Local-First AI Agent for Open ModelsLM Studio launches Bionic, a standalone agent harness for open models with local inference, voice input, and zero data retention cloud options.
- Ollama vs LM Studio vs vLLM vs llama.cpp: Picking a Local Runtime for Coding AgentsOllama vs LM Studio vs vLLM vs llama.cpp for coding agents: what each local runtime is for, where they overlap, and which to pick for your setup.
FAQ
How do I use LM Studio in Kilo Code?
Kilo Code has a built-in lmstudio provider that needs no API key. You add it in Settings > Providers, and unlisted models can be registered in kilo.json.
Which LM Studio model ids work in Kilo Code?
The official docs read for this guide list meta-llama-3.1-8b-instruct.
Is this an official LM Studio 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.