claude-code-haha  by Housetan218

Local Claude Code execution environment with TUI and scripting

Created 3 weeks ago

New!

256 stars

Top 98.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This project offers a locally runnable version of the leaked Claude Code source, addressing critical startup issues that prevented the original code from functioning. It enables developers and power users to run an interactive AI coding assistant locally, supporting various Anthropic-compatible APIs like MiniMax and OpenRouter, thereby providing a self-hosted alternative for code assistance and development tasks.

How It Works

The project is a fork of leaked Claude Code, meticulously patched to enable a full Ink TUI (Terminal User Interface) and headless execution. It leverages Bun as the runtime, TypeScript for development, and React/Ink for its terminal-based UI. The architecture supports a multi-agent system, tool integration (Bash, Edit, Grep), skills, MCP servers, and custom API endpoints, offering a flexible framework for AI-driven coding workflows.

Quick Start & Requirements

  • Installation: Requires Bun >= 1.1 and Node.js >= 18. Install dependencies using npm install.
  • Configuration: Copy .env.example to .env and fill in API authentication (e.g., ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN) and optionally ANTHROPIC_BASE_URL for custom endpoints. Model mappings and timeouts can also be configured.
  • Execution: Run the interactive TUI with ./bin/claude-haha. Use ./bin/claude-haha -p "your prompt here" for headless mode or pipe input via echo "prompt" | ./bin/claude-haha -p.
  • Recovery Mode: For issues, use CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/claude-haha.
  • Links: No official quick-start or demo links provided beyond the repository itself.

Highlighted Details

  • Full Ink TUI interface, consistent with official Claude Code.
  • Headless mode (--print) for scripting and CI scenarios.
  • Support for MCP servers, plugins, and Skills.
  • Customizable API endpoints and model mappings for various providers.
  • Includes a recovery CLI mode for stability issues.

Maintenance & Community

This project is based on source code leaked from Anthropic's npm registry on March 31, 2026. No information regarding active maintenance, contributors, or community channels (like Discord/Slack) is provided.

Licensing & Compatibility

The project explicitly states it is based on leaked Anthropic source code, with all original source code copyright belonging to Anthropic. It is provided strictly for learning and research purposes, implying significant restrictions on commercial use or integration into closed-source projects.

Limitations & Caveats

The project is derived from leaked source code and is intended for learning/research, carrying potential legal and ethical ambiguities. It addresses previously unresolvable startup issues, but its stability and feature completeness compared to official Anthropic products are not guaranteed. The lack of explicit maintenance and community support may pose long-term adoption risks.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
3
Star History
256 stars in the last 27 days

Explore Similar Projects

Feedback? Help us improve.