Agentic coding. Local models. On your Mac.
localcode runs an open-weight model on your Mac and uses it to read, edit and test your code. Model inference runs locally.
Install
pip install -U localcode # or: uv pip install -U localcode
The inference server ships inside the package. Nothing is compiled or cloned on your machine.
Run
cd your-project
localcode
> Implement the retry decorator in retry.py so every test in test_retry.py passes. Then run: pytest -q
To use the running model from another local app, open /server or run localcode api for its
OpenAI compatible endpoint. See the Local API guide.
What it does
- Reads and edits files in your project
- Runs your tests, builds, Git and shell commands inside the project on its own, and asks before touching anything outside it
- Searches code by name, content or structure
- Scaffolds and launches apps, then checks that they respond
- Remembers the task across messages
Requirements
- Mac with Apple Silicon, macOS 13 or newer
- 16 GB unified memory or more
- Python 3.10 or newer
- Disk space for LocalCode and your chosen model (download sizes below)
Models
Choose from 10 models and 100+ quant options for coding, image input and typed decisions. Models download from Hugging Face. Downloads run in parallel and can resume if interrupted. Switch with /models.
| Model | Smallest download | Largest download | 16 GB: tokens/s | 16 GB: context | 128 GB: tokens/s | 128 GB: context |
|---|---|---|---|---|---|---|
| Gemma 4 12B | 4.2 GB | 23.8 GB | — | — | — | — |
| Qwen 3.8 27B | 6.2 GB | 31.5 GB | — | — | — | — |
| Underdog Saluki 27B 1.0 | 7.9 GB | 7.9 GB | — | — | — | — |
| North-Mini-Code 30B-A3B | 9.4 GB | 33.2 GB | — | — | — | — |
| Gemma 4 26B-A4B | 9.9 GB | 27.6 GB | — | — | — | — |
| Qwen 3.6 35B-A3B | 10.0 GB | 38.5 GB | — | — | — | — |
| Muse Glimmer 30B | 10.7 GB | 32.3 GB | — | — | — | — |
| DiffusionGemma 26B-A4B | 16.8 GB | 50.5 GB | — | — | — | — |
| OpenJev 27B (decisions) | 19.4 GB | 53.8 GB | — | — | — | — |
| Kolibri 1 78B-A3B (experimental) | 28.6 GB | 47.5 GB | — | — | — | — |
Download sizes checked on Hugging Face on 12 October 2026; optional vision and draft files are extra. — = not measured on that RAM tier. Speed and usable context also depend on the Mac's chip and selected quant; RAM alone does not determine them.
Network
Inference is local. Three features use the network: model downloads, the web_search and web_fetch tools, and any MCP servers you add. See Network Boundary for the full list.
Why local?
Powerful, personal AI should work for everyone, on any device, anywhere. That means running it locally. localcode is a first step.
Sponsors
To sponsor localcode, reach out.
Installation diagnostics: localcode doctor. See compatibility tests and local hardware verification.
Contributing
See CONTRIBUTING.md.
License
Apache 2.0. See LICENSE.
Metadata
Release files for localcode 0.5.26
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| localcode-0.5.26.tar.gz | 49.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| localcode-0.5.26-py3-none-macosx_13_0_arm64.whl | Python 3 | none | macOS 13.0+ ARM64 | Details |
Total release size: 93.2 MB
Release files / localcode-0.5.26.tar.gz
| Download URL | localcode-0.5.26.tar.gz |
|---|---|
| Size | 49.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4af2a8c37f2e19623f44c595695038e7df843f2ece5ffa8ecc92846c575ff938
|
|
BLAKE2b-256 checksum How to use checksums |
0f1de6418e07df1fa100379c011e93cee3c4e3f53266043d0de08862a2c15812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / localcode-0.5.26-py3-none-macosx_13_0_arm64.whl
| Download URL | localcode-0.5.26-py3-none-macosx_13_0_arm64.whl |
|---|---|
| Size | 43.8 MB |
| Tags | Python 3 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d13cd8e9c4ff4ee297f79d348fdcc5ac573fa7f4c13f920074e611cf42e9ea9f
|
|
BLAKE2b-256 checksum How to use checksums |
150b7ed1fb97e80be90dd6be07ed694eaed64200a94cef4619a0ad4f9894b42c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency log