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

Uploaded CPython 3.13macOS 15.0+ x86-64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 15.0+ x86-64

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

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 113a5a703fa69d08436f8290f438d1aca8d6be7a4f1af76ae3d4948e00a85607
MD5 01bf90c25a211bc20ae81d4545b153d4
BLAKE2b-256 6006b8e5aaa071b118dad0e74e7bba458144d029b77211392f7096a66ad83495

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 25083f571841ebf797120663aa4f35f0fdd1722b447e6dfbf101a18e48310157
MD5 f6cc216c026b53405c70558a2c75c6db
BLAKE2b-256 557f7094d089005814c934fe96c44550cb39232430e5eb4574730155c6510265

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b91fdaadb29248b4936d1901c91bc9b10c473452faa186e98a3586a4bb6082ac
MD5 5210cc46fea5444903c0e4b18bcdc212
BLAKE2b-256 915e20cf648a9df9a6872ebcaf3bba85accdb41d5a13bf3271d96a232d919de1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 b93bfb757cde1c5da750b25b4d933cc4990ffbd7845ddcb33faf335de01bcea9
MD5 e1cf92aed0a79b5f74447e675dcf7329
BLAKE2b-256 41f3ae9cb399f65168e4722dc4e0af81b72ee99c144c670c265c499c2683e6e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 765b0b6917ff57fbc192fb9a56462dc794a0cb39c3bebabbd3c69ee5ac19b780
MD5 ebb80c7b0cdd13166a2778a5ff570dfc
BLAKE2b-256 31e270caa6efb0fd0f770c796f5d2924a0bbfb2429c19964d923e1dcbbab9250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6d86bb2f10c4eb5f35956274346f62ff0994b7fe4f37d1815e5d3ddae55d2ac7
MD5 2fe295d37ca8987f8ba17f4dde851461
BLAKE2b-256 153be0388dff4d2de9e6dded334804f3240bc1e332de724a704d8fb99692f23a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 37765423803edb3c4833032e5e4588d072a0f940aa23873850724d2ae4e6a20c
MD5 b5495cd19688551ac425e459cea3fd44
BLAKE2b-256 0abb42283dc5fa02a1af7e3a184e2c80e4d166a77323044efc80bc66c69e754b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 f23adca16150a90e4f97dff55c7aaca92f78ca89fc86b076bebe3efe44d4b744
MD5 32175f673d41cc0de9506e5dbe03b7c1
BLAKE2b-256 53dd5b9b68ea1325158edaf959be183b3a23c1017d4afd583ea94d94fa03e61e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc9-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 77c8e3483ae14df5809379f21c373b5ab95bc21db612a8ba265ec237c849c3ea
MD5 9d24a076a48a1103298dcbd41519c35e
BLAKE2b-256 f4d1bb21685cf48b5ab00b8c15a980472b6b4140afdda2d18669fc3b761d130a

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