A new open source tool called LocalCode lets developers run agentic coding on their own Macs, using AI models that do the work on the machine itself. The tool installs with a single command, using Python's uv package manager: uv pip install localcode.
Once installed, a developer moves into a project folder and types localcode to start. From there, the tool reads and edits files in the project and runs tests, builds, Git and shell commands without further prompting. It asks before touching anything outside the project. It can also search code by name, content or structure, scaffold and launch apps, and check that those apps respond. It keeps track of the task across messages.
Developers who want other local apps to use the running model can open /server inside the tool or run localcode api, which provides an OpenAI compatible endpoint.
What the hardware has to handle
What hardware does LocalCode need?
LocalCode runs only on a Mac with Apple Silicon, and it needs macOS 13 or newer. The machine should have 16 GB of unified memory or more, along with Python 3.10 or newer. Users also need enough free disk space for the tool and whichever model they pick.
Model sizes vary widely. Gemma 4 12B ranges from a 4.7 GB download at its smallest quantization to 24.3 GB at its largest. DeepSeek V4 Flash, a 284B-A13B model, runs from 82.4 GB to 161.9 GB. Qwen 3.6 35B-A3B falls in between, at 10.5 GB to 69.8 GB.
Twelve models and a recommendation
Which models can LocalCode run?
The tool offers 12 models and 169 quantization options for coding, image input and typed decisions. Models download from Hugging Face. Downloads run in parallel and can resume if interrupted, and they keep going while the user works with another model. Users switch models with the /models command. LocalCode marks the most capable model that fits the Mac's memory with a star.
The project also layers its own optimizations on top of the stock model server. The biggest claimed gain comes from drafting, in which the vendor's own drafter guesses tokens ahead. The project says this produces about twice-as-fast replies on Gemma 4, Qwen 3.6, Qwen 3.8 and Muse Glimmer. When a model rewrites a file it has already read, copy drafting lets it copy text instead of generating it, which the project says is 3.5 to 4 times faster on rewrites.
Memory use gets similar attention. The tool uses an 8-bit KV cache by default, which uses half the memory of full precision, so longer conversations fit. It also sizes context based on what the server reports, so long chats compact before they run out of room.
On quality, hidden thinking is off by default so answers arrive quickly. If a model gets stuck thinking, the tool recovers instead of failing. A stuck detection feature nudges a model that makes no progress, or repeatedly fails the same check, to change its approach. If the model still makes no progress, the tool stops it so it can report what it has. The project says every release is tested live on every model for loading, replies, tool calls and images before it ships.
Does LocalCode send data over the network?
Inference happens locally. The project says three features use the network: model downloads, the web_search and web_fetch tools, and any MCP servers the user adds.
Dieser Artikel wurde mit Unterstützung von KI verfasst.
News Factory APP - agentische News für besseres SEO & AEO.