claude code 本地映射中转代理后报错 Failed to connect to api.anthropic.com: ERR_BAD_REQUEST 解决方案。
claude code 我是用映射到8082端口,且设置了环境变量为同时设置了.claude/settings.json后仍然报错。
·
claude code 我是用claude-code-proxy项目映射到8082端口,且设置了环境变量为http://0.0.0.0:8082同时设置了.claude/settings.json后仍然报错
Unable to connect to Anthropic services
Failed to connect to api.anthropic.com: ERR_BAD_REQUEST
Please check your internet connection and network settings.
Note: Claude Code might not be available in your country. Check supported countries at
https://anthropic.com/supported-countries
一、解决方案
在~目录找到.claude.json,或者可以直接在C盘搜索claude.json。

打开文件在最后添加
"hasCompletedOnboarding": true

更多推荐
所有评论(0)