Unable to connect to Anthropic services
Failed to connect to api.anthropic.com: ERR BAD REQUEST
lease check your internet connection and network settings.
Note: Claude Code might not be available in your country, Check supported countries atnttps://anthropic.com/supported-countriesS E:ltoollclaude code>

1. 添加 hasCompletedOnboarding 字段

在 Nano 编辑器中,按  键移动到文件最后一行(} 之前),然后按 Enter 插入新行。

2. 输入以下内容

json

  "hasCompletedOnboarding": true,

3. 完整配置示例

修改后的文件应如下所示(新增行已高亮):

json

{
  "installMethod": "unknown",
  "autoUpdates": true,
  "firstStartTime": "2025-07-14T06:11:03.877Z",
  "userID": "f5afdd05117c901a4a5a0761d08230bfcbb76f9fd380ff7bc144cc12c52e55aa",
  "projects": {
    "/home/nassi": {
      "allowedTools": [],
      "history": [],
      "mcpContextUris": [],
      "mcpServers": {},
      "enabledMcpjsonServers": [],
      "disabledMcpjsonServers": [],
      "hasTrustDialogAccepted": false,
      "projectOnboardingSeenCount": 0,
      "hasClaudeMdExternalIncludesApproved": false,
      "hasClaudeMdExternalIncludesWarningShown": false
    }
  },
  "hasCompletedOnboarding": true  // 新增字段
}

4. 保存并退出

按 Ctrl + O 保存文件,然后按 Enter 确认文件名。最后按 Ctrl + X 退出 Nano。

5. 重启 Claude CLI

bas

还有疑问也可以假

V 体验 gpt、claude 加Na_xxwx  

# 关闭所有Claude进程(如果有)
pkill -f claude

# 重新启动Claude
claude
Logo

更多推荐