Skip to content
localcode

Agentic coding.
Local models.
On your Mac.

An open-source coding agent that runs local models on Apple Silicon. No API key. No costs.

installpip install -U localcode

Pick a model. Start coding.

Pick a model. Everything else happens automatically.

localcode combines the model server and coding agent in one command. It checks what your Mac can run. It starts the server for you. Then it uses a loop designed for local weights to read and edit files and run your repo's own checks.

01

A suite of local models

Choose from Qwen, Gemma, DeepSeek, Cohere, Meta, Aleph Alpha and more. The suite runs from a 12B dense model for 16 GB Macs to DeepSeek V4 Flash (284B MoE) for 128 GB Macs, with every quant each repository ships. localcode checks your Mac's unified memory, shows every model that fits, and recommends the most capable one. Switch at any time with /models.

See what your Mac runs →
02

The server sets itself up

Pick a quant in the picker and localcode downloads it, then starts llama-server on 127.0.0.1. It sets the context and KV cache sizes for your machine and shuts the server down when you finish. You do not need to configure anything.

How it runs →
03

A system designed for local models

localcode is built specifically for local models. The runtime, its completion discipline, and the model server are tuned to get the best performance out of small models on your Mac, with no API key, account, or bill.

What we tuned for local models →

Three steps

Install localcode. Open a repo. Pick a model. Ask it to do one thing.

  1. 1 Install and open your repo

    pip install -U localcode
    cd ~/work/some-project
    localcode
  2. 2 Choose a model

    The picker opens when you send your first message. The star shows the largest model your Mac can run comfortably. Press Enter, pick a quant, and see its size before anything downloads.

    The localcode model picker showing seven models and available quants
  3. 3 Start building

    Name the file. Then name the check that proves the change worked.

    Typing a goal into the localcode prompt and pressing enter
Read more

Every model your Mac can run

Unified memory sets the limit. Pick your Mac to see the full list of models that fit. localcode recommends the most capable one and marks it with a star. You choose, and you can switch to any other model on the list.

1 model fits in 10.7 GB: the GPU memory macOS allows on a 16 GB Mac (67%), which also holds the context

  • Gemma 4 12BParameters12BActive12B (dense)TypeDenseQuantQ4Weights7.37 GB

These are the models that fit each memory size. You choose: the model picker in localcode reads your Mac's actual memory and marks what fits, and /models switches at any time.

Start building

installpip install -U localcode