A free coding agent called Localcode promises to read, edit and test your code using AI models that never leave your Mac. One install command, one launch command, and it picks a model sized to your machine's memory, downloads it and starts working, with no API key and no bill.
Localcode is open source under the Apache 2.0 license and was at version 0.4.2 on the Python package index when Badiyaa checked the Localcode project site on November 23. It needs an Apple Silicon Mac on macOS 13 or newer, at least 16 GB of unified memory and Python 3.10 or later.
What it does in your project
Run it inside a project folder and it behaves like the cloud coding agents developers already know. According to Localcode's GitHub README, it can open and change files, search code by name or content, and fire off test suites, builds, Git and other shell commands without asking, as long as they stay in the project. It can also set up and start an app, then confirm the app answers. It asks before touching anything outside the project folder.
Under the hood it starts llama-server, the server from the llama.cpp project, on the Mac's local address, sizes the context and cache for the machine and shuts the server down when you finish. Wikipedia's entry on llama.cpp describes that library as the de facto core of most local inference tools, with Apple silicon an important target.
Which model fits which Mac
The project offers 12 models with 169 quantization options, from Google's Gemma 4 to DeepSeek V4 Flash. The download sizes in the README show how wide that range is:
- Gemma 4 12B: 4.7 GB to 24.3 GB, the entry point for 16 GB Macs.
- Qwen 3.8 27B: 6.2 GB to 54.7 GB.
- Inkling 2 Mini 26B-A5B: 7.8 GB to 22.9 GB.
- DeepSeek V4 Flash 284B-A13B: 82.4 GB to 161.9 GB, aimed at 128 GB Macs.
Badiyaa did the math on the low end. The project site says macOS lets the GPU use about 67% of a 16 GB Mac's memory, or 10.7 GB, and that space must also hold the conversation. On that machine exactly one model fits: Gemma 4 12B in a 4-bit version with 7.37 GB of weights, leaving roughly 3.3 GB for context. At the other end, the largest DeepSeek download is about 34 times the size of the smallest Gemma file.
The speed tricks
Local models are slower than cloud ones, so Localcode layers on its own tuning. The README lists speculative drafting that roughly doubles reply speed on four of the models, Gemma 4 and Muse Glimmer among them, and a "copy drafting" mode that makes file rewrites 3.5 to 4 times faster by copying text the model has already read. An 8-bit cache halves memory use compared with full precision. The developers also found that Inkling 2's expert layers had been silently running on the CPU, about five times slower, and moved them to the GPU.
Inference stays on the Mac. The README names three features that do use the network: model downloads, its web search and fetch tools, and any MCP servers a user adds.
The pitch is philosophical as well as practical. "Powerful, personal AI should work for everyone, on any device, anywhere," the README says, calling Localcode "a first step."
Several of its models have made news here: read our reports on Thinking Machines Lab's Inkling 2 Mini, Alibaba's Qwen3.8 release and ggml, the tensor library behind llama.cpp, reaching version 1.0.
The repository had 96 stars and 879 commits on November 23.
Sources
- localcode: Agentic coding. Local models. On your Mac., mjwsolo, GitHub, 2026
- localcode project site, mjwsolo, GitHub Pages, 2026
- llama.cpp, Wikipedia, 2026
Image: Yagya Parihar, CC BY-SA 4.0 via Wikimedia Commons
This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.




