
机器MACmini 1420核48G1、brew install node2、npm install -g anthropic-ai/claude-codelatest3、安装好Claude Code 后直接在终端输入 claude 有可能会触发如下错误提示Unable to connect to Anthropic servicesFailed to connect to api.anthropic.com: ERR_BAD_REQUESTPlease 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需要设置某些参数。解决办法在 ~/.claude.json 文件添加如下配置hasCompletedOnboarding: true 然后重启Claude Code。4、安装ollamacurl -fsSL https://ollama.com/install.sh | sh5、下载ollama模型ollama launch claude 选qwen3.66、设置参数export ANTHROPIC_AUTH_TOKENollamaexport ANTHROPIC_API_KEYexport ANTHROPIC_BASE_URLhttp://localhost:114347、启动 claude --model qwen3.6qwen3.6:latest36B 参数