cc-haha  by NanmiCoder

Local code assistant via Anthropic-compatible APIs

Created 3 days ago

New!

4,196 stars

Top 11.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a locally runnable version of the leaked Claude Code source, enabling users to interact with a powerful AI coding assistant without relying on external services. It targets developers, researchers, and power users seeking a customizable, offline Claude Code experience, offering significant benefits in terms of privacy, cost, and integration flexibility.

How It Works

The project leverages the Bun runtime and React with the Ink library for a rich, interactive terminal UI (TUI). It addresses critical issues in the original leaked source code, enabling the full TUI and headless modes to function correctly. The architecture supports a multi-agent system, a tool execution framework, and integration with various Anthropic-compatible APIs, allowing users to specify custom endpoints and models like those from MiniMax or OpenRouter.

Quick Start & Requirements

  • Installation: Requires Bun. Install via official script (curl -fsSL https://bun.sh/install | bash) or Homebrew (brew install bun). For minimal Linux environments, unzip may be needed. On Windows, Git for Windows is recommended.
  • Project Dependencies: Run bun install.
  • Configuration: Copy .env.example to .env and fill in ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN. Optionally configure ANTHROPIC_BASE_URL for custom API endpoints and ANTHROPIC_MODEL settings. Set DISABLE_TELEMETRY=1 and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 to disable telemetry and non-essential network requests.
  • Running:
    • macOS/Linux: ./bin/claude-haha (TUI) or ./bin/claude-haha -p "prompt" (headless).
    • Windows (PowerShell/cmd): bun --env-file=.env ./src/entrypoints/cli.tsx (TUI/headless).
  • Links: README serves as primary documentation.

Highlighted Details

  • Full Ink TUI interface, mirroring the official Claude Code experience.
  • Headless mode (--print) for scripting and CI/CD integration.
  • Support for MCP servers, plugins, and Skills.
  • Customizable API endpoints and model configurations for flexibility.
  • A Recovery CLI mode for simplified interaction when the full TUI encounters issues.
  • Specific fixes address TUI startup failures, hangs, and input responsiveness issues present in the original leaked code.

Maintenance & Community

No specific details regarding maintainers, community channels (like Discord/Slack), or roadmaps are provided in the README.

Licensing & Compatibility

The project is based on source code leaked from Anthropic's npm registry on March 31, 2026. All original source code copyright belongs to Anthropic. It is intended strictly for learning and research purposes. Compatibility is focused on Anthropic-compatible APIs.

Limitations & Caveats

Certain features, including voice input, Computer Use, and Sandbox isolation, are not available on Windows. The project's foundation on leaked code implies potential instability and is restricted to non-commercial, research-oriented use.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
10
Issues (30d)
33
Star History
4,446 stars in the last 3 days

Explore Similar Projects

Starred by George Hotz George Hotz(Author of tinygrad; Founder of the tiny corp, comma.ai), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
41 more.

opencode by anomalyco

3.5%
136k
CLI tool for AI-assisted coding in the terminal
Created 11 months ago
Updated 7 hours ago
Feedback? Help us improve.