这是本文档旧的修订版!
安装Node.js
确保 Node.js 版本 ≥ 18.0
# Ubuntu / Debian 用户 curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo bash - sudo apt-get install -y nodejs node --version # macOS 用户 sudo xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install node node --version
安装 Claude Code
npm install -g @anthropic-ai/claude-code claude --version
新建环境变量
ANTHROPIC_AUTH_TOKEN = sk-...
ANTHROPIC_BASE_URL = https://anyrouter.top
运行
claude
anyrouter 账号可注册liuxdo
实际使用wrap的效果和claudecode在一个层次,感觉优于其他ide