Files
Obsidian_Unity/AI/配置ClaudeCode.md
T
2026-05-03 14:06:26 +08:00

25 lines
693 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#AI
#配置
``powershell
setx ANTHROPIC_API_KEY "YOUR_DASHSCOPE_API_KEY"
setx ANTHROPIC_BASE_URL "https://open.bigmodel.cn/api/anthropic"
```
配置API_KEY和URL
可以新打开一个窗口使用一下代码来检查
```powershell
echo %ANTHROPIC_API_KEY%
echo %ANTHROPIC_BASE_URL%
```
如果配置失败,可以直接去系统环境变量添加
//最新方法
直接在C:\Users\Administrator\.claude中添加settings.json,在json中配置对应的apiURLModel即可
```
{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "8e51b674-209f-4edb-8ef9-2388b1c5ce60",
    "ANTHROPIC_BASE_URL": "https://ark.cn-beijing.volces.com/api/coding",
    "ANTHROPIC_MODEL": "ark-code-latest"
  }
}
```