Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

localcode

PyPI License Python Platform

Agentic coding. Local models. On your Mac.

A localcode turn: it reads the stub and test, edits the file, then pytest reports 1 passed

Install

uv pip install localcode

Upgrade with uv pip install -U localcode.

Run

cd your-project
localcode

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 12 models and 169 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. LocalCode recommends the most capable one that fits your Mac's memory and marks it with a star.

Speed: Gemma 4, Qwen 3.6, Muse Glimmer and Qwen 3.8 draft tokens with the vendor's own speculative drafter, which downloads with the model. The model server's GPU kernels ship precompiled, so the first start after an install is quicker.

Model Smallest download Largest download
Gemma 4 12B 4.7 GB 24.3 GB
Qwen 3.8 27B 6.2 GB 54.7 GB
Inkling 2 Mini 26B-A5B 7.8 GB 22.9 GB
North-Mini-Code 30B-A3B 9.4 GB 61.0 GB
Gemma 4 26B-A4B 10.4 GB 51.0 GB
Qwen 3.6 35B-A3B 10.5 GB 69.8 GB
Flint 40B-A2.5B 11.4 GB 79.6 GB
Muse Glimmer 30B 12.4 GB 57.4 GB
Gemma 4 Diffusion 26B-A4B 16.8 GB 50.5 GB
OpenJev 27B (decisions) 19.4 GB 53.8 GB
Kolibri 1 78B-A3B 28.6 GB 83.1 GB
DeepSeek V4 Flash 284B-A13B 82.4 GB 161.9 GB

Optimisations

What LocalCode adds on top of the stock model server to make local models faster and better at coding.

Speed

  • Drafting: the vendor's own drafter guesses tokens ahead (about 2x faster replies on Gemma 4, Qwen 3.6, Qwen 3.8 and Muse Glimmer)
  • Copy drafting: when the model rewrites a file it already read, it copies instead of generating (3.5 to 4x faster on rewrites)
  • Prompt cache reuse: the system prompt stays the same every turn, so the model only reads what is new
  • Warm-up: the first request's prompt is read while the model loads, so your first message starts sooner
  • Precompiled GPU kernels: no half-minute shader compile on first start
  • Threads matched to your Mac's performance cores
  • Flash attention on by default
  • Inkling 2: its experts run on the GPU (were silently on the CPU, about 5x slower), banded attention and a fused activation op halve its GPU memory and read prompts 20 to 30% faster
  • Downloads run in parallel, resume if interrupted, and keep going while you use another model

Memory

  • 8-bit KV cache by default: half the memory of full precision, so longer context fits
  • Inkling 2 uses a 16-bit cache instead: its attention reads it directly, so long prompts read 1.4 to 1.8x faster and it needs 3.3 GB less memory at 128K context
  • Context sized from what the server reports, so long chats compact before they run out of room
  • The picker recommends the most capable model that fits your Mac

Quality

  • Hidden thinking off by default, so answers come straight away; a model that gets stuck thinking is recovered instead of failing
  • Plan panel: the model keeps a task list and is reminded to update it
  • Stuck detection: a model that makes no progress, or keeps failing the same check, is nudged to change approach and then stopped so it reports what it has
  • Every release is tested live on every model (load, reply, tool calls, images) before it ships

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.

Contributing

See CONTRIBUTING.md.

License

Apache 2.0. See LICENSE.

Metadata

Release files for localcode 0.5.43rc13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localcode 0.5.43rc13
File Size Uploaded Provenance Actions
localcode-0.5.43rc13.tar.gz 71.2 MB With provenance Details for localcode-0.5.43rc13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for localcode 0.5.43rc13
File Interpreter ABI Platform Actions
localcode-0.5.43rc13-py3-none-macosx_13_0_arm64.whl Python 3 none macOS 13.0+ ARM64 Details for localcode-0.5.43rc13-py3-none-macosx_13_0_arm64.whl

Total release size: 135.9 MB

Release files / localcode-0.5.43rc13.tar.gz

Download URL localcode-0.5.43rc13.tar.gz
Size 71.2 MB
Tags Source
SHA-256 checksum
How to use checksums
b17087339fa1be485ce4ec8306d43320b798412e2c1c208d8c864e2aa8bee808
BLAKE2b-256 checksum
How to use checksums
9b6a5420a83db914abcc161b52954b0e3f049c6a44018228d4169960b8a394b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Release files / localcode-0.5.43rc13-py3-none-macosx_13_0_arm64.whl

Download URL localcode-0.5.43rc13-py3-none-macosx_13_0_arm64.whl
Size 64.7 MB
Tags Python 3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
f7d5f25d9086bf8f71c6eea9a2cba716e71a2f37fc5d4ce3e0ae0fd6c800e9c7
BLAKE2b-256 checksum
How to use checksums
4fe02e5b59d9e9e25163e076f0df684438eed8f17d0a1254d483a0ceffe8a142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 22, 2026.

Transparency log

Security for localcode 0.5.43rc13

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for localcode-0.5.43rc13.tar.gz

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 Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page