Discover and explore top open-source AI tools and projects—updated daily.
JrCx7scCFull Claude Code source restoration and local execution
Top 76.7% on SourcePulse
Summary
This project reconstructs the complete source code of Claude Code from its npm package, including all native modules and internal dependencies, offering a fully functional, locally runnable version. It targets developers, researchers, and power users seeking to understand, modify, or deploy Claude Code locally, potentially bypassing network restrictions and enabling low-latency access. The primary benefit is a fully restored, feature-complete Claude Code environment accessible without relying on external services.
How It Works
The restoration process meticulously extracts components from the official @anthropic-ai/claude-code npm package. Source code is recovered from source maps (.js.map files), preserving logic and type definitions despite React Compiler transformations. Type files, erased during compilation, are rebuilt by analyzing import statements and usage patterns. Crucially, native modules (.node files) are directly extracted from official binaries across multiple platforms (macOS, Linux, Windows) using format parsers, ensuring full native functionality.
Quick Start & Requirements
bun installbun run start (isolated config), bun run start:home (host config), bun run mcp (MCP server), bun run dev (development mode).@anthropic-ai/claude-code npm package.Highlighted Details
image-processor, audio-capture, computer-use-input, computer-use-swift, url-handler) are fully restored and compiled for arm64/x64 on Darwin, Linux, and Win32 platforms.@ant/computer-use-mcp, @ant/computer-use-input, and various SDKs, with source and native components preserved.Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap are provided in the README.
Licensing & Compatibility
The project is based on the public distribution of @anthropic-ai/claude-code, with original code copyright held by Anthropic and subject to their terms. The stated purpose is strictly for "research and learning purposes," implying significant restrictions on commercial use or integration into closed-source projects.
Limitations & Caveats
Certain native modules, specifically computer-use-input/swift and url-handler, are exclusive to macOS due to their reliance on system APIs. A small number of TypeScript compilation errors (63) persist, primarily related to dead code or type inference issues within dependencies. The project's explicit "research and learning" designation imposes limitations on broader application.
1 month ago
Inactive
notlikeDev
anthropics