AnyRouter注册赠送100刀Claude Code额度

🚀 AnyRouter 一键开始使用(带AFF)

注册链接 👉 点击注册 AnyRouter(含 AFF)

AnyRouter 是一个 Claude Code 中转站,适用于自定义 API 网关和部署 Claude API 工具链。

⚡ 三步快速开始

1️⃣ 注册获取 API 令牌

2️⃣ 安装 Claude Code 工具

npm install -g @anthropic-ai/claude-code

3️⃣ 设置并运行

将以下命令复制粘贴到终端(替换 sk-... 为你的 API 令牌):

export ANTHROPIC_AUTH_TOKEN=sk-...

export ANTHROPIC_BASE_URL=https://anyrouter.top

claude

🛠️ 持久化配置(可选)

为了避免每次都输入 Token 和 Base URL,可将其写入 .bashrc.zshrc 文件中:

echo "export ANTHROPIC_AUTH_TOKEN=sk-..." >> ~/.bashrc

echo "export ANTHROPIC_BASE_URL=https://anyrouter.top" >> ~/.bashrc

source ~/.bashrc

(使用 Zsh 的话请替换为 ~/.zshrc

Previous Post
No Comment
Add Comment
comment url