cc-haha/docs/en/guide/quick-start.md
hzchat 253e9aade2 docs: document the desktop launcher workflow
Document claude-haha-desktop in the CLI guides and Web UI installation docs,
including the new English desktop pages referenced by the docs sidebar.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-22 18:49:14 +08:00

1.4 KiB

Quick Start

1. Install Bun

# macOS / Linux
curl -fsSL https://bun.sh/install | bash

# macOS (Homebrew)
brew install bun

# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"

On minimal Linux images, if you see unzip is required, run apt update && apt install -y unzip first.

2. Install Dependencies and Configure

bun install
cp .env.example .env
# Edit .env with your API key

See Environment Variables for the full reference.

3. Start

macOS / Linux

./bin/claude-haha                          # Interactive TUI mode
./bin/claude-haha -p "your prompt here"    # Headless mode
./bin/claude-haha --help                   # Show all options
./bin/claude-haha-desktop                  # Start the desktop dev server, local API server, and browser together

Windows

Prerequisite: Git for Windows must be installed.

# PowerShell / cmd — call Bun directly
bun --env-file=.env ./src/entrypoints/cli.tsx

# Or run inside Git Bash
./bin/claude-haha

4. Global Usage (Optional)

Add bin/ to your PATH to run from any directory. See Global Usage Guide:

export PATH="$HOME/path/to/claude-code-haha/bin:$PATH"

claude-haha
claude-haha-desktop

5. Recovery Mode

If the Ink TUI has issues, use the fallback Recovery CLI mode:

CLAUDE_CODE_FORCE_RECOVERY_CLI=1 ./bin/claude-haha