Claude Code Local Proxy banner
stefanodp91 stefanodp91

Claude Code Local Proxy

Git community

Description

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code — Leaked Source (2026-03-31)

**On March 31, 2026, the full source code of Anthropic's Claude Code CLI was leaked** via a `.map` file exposed in their npm registry.


How It Leaked

[Chaofan Shou (@Fried_rice)](https://x.com/Fried_rice) discovered the leak and posted it publicly:

**"Claude code source code has been leaked via a map file in their npm registry!"**

— [@Fried_rice, March 31, 2026](https://x.com/Fried_rice/status/2038894956459290963)

The source map file in the published npm package contained a reference to the full, unobfuscated TypeScript source, which was downloadable as a zip archive from Anthropic's R2 storage bucket.


Overview

Claude Code is Anthropic's official CLI tool that lets you interact with Claude directly from the terminal to perform software engineering tasks — editing files, running commands, searching codebases, managing git workflows, and more.

This repository contains the leaked source code in `claude_code/src/`.

  • Leaked on: 2026-03-31
  • Language: TypeScript
  • Runtime: Bun
  • Terminal UI: React + Ink (React for CLI)
  • Scale: ~1,900 files, 512,000+ lines of code

Anthropic-to-OpenAI Proxy (v1.4.0)

This repository includes a **Node.js translation proxy** (`proxy/`) that lets Claude Code work with any local LLM through an OpenAI-compatible API. The proxy sits between Claude Code and the LLM backend, translating Anthropic Messages API requests into OpenAI Chat Completions format and back.

Quick Start

# One-time setup
cd proxy && npm install && cd ..

Option A — Claudio (VS Code extension)

Install the extension (`chat-extension/`) and open the repo in VS Code. The proxy starts automatically. The chat panel shows `● Connected` when ready. No separate terminal needed.

Option B — Claude Code CLI

sh start_agent_cli.sh
# Finds a free port, spawns the proxy, waits for health,
# lets you pick a model