1、环境要求
2、安装 Claude Code
shell
npm install -g @anthropic-ai/claude-code --registry=HTTPS://registry.npmmirror.com3、配置 BaseUrl 和 Apikey
setx 执行后需要重新打开 cmd 窗口。
shell
setx ANTHROPIC_BASE_URL https://api.xxx.xxx
setx ANTHROPIC_AUTH_TOKEN sk-xxxxxx
setx CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC 14、使用
在指定文件夹打开 cmd 窗口,输入 Claude 即可使用
shell
# 默认启动方式,每次操作文件时都会让你确认
claude
# 可以跳过用户确认,直接操作
claude --dangerously-skip-permissionsClaude Code 国内安装使用教程https://wmhwiki.cn/posts/2025/claudecode