Claude Code Local runs open models on your machine and proxies Anthropic-format requests so Claude Code continues when cloud limits hit.
Overview
Claude Code Local extends Anthropic’s Claude Code client with on-device or self-hosted models when subscription or API usage limits block further cloud calls. A small Python MLX server on Apple Silicon Macs, or llama.cpp on Linux and Windows, speaks the Anthropic Messages API so the existing Claude Code UI and tools keep working.
Install scripts check hardware, download compatible open weights, and add desktop launchers plus keep-going hooks that resume the last conversation on a local or free cloud model after you exit Claude Code. Doctor scripts validate servers, model files, and optional add-ons.
Benchmarking helpers, tool-call parsing tests, and keep-going utilities that chain free OpenRouter models when configured are included. Documentation emphasizes privacy because prompts stay on the local machine except when you opt into remote providers.
It targets developers who already use Claude Code but want uninterrupted sessions using Qwen, Gemma, Llama, and other open models sized to available RAM.
Key features
- MLX server on Apple Silicon Macs
- llama.cpp path on Linux and Windows
- Anthropic API-compatible local proxy
- keepgoing session resume hooks
- Tool-call format translation per model
- Install and doctor automation scripts
- Optional free OpenRouter models
- Desktop launcher shortcuts
Use cases
- Continuing Claude Code after usage caps
- Offline coding with local open models
- Private inference without API keys
- Benchmarking open weights for agents