claude: win11启动calude时报错:Unable to connect to Anthropic services,Please check your internet connection and network settings.
一,报错信息
Unable to connect to Anthropic services
Failed to connect to api.anthropic.com: Status 403
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 code首次启动时会检查用户地区
部分地区因法律原因被限制使用,
可以增加一个配置 hasCompletedOnboarding 用于记录用户是否已完成首次启动的引导流程(新手教程/入门介绍)。
具体作用如下:
状态标记:它仅仅是一个布尔值标记,用来告诉程序“这个用户已经注册或登录并完成了初始化设置”,不需要再重复展示那些新手指导信息。
三,解决:
编辑.claude.json,增加一行配置:
用notepad打开当前用户目录下的.claude.json,如图:

增加一行:
"hasCompletedOnboarding": true
它表示:“这个用户已经注册或登录并完成了初始化设置”
如下:
{
"firstStartTime": "2026-08-19T04:48:13.818Z",
"machineID": "3bca56dc0d3de6286cba2a1900f0b47bb88839a3ac2bda4a0cab78faa2754c6b",
"opusProMigrationComplete": true,
"sonnet1m45MigrationComplete": true,
"seenNotifications": {},
"hasResetAutoModeOptInForDefaultOffer": true,
"migrationVersion": 13,
"userID": "78009ebd75aafe0ec79bcd8f7ae4b3556e9b6f706fb8c4bb545938eae62a8559",
"hasCompletedOnboarding": true
}
浙公网安备 33010602011771号