Claude-Code

code.claude.com

安装

1
2
3
4
# native install
curl -fsSL https://claude.ai/install.sh | bash
# npm
npm install -g @anthropic-ai/claude-code

配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ~/.claude/config.json
{
"primaryApiKey": "self"
}
# ~/.claude/settings.json
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "sk-你的API令牌",
"ANTHROPIC_BASE_URL": "https://wolfai.top",
"ANTHROPIC_MODEL": "claude-sonnet-4-5-20250929",
"ANTHROPIC_SMALL_FAST_MODEL": "claude-haiku-4-5-20251001"
}
}
# ~/.claude.json
{
// 跳过登录
"hasCompletedOnboarding": true,
}

cc-switch

1
2
3
# macos 安装 cc-switch
brew install --cask cc-switch
# 直接去下载 https://github.com/farion1231/cc-switch/releases

CLI - claude-code-router

claude-code-router

1
2
npm install -g @anthropic-ai/claude-code
npm install -g @musistudio/claude-code-router

Claude-Code
http://example.com/2025/12/24/claude-code/
作者
dsaco
发布于
2025年12月24日
许可协议