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

Apache-2.0. 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.11rc2-cp313-cp313-macosx_15_0_x86_64.whl (12.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ x86-64

localcode-0.2.11rc2-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.11rc2-cp313-cp313-macosx_15_0_arm64.whl (11.9 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 15.0+ x86-64

localcode-0.2.11rc2-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.11rc2-cp312-cp312-macosx_15_0_arm64.whl (11.9 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

localcode-0.2.11rc2-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.11rc2-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.11rc2-cp313-cp313-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c6ff615a500f2d57f8e8cac989bba6815fef760b3869380cf3ee3b3038c5b1d5
MD5 d81e7f6e23387f3b2cb393e74f50689b
BLAKE2b-256 0112cdf0e1a9732e6aa50ff50b0982e7b8c002ff08846e7b660a38ce91e5a91c

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp313-cp313-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 c26d2d99f3262ca5c8e3f85fe56b4ae6b72d2cf3f1949d1893c3dcb348b280c4
MD5 276abf76d732514874abce8bff72599c
BLAKE2b-256 5f796636becf2ae74c9179c0abca0f63c7181060eb50be57d59c75f3ecd7cc9f

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9ae4831c955e3401bdf3a1e2e04e0ab4d67bc42a402d546bf45884049d240619
MD5 047b665e9b3e0123d2f3941d33dda74a
BLAKE2b-256 3de76fd40b7b261532e1019ac72911c0b2a4f9708c64a51ad40ebd11619c0c2f

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp312-cp312-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 374dff7f1f6d3fa3e26b08f24bea1e4220926b481d011d956ed88ea758456850
MD5 d586f203851c8ce5aa333e4f0112b2c7
BLAKE2b-256 edd9e9b88bfa448772b4b9805812203a67edd67464cea3a49aa79ff8d733d432

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp312-cp312-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 3e66a0dad501767d60fb60cc1aaf6c5bd4c13d089b0fe4ffc8c53c7af8b3a32b
MD5 3f24ec4263f823b2d486704816a7cf1c
BLAKE2b-256 114faf350531fab720fd6371bdf76e75ccba2262a04e28ef15c8140b8a1430ac

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bda110d759420dc7612e3f88b435eece27fd3d380b88148f1bfdf53866dc4fce
MD5 a8f9bae6f902b7c989f13994ff7320da
BLAKE2b-256 b545916b5b543e1651f58c54ba6d796e8261d9842a1540c34c71859f0011a35b

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp311-cp311-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 2cc79ed513edb323ef596107bc1fc2dc643137e10b9559851bd38f10c6983538
MD5 81cc17c4a789a2196dc29c6dcc846b68
BLAKE2b-256 dacea578184e29c9fbeef2e789a4db04516f88f877baa6a7f8b62b9e34f198a7

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp311-cp311-macosx_15_0_universal2.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 2029758ee3cb04d40aeb2b2535d42946b49b7e0753db2ade6303cb322b315791
MD5 92a3266a2c1145c0dcaea271502595f5
BLAKE2b-256 6315b866d36c06d801c5eb6855586a91c342a3f597dd63691efbe8840ccfd967

See more details on using hashes here.

File details

Details for the file localcode-0.2.11rc2-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for localcode-0.2.11rc2-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 120625ffaf25c297e4f65cc88a696b91a276b764c1548443d28c4b1dc81b28eb
MD5 393d57b18f1b633d0d4b34d176d889b0
BLAKE2b-256 e41f286d0637250817a3a07e4a8dd1500884b86a0e46640547943fed89c59d2b

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