Your Mac can now run a coding agent locally, without sending code to the cloud. LocalCode is an open-source project that installs with uv pip install localcode and starts up in any project folder with a single localcode command. The tool acts as a coding assistant that reads and edits project files, executes tests and shell commands, and can maintain context across multiple instructions—all on your local machine.
You’ll need an Apple Silicon Mac with at least 16 GB of unified memory and macOS 13 or above. Python 3.10 or later is required. Model downloads are handled through Hugging Face, and LocalCode will recommend the most capable model that fits your hardware constraints.
Core features and workflow
Once running, the agent can:
- Read and modify files in your current project directory
- Run tests, builds, Git, and shell commands (with confirmation before making changes outside the project)
- Search code by name, content, or structure
- Scaffold and launch applications, then check their responses
- Track and remember ongoing tasks through conversation turns
For integration with other tools, LocalCode exposes an OpenAI-compatible endpoint. You can activate this by opening /server or running localcode api, making it possible to connect local apps directly to the running model.
Model selection and performance gains
LocalCode supports a catalogue of 12 models with 169 quantisation variants, covering coding, image input, and decision support. Models are downloaded in parallel and can resume if interrupted. The project’s model picker recommends the strongest model for your Mac and flags it with a star.




