Skip to content
ToolHosted agent

claude-code-local

Runs Claude Code against open models on your own Mac, Linux or Windows machine

claude-code-local is an open-source AI tool for ai models and llm tooling. It is available on macOS, Linux, Windows, CLI and Self-hosted.

Pricing
Open source
Platforms
macOS, Linux, Windows
GitHub stars
3.6K
Last commit
Language
Python
License
MIT

Similar tools

About claude-code-local

Claude Code Local starts a small local server that answers Claude Code's requests with an open model running on your own hardware. Apple Silicon Macs use Apple's MLX framework, while Linux and Windows machines use llama.cpp. Once the server is up, Claude Code keeps reading files, editing code and running commands as usual, but the model generating the replies never leaves the computer.

The server speaks Anthropic's Messages API directly, so no translation layer sits between Claude Code and the model. It converts each model's own tool-call format into Claude Code tool calls, repairs malformed tool JSON and reuses the prompt cache between turns to keep long sessions responsive. The installer checks the machine's memory and picks a model that fits.

It suits developers who hit their Claude usage limit mid-task and want to keep working without a second subscription, or who need code to stay on their own machine. Local models are smaller than Claude, so the project suggests giving them one clear step at a time, especially on machines with 8 or 16 GB of memory.

What it does

Local model server
A Python server loads an open model on the machine and answers Claude Code over localhost.
Anthropic API compatibility
Claude Code connects through ANTHROPIC_BASE_URL with no changes to its own protocol.
Automatic model selection
The installer reads system memory and chooses a model sized to fit, with a small-Mac tier for 8 and 16 GB machines.
Tool-call repair
Converts each model's tool-call output into Claude Code tool calls and fixes garbled tool JSON.
Keep going handoff
Typing keep going after exiting a session resumes the last conversation on a free cloud or local model.
Cross-platform install
One-line installers for macOS, Linux and Windows, with a doctor script to diagnose problems.

Good for

  • Continue a coding session after hitting a Claude usage or credit limit
  • Work on code offline on an Apple Silicon Mac
  • Keep source code on the local machine with no model calls leaving it
  • Try open models such as Gemma, Qwen or Hermes inside the Claude Code workflow
  • Run Claude Code on an older 8 or 16 GB laptop with a smaller model

Pricing

Open source

Free and MIT licensed; optional free OpenRouter models in keep going

Prices change. Check nicedreamzapp.github.io before you buy.

claude-code-local FAQ

Does claude-code-local need an Anthropic API key?

No. The local server does not check the key, and the launchers send a placeholder value.

Which computers are supported?

Apple Silicon Macs (M1 or newer), plus Linux and Windows PCs using llama.cpp. Intel Macs are not supported.

Which models does claude-code-local install?

The installer picks a model by memory size, for example Qwen 3.5 2B on 8 GB Macs, Gemma 4 12B on 32 GB Macs and Qwen 3.8 27B on 96 GB and larger Macs.

Does Claude Code send data to Anthropic while using claude-code-local?

The launchers disable Claude Code's non-essential background traffic. Choosing a free cloud model in keep going does send that conversation to OpenRouter.

Is claude-code-local free?

Yes. claude-code-local is open source, so you can use and self-host it for free.

What are the best alternatives to claude-code-local?

The closest alternatives to claude-code-local are Claudette, locally-uncensored, clawmetry, LibreChat and noisy-studio.

Where this comes from

  • Description: written from the project's README and the project's website.