Claude Code 是 Anthropic 官方的命令行 AI 编程助手。通过配置 Matrix Token,你可以使用 Matrix 的 API 服务。Documentation Index
Fetch the complete documentation index at: https://docs.000328.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Linux / macOS
1. 安装 Claude Code
2. 配置环境变量
在 shell 配置文件(~/.bashrc、~/.zshrc 或 ~/.bash_profile)中添加:
3. 验证
Windows
1. 安装 Claude Code
2. 配置环境变量
方法 A:PowerShell 永久设置- 按
Win + R,输入sysdm.cpl,回车 - 点击「高级」→「环境变量」
- 在「用户变量」中点击「新建」:
- 变量名:
ANTHROPIC_API_KEY,变量值:sk-你的Token - 变量名:
ANTHROPIC_BASE_URL,变量值:https://matrix.000328.xyz:2053
- 变量名:
- 确定保存,重新打开终端