docs: add bilingual README and Bun install guide

This commit is contained in:
程序员阿江(Relakkes)
2026-04-01 12:08:34 +08:00
parent edae0e612d
commit 919dd34a7a
2 changed files with 250 additions and 5 deletions
+37 -5
View File
@@ -1,5 +1,7 @@
# Claude Code Haha
<p align="right"><strong>中文</strong> | <a href="./README.en.md">English</a></p>
基于 Claude Code 泄露源码修复的**本地可运行版本**,支持接入任意 Anthropic 兼容 API(如 MiniMax、OpenRouter 等)。
> 原始泄露源码无法直接运行。本仓库修复了启动链路中的多个阻塞问题,使完整的 Ink TUI 交互界面可以在本地工作。
@@ -39,15 +41,45 @@
## 快速开始
### 1. 安装依赖
### 1. 安装 Bun
需要 [Bun](https://bun.sh) >= 1.1 和 Node.js >= 18。
本项目运行依赖 [Bun](https://bun.sh)。如果你的电脑还没有安装 Bun,可以先执行下面任一方式:
```bash
npm install
# macOS / Linux(官方安装脚本)
curl -fsSL https://bun.sh/install | bash
```
### 2. 配置环境变量
如果在精简版 Linux 环境里提示 `unzip is required to install bun`,先安装 `unzip`
```bash
# Ubuntu / Debian
apt update && apt install -y unzip
```
```bash
# macOSHomebrew
brew install bun
```
```powershell
# WindowsPowerShell
powershell -c "irm bun.sh/install.ps1 | iex"
```
安装完成后,重新打开终端并确认:
```bash
bun --version
```
### 2. 安装项目依赖
```bash
bun install
```
### 3. 配置环境变量
复制示例文件并填入你的 API Key:
@@ -79,7 +111,7 @@ DISABLE_TELEMETRY=1
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1
```
### 3. 启动
### 4. 启动
```bash
# 交互 TUI 模式(完整界面)