Xz's blog Xz's blog
首页
时间序列
多模态
合成生物学
其他方向
生活
工具相关
PyTorch
导航站

Xu Zhen

首页
时间序列
多模态
合成生物学
其他方向
生活
工具相关
PyTorch
导航站
  • Rust

  • Rust-Windows 窗口自动化

  • Tauri

  • C++

  • Claude Code

    • 登录问题
      • 登录时报错:
      • 解决办法
    • 制定计划
  • Liunx相关

  • MAC相关

  • Windows相关

  • IDE

  • Conda

  • Docker

  • VMware虚拟机

  • Python常用代码片段

  • 工具相关
  • Claude Code
xuzhen
2025-09-02
目录

登录问题

# 登录时报错:

运行 claude 命令报错:

 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
1
2
3
4
5
6
7

# 解决办法

  1. 打开配置文件 `~/.claude.json。
  2. 增加配置这个字段 "hasCompletedOnboarding": true
{
  "installMethod": "unknown",
  "autoUpdates": true,
  "cachedStatsigGates": {
    "tengu_disable_bypass_permissions_mode": false
  },
  "firstStartTime": "2025-09-02T08:08:19.595Z",
  },
  "hasCompletedOnboarding": true  //增加这个字段
1
2
3
4
5
6
7
8
9
#Claude Code
上次更新: 2025/09/18, 20:06:50

← 多线程之实现非阻塞的事件循环 制定计划→

最近更新
01
MAC 好用软件
12-05
02
Linux 通过Windows代理上网
09-18
03
vscode远程使用copilot和codex(内网环境)
09-18
更多文章>
Theme by Vdoing | Copyright © 2025-2025 Xu Zhen | 鲁ICP备2025169719号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式