High-performance AI coding on consumer hardware.
pip install localcode==0.5.17 Copy PIP instructions
localcode runs an open-weight model on your Mac and uses it to read, edit and test your code. Your prompts and your files stay on your machine. The only thing it downloads is the model weights, once per model.
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.
cd your-project localcode On first launch the model picker opens: models first, then every quant the repository ships, with the size and whether it fits your Mac's memory. The recommended one for your machine is starred. Pick one, watch the download, and start typing. /models switches later.
Project plugins and configuration load only with localcode --trust-project. Use it after reviewing the project's startup code and settings.
OpenJev also supports typed decisions: use /mode to choose Chat or Decisions, or run localcode --mode decisions. The decision screen returns choices, yes/no probabilities and scores without running coding tools. See Chat and Decisions.
> Implement the retry decorator in retry.py so every test in test_retry.py passes. Then run: pytest -q Docs: mjwsolo.github.io/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.
Model downloads run in parallel and keep verified chunks after cancellation or interruption. Select the same model again to resume. Resume requires HTTP range support and a stable server ETag; otherwise the download restarts safely.
localcode recommends a model by your Mac's memory and marks it with a star. You choose; nothing is selected for you. Every quant the model's repository ships is listed, with a fit badge for your machine. Every model runs on binaries shipped in the package.
Underdog Saluki 27B 1.0 is also available as an opt-in IQ2-mix model: 7.9 GB of weights, plus memory for context and runtime, with an optional 0.93 GB vision projector. Coding quality and minimum RAM have not been benchmarked on LocalCode.
Min RAM is the memory at which localcode will recommend the model. You can pick a heavier one by hand. DiffusionGemma is a research model that is never recommended automatically.
Measured on a top-memory Apple Silicon laptop with Qwen 3.6 35B-A3B UD-IQ2_M at a 131072-token context: about 89 tokens/s generation, about 1174 tokens/s prompt processing, and 12 to 15 seconds for a typical four-tool-call task.
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.
Powerful, personal AI should work for everyone, on any device, anywhere. That means running it locally. localcode is a first step.
Installation diagnostics: localcode doctor. See compatibility tests and local hardware verification.
ai cli coding-assistant gemma local-first tui
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.




