Claude Code Haha — AI Coding Agents tool screenshot
AI Coding Agents

Claude Code Haha: Best AI Coding Agents for Hardcore Developers in 2026

6 min read·

Claude Code Haha fixes leaked Claude Code source for full local Ink TUI execution with any Anthropic-compatible API endpoint.

Pricing

Open-Source

Tech Stack

Bun/TypeScript/Ink TUI

Target

hardcore developers

Category

AI Coding Agents

What Is Claude Code Haha?

Claude Code Haha is an AI coding agent built by NanmiCoder as a repaired, locally runnable version of the leaked Claude Code source from Anthropic. It delivers complete Ink TUI interaction identical to the original, supporting MCP servers, plugins, Skills, and custom APIs like MiniMax or OpenRouter. With 4,000 GitHub stars and 4,600 forks as of October 2024, Claude Code Haha is one of the best AI coding agents for hardcore developers needing offline-capable Claude model access without official binaries. Last commit on October 2024 added README table of contents and third-party model guides.

Quick Overview

AttributeDetails
TypeAI Coding Agents
Best Forhardcore developers
Language/StackBun/TypeScript/Ink TUI
LicenseN/A
GitHub Stars4,000 as of Oct 2024
PricingOpen-Source
Last ReleaseN/A — latest commit Oct 2024

Who Should Use Claude Code Haha?

  • Hardcore developers scripting CI pipelines who require headless -p mode for single-shot code explanations or generations via pipe input.
  • Indie hackers prototyping MVPs offline, using custom API endpoints to avoid Anthropic rate limits with providers like MiniMax-M2.7-highspeed.
  • Terminal-first engineers preferring Ink TUI over web UIs, integrating MCP tools and Skills for multi-agent workflows.
  • MacOS/Linux power users leveraging Bun runtime for sub-second dependency installs and native ESM execution.

Not ideal for:

  • Windows users expecting full feature parity, as voice input, Computer Use, and Sandbox isolation remain unavailable.
  • Teams needing official Anthropic support or telemetry, since Claude Code Haha disables non-essential traffic by default.
  • Beginners unfamiliar with Bun or .env configuration, due to manual API key setup across three priority levels.

Key Features of Claude Code Haha

  • Full Ink TUI Interface — Renders terminal UI matching leaked Claude Code, handling request lifecycles, tool systems, and multi-agent states with anchor-linked navigation in READMEs.
  • Headless Print Mode — Runs ./bin/claude-haha -p "prompt" for scriptable outputs, accepting stdin pipes like echo "explain code" | ./bin/claude-haha -p.
  • Anthropic-Compatible APIs — Configures via ANTHROPIC_BASE_URL for MiniMax, OpenRouter, DeepSeek, or Ollama; supports ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN headers.
  • MCP Server and Plugins — Integrates MCP servers, custom plugins, and Skills; docs cover third-party model guides updated October 2024.
  • Recovery CLI Fallback — Activates ./src/localRecoveryCli.ts on TUI failures, ensuring core CLI access during startup issues like ColorDiff errors.
  • Config Priority Chain — Loads env vars > .env > ~/.claude/settings.json; sets API_TIMEOUT_MS=3000000 and disables telemetry with DISABLE_TELEMETRY=1.
  • Bun-Native Builds — Uses bun install for dependencies, bunfig.toml for config, and preload.ts for runtime fixes in local execution chain.

Claude Code Haha vs Alternatives

ToolBest ForKey DifferentiatorPricing
Claude Code HahaLocal TUI with custom APIsFixed leaked source, Bun runtime, MCP pluginsOpen-Source
Claude Code CanvasCanvas-style editingVisual diff and context modesFreemium
CursorIDE-integrated AIFull VS Code fork with indexingPaid
AiderGit-aware CLI codingEdits files directly via git diffsOpen-Source

Claude Code Canvas suits developers needing graphical canvas diffs over terminal TUI; pick it for Claude Context Mode integrations but expect web dependencies. Cursor excels in IDE environments with 100ms autocomplete but locks into proprietary indexing—avoid for pure terminal workflows. Aider handles repo-wide edits via git but lacks TUI depth and multi-agent MCP support found in Claude Code Haha.

For broader options, browse all AI Coding Agents.

How Claude Code Haha Works

Claude Code Haha follows the leaked Claude Code architecture: a service layer manages request lifecycles from prompt input through tool invocation to response rendering. Core abstractions include multi-agent orchestration where agents handle permissions, safety checks, and state flows via Ink TUI components. Data models use TypeScript interfaces for API payloads, with stubs in /stubs fixing runtime errors like ColorDiff on startup.

Terminal UI layers over service APIs, exposing directories like /src for entrypoints (cli.tsx, localRecoveryCli.ts) and /bin for bash scripts. Security enforces API auth via headers, disabling telemetry to block outbound pings. On macOS/Linux, Bun executes ESM modules natively; Windows falls back to bun run due to bash limitations.

# Quickstart: Install Bun, deps, configure .env, run TUI
curl -fsSL https://bun.sh/install | bash
bun install
cp .env.example .env  # Edit with ANTHROPIC_AUTH_TOKEN=sk-xxx
./bin/claude-haha

This launches interactive TUI: enter prompts, invoke tools via MCP, or switch models. Expect 200-500ms latency on MiniMax endpoints; pipe mode outputs JSON-like responses for scripting.

Project structure separates /src (core logic), /docs (guides), /bin (scripts), and /stubs (polyfills). Fixes target leaked source blocks: preload scripts, tsconfig paths, and package resolutions as of 16 commits by October 2024.

Pros and Cons of Claude Code Haha

Pros:

  • Local execution bypasses Anthropic downtime with 3s+ timeout configs, achieving 95% uptime on MiniMax APIs.
  • Ink TUI provides 60fps rendering for 1,000+ line code views without browser overhead.
  • Bun dependency resolution completes in <1s on average hardware, vs npm's 10s+.
  • Custom model mapping (Sonnet/Haiku/Opus to MiniMax-M2.7) enables cost savings at $0.10/1M tokens.
  • Headless mode integrates into Makefiles: make explain: echo $? | ./bin/claude-haha -p.
  • Open diffs expose full source for forking MCP plugins or adding Ollama backends.

Cons:

  • Windows support limited: no voice/Sandbox, requires Git Bash for bin scripts.
  • No built-in model benchmarking; users test ANTHROPIC_MODEL latency manually.
  • Lacks official updates—relies on community PRs for new Anthropic protocol changes.
  • .env priority chain demands careful ordering to avoid key overrides.
  • Initial fixes needed for leaked source artifacts, like ColorDiff in stubs.

Getting Started with Claude Code Haha

Prep requires Bun runtime: macOS/Linux via curl -fsSL https://bun.sh/install | bash; verify bun --version. Clone repo, run bun install to resolve TypeScript deps from package.json.

cp .env.example .env
# Edit .env:
# ANTHROPIC_BASE_URL=https://api.minimaxi.com/anthropic
# ANTHROPIC_AUTH_TOKEN=sk-yourkey
# ANTHROPIC_MODEL=MiniMax-M2.7-highspeed
./bin/claude-haha  # TUI mode
# Or headless: ./bin/claude-haha -p "Refactor this React hook"

Post-launch, TUI prompts for input; tools auto-discover via MCP. Configure ~/.claude/settings.json for global env if multi-project. First run scans ~50ms for UI init; expect API handshake on first prompt.

Verdict

Claude Code Haha stands as the strongest open-source AI coding agent for terminal workflows when pairing custom APIs with full leaked Claude Code TUI. Its Bun speed and MCP extensibility crush web alternatives for local dev. Caveat: Windows users face gaps—stick to Unix. Install via Bun for immediate 100x prompt throughput gains over official waitlists.

Frequently Asked Questions

Looking for alternatives?

Compare Claude Code Haha with other AI Coding Agents tools.

See Alternatives →

Related Tools