Source code extracted from `@anthropic-ai/claude-code@2.1.88` npm package via source maps.
The 57MB source map (`cli.js.map`) shipped inside the npm package and pointed to a Cloudflare R2 bucket containing the full TypeScript source. No reverse engineering was performed — Anthropic published it themselves.
On first launch, you'll be prompted to log in with your Anthropic account. If you have a Claude Max/Pro subscription, it works immediately — no API key needed.
Run Claude Code's UI with a local open-source model. The included `ollama-proxy.mjs` translates between the Anthropic API format and Ollama, routing model calls locally while auth goes to Anthropic normally.
- 🟢 `[OLLAMA]` — model calls going to your local Qwen3-Coder
- 🟡 `[ANTHROPIC]` — auth/config calls going to Anthropic
**How it works:** Claude Code's bundled `cli.js` uses the Anthropic SDK which reads `ANTHROPIC_BASE_URL`. The proxy intercepts `/v1/messages` (model API) and translates them to Ollama's format, while passing everything else (auth, bootstrap, feature flags) through to `api.anthropic.com`.
**To change the model**, edit line 7 in `ollama-proxy.mjs`. Works with any Ollama model that has 128K+ context — `qwen3-coder`, `qwen3.5`, `deepseek-r1:32b`, `llama4`, etc.
This repository contains source code that was publicly exposed via npm source maps on March 31, 2026. All code was directly readable from the published npm package `@anthropic-ai/claude-code@2.1.88`. No reverse engineering, decompilation, or circumvention of technical protection measures was performed.