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

Uploaded CPython 3.13macOS 15.0+ x86-64

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

Uploaded CPython 3.13macOS 15.0+ ARM64

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

Uploaded CPython 3.12macOS 15.0+ x86-64

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

Uploaded CPython 3.12macOS 15.0+ ARM64

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

Uploaded CPython 3.11macOS 15.0+ x86-64

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp313-cp313-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 0f3aba62a8445d259d09b379fe44357fdcfc4d4319b58c833ebb9e85710f2602
MD5 ce2b5f59f4d28b97d254a05bda75ec12
BLAKE2b-256 bb9a33978bca826392cb320cec39b758c8f5688bac0331c84541b2a705b75b04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp313-cp313-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 b6ba0706246fd46e2a71e1716ce7ae75f7336c2aa62dadad9dee152f5ff8b441
MD5 35bca5888a39009f0151208dcf98d1a4
BLAKE2b-256 d3aca73d5abb240691cb35e50ce8cbdea8c480a2dd04680bddd2509d021abccb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a11842a7a54af9adcffc25fab982bf1dfb2878ae9e5454954583197f4f8fb814
MD5 8b131146c8d480380247514829c0d687
BLAKE2b-256 1609324b46c61bef62eac1fc768769a88438a08053b4c3bfafaabd60c0d53509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp312-cp312-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 b3548f6b7e9caf18a6d9c8af0e07699981655a265d9f13b643914b28cc19d07e
MD5 8a3e2cbc0346cad2f777344a0f84c5e2
BLAKE2b-256 f5ab78c6bb74f1e9e286e955f0c03a7d14b298984d093da4be709118219ecdd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp312-cp312-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 1eca057edd7e5a024166588d5e8cbf3ef96b0e8a98a2a67fd4eab9818b006d6e
MD5 02d88fefd9f1090f15a2da705816e5bb
BLAKE2b-256 2e5b9646fb395e0097b1f3ff487769feb49865afcf6ba30a51dab8025464aff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 a2f0f422d12eb11400470450a4bf906a2d8fb284f9db888a77b886f3f7969c95
MD5 bf356832cfcd40b94309eb112164eee4
BLAKE2b-256 7204c996e1e87a763538a2d051a3ed1f22cca1a76d62638206c1ebd884ec6b5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp311-cp311-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 8e5c84911429652d923df33fdfba4317233041f53b3bed4a4aff7ac7e4fa6b76
MD5 21df57f0f08cea74828a38b29053f9bb
BLAKE2b-256 b71af8c591950c881a66b3e5206771b0c4800e4dfe50602c9190c1bb4851b3cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp311-cp311-macosx_15_0_universal2.whl
Algorithm Hash digest
SHA256 ec25d4fcbb17fc5fc53e0f952e546aa53952ab3634edb8feed415bd5cea5ac44
MD5 e08512732d81bfeb69b10d517715bec9
BLAKE2b-256 beed6042b1f92002d9e8d58d3bb25d8600e0eaa3db7ec9d4505851deedbecd54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for localcode-0.2.11rc6-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c2147fad11689c024c6197ba890b8e2563b16d7b9d64be869728212f9493f0a1
MD5 131a766ddb3951d82e63da7d7477a650
BLAKE2b-256 292c1f86ae4e9186432cc7da7f68494dd32db93af9f9db0a87c1a6cc47738285

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