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
但是我应为网络问题无法安装
在这里插入图片描述

curl -fsSL https://claude.ai/install.sh | bash

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

在这里插入图片描述

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

在这里插入图片描述

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');
    }"

在这里插入图片描述

然后
在这里插入图片描述

$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
在这里插入图片描述

# 卸载
npm uninstall -g @anthropic-ai/claude-code

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

rm -rf ~/.claude.json
rm -rf ~/.claude

在这里插入图片描述
在这里插入图片描述

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐