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

参考文章:https://www.cnblogs.com/gordonMlxg/articles/19103691

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐