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

Uploaded CPython 3.13macOS 15.0+ x86-64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 15.0+ x86-64

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

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 c56fc8722aded7233574a55be272f24b03e018616c15f3c367f0c29cea537c3a
MD5 8ee5e054423e0df9ab33c3d36d022d15
BLAKE2b-256 3cec40a48d214f2db76d27aee6bc8d9fe94079fc71576b81ae5f071a869deef7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 ec08ce47ca5b64355bfd14ee597e0931ac7e355b752608ebfce7ef226cf8587a
MD5 cd717c2f8092dcf2df43b1f745ab036d
BLAKE2b-256 cc5f97d2b180fbc27d56daf40d4ecca0d5cd22a2f3b53b98be02620cad0d5be7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 94b07ae680495acf54a9434725a542fa179bc8159ce0c67595caaee7a6ecc5eb
MD5 5972b75b99105dd4038a616a084426f5
BLAKE2b-256 41d8a410f99a219491b1fc534a1d32f69c65e006f516a3a1fccf8eba315c0dbe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 f559e1e6864b895036a70be6203b70512263763786ef5f91703942c39ddee45a
MD5 dad8efbe26f247ac47c7bbc3d5984c5d
BLAKE2b-256 8971bb6e719899cc43ecebee888d4842f5bab24380f53229269be47433d88a0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 f3a7cd00aacbbbc52d10087e30aadcd8491145fe1bcc2558e13d6606d9116bc4
MD5 37071d7911acdb2692bea12ba12c4675
BLAKE2b-256 8e347690205c3c1a501d1a9ec0bef33f3154536b24041b2c5642e2836350f19d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 176507641239d50419b0b7929a8ae7a59b10ef17555b66495e19d0fd233741df
MD5 9a7325898dd2acbefa12fee75c13c758
BLAKE2b-256 688155aae84c2df4aaa6fba719f026f4697956e47b2a3a7223568f4a17269870

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 d21e0e41913c83d6e6a13eafafdf526047b59c1f91ea3848105411db7d4fb86f
MD5 d26ad39fbe18a58527159c46ecb0ff2b
BLAKE2b-256 71a6374db0d481db23c4376b5074ee4fdb7cfe46e4a11aa0b4c732e51e52ad05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 ec29c237942454949a064fad1de5d4519d57120033e68d09cfb4203501a312f8
MD5 7248547bcc7444d91e93441d9536191d
BLAKE2b-256 3c765528a195a424d9f8fd76d7d98ed0886f6f0decc6f4cdbaa431032aee6508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc3-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 74195033385045df9d63d5ed137d9bdb205fe9aabc634d11a1b66f7633d016da
MD5 bc1c32730ecc67cc7c749abbaad6fa33
BLAKE2b-256 8d9669a0a8a1ab075f5121c9e4b3a9903501f04142e9a3fd31685551f1128839

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