Run AI coding models on your own hardware
If your code can't leave your machine, or you just want to avoid per-token bills, you can run open coding models locally. The setup has two parts: a runtime that runs the model, and an assistant that connects it to your editor.
Runtimes (run the model)
- Ollama: run open models, including coding models, locally. Open source.
- LM Studio: a desktop app to download and run local LLMs. Free.
- llama.cpp: LLM inference in C/C++ on everyday hardware. Open source.
Models
- Qwen3-Coder: open-weight coding models from the Qwen team.
Assistants (use it in your editor)
- Continue: an open-source assistant that works with local or hosted models.
- Tabby: a self-hosted AI coding assistant. Open source.
Before you start
- Hardware matters. Bigger models need more memory (RAM or GPU VRAM). Start with a smaller model and work up.
- Expect trade-offs. Smaller local models are usually faster and cheaper to run but less capable than the largest hosted models. Test on your own tasks.
- Check licenses. Open-weight model licenses differ. Read each model's license before commercial use.
See the whole Local/Open Models for Code category. Want one agent that works with local and hosted models? See model-agnostic AI coding agents. Know a local tool we're missing? Submit it for free.