LofiSu

Agent Kimi ClaudeCode — Development skill for Claude Code

Development community

🔥Kimi K2+ClaudeCode实战.

How to install Agent Kimi ClaudeCode

This entry records only its repository, not the path inside it, so there is no exact command to give. Open LofiSu/Agent_Kimi_ClaudeCode and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Kimi ClaudeCode does

🔥Kimi K2+ClaudeCode实战!极速提升开发效率🚀手把手快速搭建一个DeepReSearchAgent!

Alternatives in Development

README

Agent_Kimi_ClaudeCode

🔥Kimi K2+ClaudeCode实战!绝对真实测评!手把手教程,绝对真实测评!

只有干货!无废话纯教程!

安装 ClaudeCode 并接入 Kimi K2 API

1. 安装 Node.js(已安装可跳过)

确保 Node.js 版本 ≥ 18.0

Ubuntu / Debian 用户:

curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo bash -
sudo apt-get install -y nodejs
node --version

macOS 用户:

sudo xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install node
node --version

2. 安装 Claude Code

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

3. 接入 Kimi K2 API

  1. 首先去 Moonshot AI 平台获取一个 API Key: 👉 [https://platform.moonshot.cn/console/api-keys](https://platform.moonshot.cn/console/api-keys)

    截屏2025-07-15 上午12 38 50
  2. 打开 Claude Code 前,在命令行中设置环境变量:

国内环境:

export ANTHROPIC_AUTH_TOKEN=你的key(sk-xxx)
export ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic

海外环境:

export ANTHROPIC_BASE_URL=https://api.moonshot.ai/anthropic
  1. 启动 Claude Code:
claude
  1. 启动后按提示操作:
  • 选择你喜欢的主题 + Enter
  • 确认安全须知 + Enter
  • 使用默认 Terminal 配置 + Enter
  • 信任工作目录 + Enter

✅ 现在就可以在终端和你的 AI 编程搭档一起写代码啦!


4. 配置环境变量(推荐方式)

为避免每次重复输入,可将环境变量写入 `bash_profile`、`bashrc` 和 `zshrc`:

设置 Kimi API 的环境变量(国内):

echo -e '\n# Kimi API 配置 - 国内环境' >> ~/.bash_profile
echo -e 'export KIMI_AUTH_TOKEN=sk-...' >> ~/.bash_profile
echo -e 'export KIMI_BASE_URL=https://api.moonshot.cn/anthropic' >> ~/.bash_profile

海外环境(取消注释使用):

echo -e '\n# Kimi API 配置 - 海外环境(取消下面注释使用)' >> ~/.bash_profile
echo -e '# export KIMI_BASE_URL=https://api.moonshot.ai/anthropic' >> ~/.bash_profile

同样配置到 `bashrc` 和 `zshrc`:

# bashrc
echo -e '\n# Kimi API 配置 - 国内环境' >> ~/.