终端指令代码
安装 Homebrew(首次安装完成后需运行提示的两条命令)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
安装 Claude Code
brew install --cask claude-code
安装 uv 工具链 & Python 3.14
curl -LsSf https://astral.sh/uv/install.sh | sh
uv self update
uv python install 3.14
克隆并配置 free-claude-code
git clone https://github.com/Alishahryar1/free-claude-code.git
cd free-claude-code
cp .env.example .env
sudo nano .env
启动本地代理服务(在终端 A 中运行)
cd /Users/eight/free-claude-code
uv run uvicorn server:app --host 0.0.0.0 --port 8082
启动免配置版 Claude Code(在终端 B 中运行)
ANTHROPIC_AUTH_TOKEN="freecc" ANTHROPIC_BASE_URL="http://localhost:8082" claude