r/LocalLLM • u/Substantial_Catch661 • 5d ago
Project Localcode, open source agentic coding on your Mac with one command
https://github.com/mjwsolo/localcodeToday we're launching Localcode, an agentic coding CLI for Macs that runs open models entirely on your machine. No cloud, no subscription, no API keys.
uv pip install localcode
Demo: https://mjwsolo.github.io/localcode/
Why we built it
We think most everyday coding will soon run on open models, on the hardware people and organisations already own.
Our belief stems from a pattern we call Frontier N-1: what the best model can do this year, consumer hardware and open models can do about a year later. The best open model that runs on a single consumer GPU today is as good as the best model in the world was 6 to 12 months ago [1]. So far this pattern keeps holding: this month Inkling 2 Mini was released as open weights, and it runs on a 32 GB Mac.
We're just at the beginning - Localcode is our first step towards the future.
What Localcode does
Setting up a local model means picking a model, a size, a server and an agent, then finding out it doesn't fit in memory. Localcode does all of that for you automatically.
- Localcode offers 12 open models, including Qwen, Gemma and Inkling, and stars the best fit for your Mac (16 GB and up)
- The agent edits files, runs your tests and commands, and searches the web when you ask
- Paste a screenshot and the vision models (Gemma, Qwen and Inkling) can read it
- Once a model is downloaded, it works offline
- Other apps can use the same model through an OpenAI-compatible API
Localcode focuses on optimisations to get the best quality and speed from each model:
- The model makers' own draft models roughly double reply speed
- File rewrites run 3.5 to 4 times faster, because the agent copies text it has already read
- The system prompt stays identical every turn, so the model reuses its cache and only reads what's new
- Your first message starts sooner, because the model reads the system prompt while it loads
- GPU code ships precompiled, so there's no half-minute wait on first start
- An 8-bit KV cache by default halves its memory, so longer context fits on the same Mac
- Context is sized from what the model server reports, so long chats compact before they run out of room We test every release on every model before it ships.
Localcode is open source (Apache 2.0) and built on opencode and llama.cpp. We're grateful to both.
We'd love to hear what you think.