claudecode

这是本文档旧的修订版!


# 安装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 ```

该主题尚不存在

您访问的页面并不存在。如果允许,您可以使用创建该页面按钮来创建它。

  • claudecode.1763432306.txt.gz
  • 最后更改: 2025/11/18 10:18
  • 张叶安