Claude Code restored for Node.js — extracted from official Bun SEA binaries and patched for Node.js runtime compatibility.
Starting from v2.1.113, Anthropic ships Claude Code as native Bun binaries instead of Node.js-runnable JavaScript. This project restores the npm package format so it can run under Node.js.
npm install -g @cometix/claude-code- Downloads official Claude Code binaries from all 8 platforms (darwin/linux/win32 × arm64/x64)
- Extracts the embedded JavaScript and native modules from Bun SEA format
- Patches the code for Node.js compatibility (hardcoded paths, Bun-only APIs, module loading)
- Reassembles into a standard npm package with
vendor/dependencies
cli.js Node.js entry point
sdk-tools.d.ts SDK type definitions
vendor/
├── ripgrep/ Code search (6 platforms)
├── audio-capture/ Voice input (6 platforms)
└── seccomp/ Linux sandbox (arm64 + x64)
A GitHub Actions workflow checks for new Claude Code versions every 6 hours, builds the restored package, and publishes to both GitHub Releases and npm.
This project redistributes Claude Code under Anthropic's terms. Vendored dependencies retain their original licenses (ripgrep: Unlicense/MIT, seccomp: Apache-2.0).