Skip to content

🧭 macOS Claude Code(使用Kimi Api)全流程安装指南

Ian Wan
Published date:
Edit this post

以下操作默认你已具备🪄科学上网的条件以及已经安装了🍺Homebrew

🧩 安装Node.js

brew install node

🧠 安装Claude Code

npm install -g @anthropic-ai/claude-code

🔑 申请Kimi API Key

🔗 点我直达申请

iShot_2025-07-18_18.45.22

iShot_2025-07-18_18.45.58

🔔保存好你的Api Key,页面只会显示一次!

💻 配置kimi api环境变量

export ANTHROPIC_BASE_URL="https://api.moonshot.cn/anthropic"
export ANTHROPIC_AUTH_TOKEN="你的Kimi API Key"

iShot_2025-07-18_18.38.23

⚙️ 配置Claude Code

iShot_2025-07-18_18.51.01

{
  "env": {
    "HTTP_PROXY": "http://127.0.0.1:7897",
    "HTTPS_PROXY": "http://127.0.0.1:7897"
  }
}

🌍 7897为端口号

iShot_2025-07-18_18.55.59

iShot_2025-07-18_18.59.21

iShot_2025-07-18_19.03.05

Previous
🧭使用▲Vercel部署🌛MoonTV
Next
记:微调一个情绪对话模型