nicedreamzapp/claude-code-local
Hit your Claude Code usage limit? Keep going free and offline on a local model: Qwen 3.8, Gemma 4, and Qwen 4 the day it ships. Runs on Apple Silicon Macs (MLX), Linux and Windows (llama.cpp) with no API key. Your code stays home.
What it solves
Claude Code stops working when you hit usage limits or run out of credits. This project lets you keep coding on the same Claude Code interface by switching to an AI model that runs entirely on your own computer. No cloud, no API key, no waiting for a reset.
How it works
A small Python server (proxy/server.py) runs open AI models locally on your Mac's Apple Silicon chip using Apple's MLX framework. It speaks Anthropic's own API format, so Claude Code thinks it's talking to the normal cloud service. The server also repairs garbled tool calls, reuses prompt caches, and translates each model's tool-call format into Claude Code's calls. When you hit a limit, you type exit in Claude Code, then keep going (or double-click the Desktop launcher) and the same conversation continues on a local model. Installers check your Mac's memory and pick a model that fits, and it works on Linux and Windows with llama.cpp models too.
Who it's for
Developers who use Claude Code and want to keep working when they run out of usage, or who prefer a private, offline setup. It's designed for Macs with Apple Silicon (M1 or newer), but also supports Linux and Windows. Even 8 GB and 16 GB Macs can run small models.
Highlights
- Run Claude Code with local models on your own Mac, no API key required
- Works on Mac, Linux, and Windows
- One-command install: curl script sets everything up, including picking a fitting model
- Type
exitthenkeep goingto resume the same conversation on a local or free cloud model - Server speaks Anthropic's API directly, so there's no slow translation layer
- Includes a doctor script to check that all parts are installed and working
- Add-on family: voice, browser control, phone control, remote access, and more
Related
- Project
- Project
- Project
- Project
- Project