packages/kilo-docs/pages/automate/extending/local-models.md
Kilo Code supports running language models locally on your own machine using Ollama, LM Studio, and Atomic Chat. This offers several advantages:
However, using local models also has some drawbacks:
Kilo Code supports several local model providers:
provider.atomic-chat, atomicChat.autoDetect, or an atomic-chat/... model).For detailed setup instructions, see:
"No connection could be made because the target machine actively refused it": This usually means that Atomic Chat, Ollama, or LM Studio isn't running, or is on a different port than Kilo Code expects (Atomic Chat: http://127.0.0.1:1337/v1, LM Studio: http://127.0.0.1:1234/v1, Ollama: http://127.0.0.1:11434). Double-check the Base URL setting.
Slow Response Times: Local models can be slower than cloud-based models, especially on less powerful hardware. If performance is an issue, try using a smaller model.
Model Not Found: Ensure you have typed in the name of the model correctly. If you're using Ollama, use the same name that you provide in the ollama run command.