如何在Mac上安装Claude Code与配置Kimi Code 2.6

b站视频:https://www.bilibili.com/video/BV1zsoYBeEzQ/

kimi的官方文档:
https://www.kimi.com/code/docs/third-party-tools/other-coding-agents.html

1 安装Claude Code

https://www.kimi.com/code/docs/third-party-tools/other-coding-agents.html

这个官方的安装连接:https://docs.anthropic.com/en/docs/claude-code/getting-started

但是我应为网络问题无法安装

bash 复制代码
curl -fsSL https://claude.ai/install.sh | bash

于是我换了个国内镜像安装的网站:
https://claude-zh.cn/guide/getting-started

bash 复制代码
source <(curl -fsSL https://claude-zh.cn/scripts/install.sh)

执行结果如下:

2 Claude Code 配置 Kimi Code 模型

https://www.kimi.com/code/docs/third-party-tools/other-coding-agents.html

bash 复制代码
node --eval "
    const homeDir = os.homedir();
    const filePath = path.join(homeDir, '.claude.json');
    if (fs.existsSync(filePath)) {
        const content = JSON.parse(fs.readFileSync(filePath, 'utf-8'));
        fs.writeFileSync(filePath, JSON.stringify({ ...content, hasCompletedOnboarding: true }, null, 2), 'utf-8');
    } else {
        fs.writeFileSync(filePath, JSON.stringify({ hasCompletedOnboarding: true }), 'utf-8');
    }"

然后

bash 复制代码
$env:ENABLE_TOOL_SEARCH="false"
$env:ANTHROPIC_BASE_URL="https://api.kimi.com/coding/"
$env:ANTHROPIC_API_KEY="你的API Key"

claude

3 启动Claude Code的Kimi版

看看最后效果:

4 卸载

https://claude-zh.cn/guide/getting-started

bash 复制代码
# 卸载
npm uninstall -g @anthropic-ai/claude-code

但是单单用这个卸载不干净(https://gemini.google.com/share/e297f1877df6),还要这样:

bash 复制代码
rm -rf ~/.claude.json
rm -rf ~/.claude


相关推荐
菜鸟‍1 小时前
【项目】基于 YOLOv11与COCO 的目标检测项目【公开数据集 和 完整项目步骤与代码】
人工智能·yolo·目标检测
枫夜求索阁1 小时前
Hermes Agent 安装教程:对接企业微信 AI Bot
人工智能·企业微信
JEECG低代码平台1 小时前
给 Claude Code 装一块秒表:每轮 + 累计耗时自动反馈
人工智能
木泽八1 小时前
2026年大模型学习路线图
人工智能
weixin_509138341 小时前
ACD理论实战揭秘:配置智能体认知动力学后,医疗Agent从“可能上岗”到“必须上岗”的能力跃迁——以心衰管理智能体测评报告为例
人工智能·机器学习·智能体·认知动力学
K姐研究社2 小时前
飞书OpenClaw完整部署教程 – 3分钟组建 AI Agent 团队
人工智能·aigc·飞书
QuestLab2 小时前
【第20期】2026年4月23日 AI日报
运维·服务器·人工智能
思绪无限2 小时前
YOLOv5至YOLOv12升级:快递包裹检测系统的设计与实现(完整代码+界面+数据集项目)
人工智能·python·深度学习·目标检测·计算机视觉·快递包裹检测
学习论之费曼学习法2 小时前
AI 入门 30 天挑战 - Day 18 费曼学习法版 - 图像分割基础
人工智能·学习