← Back to Leaderboard
Cnicedreamzapp

nicedreamzapp/claude-code-local

Local Anthropic-compatible inference to resume Claude Code after usage limits

Engineering Health (Methodology)
A+ · 97/100
Maintenance Activity
● Updated yesterday
Latest Release
v1.0.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence20/20
License Clarity20/20
Self-HostedLocal AICLIGPUAPI
Total Stars
★ 3,575
24h Growth
+5
7d Growth
+37
Forks
651

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

nicedreamzapp/claude-code-local Star History (2026-03-25 - 2026-12-03) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +3.6k in 253d · avg +14/day 3.8k 1.9k 0 2026-03-25: ★ 12026-04-11: ★ 6632026-05-02: ★ 2,3642026-05-23: ★ 2,6372026-06-13: ★ 2,7192026-07-04: ★ 2,8802026-07-25: ★ 2,9652026-08-15: ★ 3,1832026-09-05: ★ 3,2372026-09-26: ★ 3,3112026-10-17: ★ 3,3572026-11-02: ★ 3,4332026-11-18: ★ 3,5192026-12-03: ★ 3,575 ★ 3.6k 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Claude Code remains the client and tool runner. On Apple Silicon, a launcher points ANTHROPIC_BASE_URL at the Python MLX service in proxy/server.py, which serves the Anthropic Messages API with streaming. The server translates Gemma, Qwen, and Llama-style tool output and repairs malformed tool JSON. Unlike an OpenAI-compatible server paired with a separate Anthropic adapter, this path handles protocol compatibility at the inference endpoint.

The MLX service reuses the prompt cache across turns. Separately, agent/agent.py provides a standalone terminal coding agent with a short, fixed system prompt designed to preserve cache reuse. Session handoff sits in the launcher layer: bin/keepgoing and bin/keepgoing.py locate the last Claude Code conversation for the current folder; Linux and Windows use portable/ccl.py keepgoing with llama.cpp. The core integration is at the model API, not through an MCP server.

Key Capabilities & Differentiators

keep going is the main workflow: exit hosted Claude Code and resume the conversation with a local model while retaining the client’s file editing and command tools. OpenRouter is an optional keyed cloud route, not part of offline inference. The macOS setup selects among Qwen 3.5 2B/4B, Gemma 4 12B/31B, and Qwen 3.8 27B by memory tier. Qwen 4 is not part of the available lineup.

The 8 GB and 16 GB Mac profiles both use 16K context and support image input. On an M4 Pro, the 2B and 4B profiles recorded about 92 and 22 tokens/s, with server memory peaks of 4.2 GB and 10.6 GB, respectively. Both passed a scoped Claude Code check covering file reads, edits, script execution, and image description. The 27B Agent-12 result (12/12 easy, 7/8 hard) came from that benchmark’s own harness, not from Claude Code.

Trade-offs & Limitations

This is a practical fallback for teams that want to keep the Claude Code interface after hitting hosted usage limits. The handoff preserves the conversation, not the model’s behavior: a 2B or 4B local model is better suited to one clear step at a time than a long, loosely specified refactor. The M4 Pro token rates measure generation under specific configurations; they do not establish end-to-end edit latency or cross-platform performance.

Compared with assembling a generic local server and protocol translator, the MLX route reduces integration work for this client but makes model-specific tool parsing part of the stack you depend on. Local execution shifts cost toward hardware, memory, and maintenance. Keep the endpoint on loopback: sk-local is not checked. Treat OpenRouter and logged-in browser or remote-access add-ons as separate trust decisions, and review their data paths and terms independently.

Hardware & Deployment Guide

On an M1-or-newer Mac, setup.sh provisions Python 3.12, selects and downloads a model, and creates Claude Local.command. A manual MLX setup uses a Python 3.12 virtual environment with mlx-lm and starts the service via scripts/start-mlx-server.sh; the local API example uses localhost:4000. Linux uses install.sh and Windows uses install.ps1 to select a pinned llama.cpp build and a model for the available hardware.

Plan for initial downloads of dependencies and model weights; afterward, the local inference path needs no Anthropic key or subscription. scripts/doctor.sh checks core components on macOS and Linux. Operationally, v0.6.0 introduced the add-on bundle, v0.7.0 added automatic model selection for 8 GB and 16 GB Macs, and v1.0.0 foregrounded the exit-and-resume workflow. Start with the core install and add browser, voice, or remote-access components only if needed.

Protocol: proxy/server.py streams Anthropic Messages responses directly from the MLX service.
Tool compatibility: Normalizes Gemma, Qwen, and Llama-style tool calls and repairs malformed tool JSON.
Session handoff: keep going finds the last Claude Code conversation for the current folder; plain claude retains the hosted path.
Runtime selection: MLX on Apple Silicon; pinned llama.cpp builds on Linux and Windows, selected for NVIDIA, AMD, or CPU execution.
Small-Mac sizing: 8 GB and 16 GB profiles use 16K context, with measured server peaks of 4.2 GB and 10.6 GB, respectively.
Verification: Parser tests run without model weights; the running-server tests exercise multi-step tool calls.
Best For

Claude Code users who want a self-hosted fallback for scoped edits, local commands, and conversation continuity after hosted usage limits.

Skip If

You need hosted Claude’s model behavior, consistent results on long multi-step changes, or an authenticated shared inference endpoint out of the box.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedLocal AICLIGPU
curl -fsSL https://raw.githubusercontent.com/nicedreamzapp/claude-code-local/main/install.sh | bash

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
claude-code-local ★3.6k+37PythonMITLocal Anthropic-compatible inference to resume Claude Code after usage limits
oh-my-pi40.5k+483TypeScriptMITA Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat
openinterpreter69k+65RustApache-2.0A Rust coding CLI with swappable harnesses for low-cost models
warp66.2k+78RustAGPL-3.0A Rust terminal workspace for built-in and external coding agents

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/nicedreamzapp/claude-code-local.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

nicedreamzapp/claude-code-local Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about claude-code-local

How does Claude Code connect to a local model?

Set ANTHROPIC_BASE_URL for the local Claude Code launcher. On Apple Silicon, proxy/server.py serves Anthropic Messages API streams directly and maps model output to Claude Code tool calls. The documented sk-local key is a placeholder, not an authentication control.

What memory should I budget for local inference?

The 8 GB Apple Silicon profile uses Qwen 3.5 2B at 8-bit and peaks at 4.2 GB of server memory; the 16 GB profile uses Qwen 3.5 4B in bf16 and peaks at 10.6 GB. These are server measurements, not total system requirements or discrete-GPU VRAM figures. On Linux and Windows, size the llama.cpp deployment for the chosen model, precision, and context on your GPU or CPU.

Can a company self-host this under the MIT license?

The repository is MIT-licensed, which permits commercial use subject to its notice requirements. Review the model weights, Claude Code client, and optional integrations separately; the repository license does not cover them. If inference must stay on-device, select a local model and leave the optional OpenRouter route unconfigured.

Why choose this over a generic local server or hosted Claude?

Compared with a generic OpenAI-compatible local endpoint plus a separate adapter, the MLX server speaks Anthropic Messages directly and handles model-specific tool calls. Compared with staying on hosted Claude, the handoff avoids dependence on Claude inference credits but substitutes a different model. Test representative multi-step edits before relying on it as your default.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining nicedreamzapp/claude-code-local? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature nicedreamzapp/claude-code-local on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare