Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Nightly Claude Code CLI Decompile — Reverse Engineered & Rebuilt
| Date | Stars |
|---|---|
| 2026-07-31 | 464 |
| 2026-08-06 | 464 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
5.0
growth rate 0.00%/day
<h1 align="center">Open Claude Code</h1>
<h3 align="center">Open Source Claude Code CLI — Reverse Engineered & Rebuilt</h3>
<p align="center">
<em>A fully functional open source implementation of Anthropic's Claude Code CLI,<br/>
built from decompiled source intelligence using <a href="https://github.com/ruvnet/rudevolution">ruDevolution</a>.</em>
</p>
<p align="center">
<img alt="Tests" src="https://img.shields.io/badge/tests-991_passing-brightgreen?style=flat-square" />
<img alt="Tools" src="https://img.shields.io/badge/tools-25-blue?style=flat-square" />
<img alt="Commands" src="https://img.shields.io/badge/commands-40-blue?style=flat-square" />
<img alt="npm" src="https://img.shields.io/npm/v/@ruvnet/open-claude-code?style=flat-square&label=npm" />
<img alt="License" src="https://img.shields.io/badge/License-MIT-blue?style=flat-square" />
<img alt="Nightly" src="https://img.shields.io/badge/nightly-verified_releases-brightgreen?style=flat-square" />
</p>
> **Automated Nightly Releases** — Open Claude Code automatically detects new [Claude Code](https://www.npmjs.com/package/@anthropic-ai/claude-code) releases, runs 903+ tests to verify zero regressions, and publishes verified builds with AI-powered discovery analysis. See [Releases](https://github.com/ruvnet/open-claude-code/releases) | [ADR-001](docs/adr/ADR-001-nightly-verified-release-pipeline.md) | [pi.ruv.io](https://pi.ruv.io)
---
## ⚡ Quick Start
```bash
# Run instantly (no install)
npx @ruvnet/open-claude-code "explain this codebase"
# Or install globally
npm install -g @ruvnet/open-claude-code
occ "hello"
# Interactive mode
occ
```
**Requires:** `ANTHROPIC_API_KEY` environment variable set.
```bash
export ANTHROPIC_API_KEY=sk-ant-...
npx @ruvnet/open-claude-code "what files are in this directory?"
```
---
## 🧠 What Is This?
**Open Claude Code** is a ground-up open source rebuild of Anthropic's [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code), informed by [ruDevolution's](https://github.com/ruvnet/rudevolution) AI-powered decompilation of the published npm package.
It's not a copy — it's a clean-room implementation that mirrors the actual Claude Code architecture: async generator agent loop, 25 tools, 4 MCP transports, 6 permission modes, hooks, settings chain, sessions, and more.
**1,581 tests. 61 files. 8,314 lines. 100% functional.**
---
## 📦 Installation
### npx (no install needed)
```bash
npx @ruvnet/open-claude-code "your prompt here"
```
### Global install
```bash
npm install -g @ruvnet/open-claude-code
occ "your prompt here"
```
### From source
```bash
git clone https://github.com/ruvnet/open-claude-code.git
cd open-claude-code/v2
export ANTHROPIC_API_KEY=sk-ant-...
node src/index.mjs "hello"
```
---
## 🖥️ Usage
### One-shot mode
```bash
occ "explain the auth module"
occ "fix the bug in server.js"
occ "create a REST API for user management"
occ "find all TODO comments in this project"
```
### Interactive REPL
```bash
occ
# > explain this codebase
# > /help
# > /tools
# > /model claude-opus-4-6
# > refactor the database layer
# > /cost
# > /exit
```
### CLI Options
```bash
occ [options] [prompt]
Options:
-m, --model <model> Model to use (default: claude-sonnet-4-6)
-p, --print Print mode (non-interactive, output only)
--permission-mode <mode> Permission mode: default, auto, plan, acceptEdits,
bypassPermissions, dontAsk
--system-prompt <text> Override system prompt
--add-dir <path> Additional CLAUDE.md directory
--max-turns <n> Maximum conversation turns
--allowedTools <tools> Comma-separated allowed tools
--disallowedTools <tools> Comma-separated denied tools
--output-format <fmt> Output: text, json, stream-json
-v, --verbose Verbose output
-d, --debug Debug mode
--version Show version
-h, --help Excerpt of 11,311 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:a5113fe4874bff23, llm:Repository topics: claude-code, clean-room, clean-room-reimplementation, decompiler; description: 'Nightly Claude Code CLI Decompile — Reverse Engineered & Rebuilt' — a clean-room reimplementation/decompiler of Claude Code CLI.
matched fp:a5113fe4874bff23, llm:Repository topics: claude-code, clean-room, clean-room-reimplementation, decompiler; description: 'Nightly Claude Code CLI Decompile — Reverse Engineered & Rebuilt' — a clean-room reimplementation/decompiler of Claude Code CLI.