如何在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 小时前
千台量产前夜,具身智能竞争已沉到底层基建
人工智能
血色橄榄枝1 小时前
基于用户注册信息的关键词检测挑战赛「Datawhale AI 夏令营」
人工智能·算法·机器学习
A hao1 小时前
高对比度在XR虚拟背景中的作用
大数据·图像处理·人工智能·xr·广告
小二·1 小时前
2026年AI Agent框架横评:OpenClaw vs LangGraph vs CrewAI vs Superpowers,选型指南
人工智能
tyqtyq222 小时前
旅行打包清单 App — HarmonyOS AI 应用开发技术博客
人工智能·学习·华为·生活·harmonyos
guo_xiao_xiao_2 小时前
YOLOv11道路桥梁裂缝与坑洼目标检测数据集
人工智能·yolo·目标检测
邵宇然2 小时前
Rust Unsafe 代码规范:不安全块要小到能被审查
人工智能
Haoxuekeji2 小时前
山东 AI 智能批改校园电子阅卷企业
大数据·人工智能·深度学习·安全·ai
视觉AI3 小时前
VS Code Remote-SSH 连接Jetson踩坑完整解决记录(网段不通+主机密钥变更双重故障)
运维·网络·人工智能·windows·ssh·边缘计算