Skip to main content

High-performance AI coding on consumer hardware.

Project description

🏠 LocalCode

Build Release License Python Platform

High-performance AI coding on consumer hardware.
No cloud, no API keys, no data leaving your machine.

Install

pip install localcode

Run

cd your-project
localcode

That's it. First launch builds the inference server and downloads the model (~5 min, one time). After that, startup is ~15 seconds.

What it does

  • Reads and edits files - understands your codebase, makes surgical edits
  • Runs commands - tests, builds, git, shell
  • Searches code - by pattern, content, or semantic meaning
  • Fast mode - for routine coding tasks
  • Reasoning mode - deep thinking for complex multi-step problems
  • Uses tools automatically - the model picks its own tools
> refactor the auth module to use JWT and make sure the tests pass

LocalCode reads the files, plans the refactor, edits the code, runs the tests, and fixes failures - all locally.

Why local?

We are building for a world of truly democratized AI - where everyone has access to powerful, personalized, prompt AI anywhere, on any device, and in any location. True empowered local-first AI. LocalCode is the first step toward that vision.

How LocalCode compares

LocalCode Claude Code OpenCode Codex CLI
Runtime 100% on-device Cloud (Anthropic API) Cloud (any provider) Cloud (OpenAI API)
Privacy Code never leaves your machine Code sent to Anthropic Code sent to provider Code sent to OpenAI
Cost Free forever $100+/mo (Max) or API credits API credits (varies) Free (included with ChatGPT)
Internet required No Yes Yes Yes

Requirements

  • Mac with Apple Silicon (M1/M2/M3/M4)
  • 16GB RAM minimum
  • Python 3.11+
  • ~12GB free disk (10GB model + server)

How LocalCode works

LocalCode runs a custom llama.cpp fork with TurboQuant KV cache compression - a technique from Google's ICLR 2026 paper that we patched into llama.cpp for Apple Silicon. This compresses the KV cache 3.8x, fitting 32K context in 355 MiB on a 16GB MacBook.

The model (Gemma 4 26B-A4B) is a Mixture-of-Experts architecture - 25.2B total parameters but only 3.8B active per token. That's what makes 27 tok/s possible on a laptop.

Sponsors

If you'd like to sponsor LocalCode, reach out.

Contributing

See CONTRIBUTING.md.

License

Proprietary. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

localcode-0.2.12-cp313-cp313-macosx_15_0_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.13macOS 15.0+ x86-64

localcode-0.2.12-cp313-cp313-macosx_15_0_universal2.whl (16.1 MB view details)

Uploaded CPython 3.13macOS 15.0+ universal2 (ARM64, x86-64)

localcode-0.2.12-cp313-cp313-macosx_15_0_arm64.whl (11.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

localcode-0.2.12-cp312-cp312-macosx_15_0_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.12macOS 15.0+ x86-64

localcode-0.2.12-cp312-cp312-macosx_15_0_universal2.whl (16.2 MB view details)

Uploaded CPython 3.12macOS 15.0+ universal2 (ARM64, x86-64)

localcode-0.2.12-cp312-cp312-macosx_15_0_arm64.whl (11.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

localcode-0.2.12-cp311-cp311-macosx_15_0_x86_64.whl (12.1 MB view details)

Uploaded CPython 3.11macOS 15.0+ x86-64

localcode-0.2.12-cp311-cp311-macosx_15_0_universal2.whl (16.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ universal2 (ARM64, x86-64)

localcode-0.2.12-cp311-cp311-macosx_15_0_arm64.whl (11.9 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

File details

Details for the file localcode-0.2.12-cp313-cp313-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c36815a81dd2dbf80fba051b1a56f0b0406a8077481a2820e6626066b03a7072
MD5 1f26c4167d90b67d97d9ba65d6cc718d
BLAKE2b-256 3e73997e27d553ef9c2b9d1da767dfcfbd98ff0ada63bba62cb504d14494aed6

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp313-cp313-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 1f312aaf6be7966dd740e169f40bd93fdf60b3c5dcd6ed769b8b70ee5379db2e
MD5 9e26be530d4a15bee53d684a1759dde8
BLAKE2b-256 36f3dce111ac08fd57d7e0c24be0bbdc88f4089f8a92914db81967bb853dc58d

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 678d4028f96b5bd47382aff9a5fbb5683b3ec8f1a6d95b0988db237642de88d8
MD5 52a10dc21ac3ec9d45de75db9f0de0da
BLAKE2b-256 47b2da55623fbd0d3d1f5b0808eefdab2babd76b6880574dd830cff978b7d1de

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp312-cp312-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 227de3b83880884490350aecaae211cac7a6e85e72c3221345a7eb90ee89d1ee
MD5 b0f4fbf7e3292448232700bd8db63ed9
BLAKE2b-256 944c9b4536728dbf7fc0b618d39983ead3ec368aa582fcd63d5ead77a7d0de4e

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp312-cp312-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 dcd0e2afc5897a6358875e875d696b4a632977bc354f82a40c70941e1d1ae476
MD5 6f477cea1e366d1e74329bba51138b99
BLAKE2b-256 b32de61df68e31739a30b466d6bb275323e94c4a96c7978378cdea842ab1d814

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bae663dc19bf76f122963bce69be2b6c13f9c4213c5b0f86a05db9bfbaa34349
MD5 729611fab31bbea792a016a0139f9301
BLAKE2b-256 16d76973af34c74ffcc0664414d08c0d887903b3f0cdbdbfd652bdec2a4a7162

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 fd6e7cd738f59079d389669055ee1c0ff65a357690052d66296e4d5347dbac0f
MD5 0aedf019f6cfb66daa7b7d19c2a1228f
BLAKE2b-256 443a5df5d1d1ff6387d64a77260054589c5c6ab8fe70797d08c5780a0fba7771

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp311-cp311-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 cea8a3a23410f419cb200e35ff35d328cb914f6fee0b264661ec868b3e2f52f8
MD5 96c43a9ee1d170136c792d73860c1e86
BLAKE2b-256 9dbf417d028829db41a3c00e9733870826ca1e50f2dcaebc62f3fcd6d7362b8d

See more details on using hashes here.

File details

Details for the file localcode-0.2.12-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.12-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a20debe335f854776b11d9828ffc27439b1b296b96229d3a031d0d2ee446e2ec
MD5 66b15fc38b700273c3769b9e58a51a02
BLAKE2b-256 b60eb2248ca5a87b1103603a184750912b2bd346a69d3265245b4777ea37ba06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page