by kaichen
一步命令 npx kimicc 使用 Kimi K2 运行 Claude Code。
# Add to your Claude Code skills
git clone https://github.com/kaichen/kimiccOne-step command npx kimicc to run Claude Code using Kimi K2 / GLM-4.6 / Qwen3-Coder / DeepSeek-v3.2.
一步命令 npx kimicc 使用 Kimi K2 / GLM-4.5 / Qwen3-Coder / DeepSeek-v3.1 运行 Claude Code。
Or install KimiCC with npm install -g kimicc.
This is a lightweight Node.js npm package that sets up environment variables at startup, allowing Claude Code to call Kimi K2 / GLM-4.6 / Qwen3-Coder / DeepSeek-v3.2 models.
这是一个轻量的 nodejs 的 npm 包,在启动时设置好环境变量,让 Claude Code 调用 Kimi K2 / GLM-4.6 / Qwen3-Coder / DeepSeek-v3.2 模型。
This tool does some small work to save you time handling configuration tasks. At the bottom layer, it sets up Auth Token and Base URL environment variable parameters before starting claude.
Compared to other tutorials that require you to configure files or add long parameters at startup, using this tool will save your valuable time and energy.
Here are the console addresses:
npx kimicc to install and start, or use npm install -g kimicc;First initialization will prompt you to enter Auth Token, no need to set it again next time.
⚠️Note⚠️, when starting Claude Code will ask for AUTH TOKEN, default is NO(recommended), at this time select YES.
Do you want to use this auth token? SELECT YES!!!

How to uninstall: npm uninstall kimicc
Completely uninstall claude code: npm uninstall @anthropic-ai/claude-code
By default, if no parameters are added, it starts with the kimi model configuration. Using the following parameters can start other models
--deepseek will set base_url=https://api.deepseek.com/anthropic model=deepseek-chat--glm will set base_url=https://open.bigmodel.cn/api/anthropic model=glm-4.6--qwen will set base_url=https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy model=qwen3-coder-plusWhen starting or setting Profile, you can use the following parameters to set models,
--model used to specify the main large model type.--small-fast-model used to specify the auxiliary fast small model, if not specified then use --model configuration.This allows users to use the latest large model releases immediately. For example, when kimi releases kimi-k2-0905-preview, use the latest model via kimicc --model=kimi-k2-0905-preview.
kimicc reset Reset configuration.kimicc inject Persist Anthropic environment variables into ~/.claude/settings.json (env block) so claude picks them up without running kimicc. Use --profile, --base-url, --model, or --small-fast-model to override values for the saved env.kimicc inject --reset Remove the managed environment keys (ANTHROPIC_AUTH_TOKEN, ANTHROPIC_BASE_URL, ANTHROPIC_MODEL, ANTHROPIC_SMALL_FAST_MODEL) from ~/.claude/settings.json.kimicc profile Support configuring multiple different service providers.Claude Code exposes some environment variables that can be used to configure model services, which are divided into three levels: haiku, sonnet, and opus.
Note that ANTHROPIC_SMALL_FAST_MODEL has been deprecated.
As long as the above environment variables are set during claude code runtime, the models it uses can be modified, of course the service interface also needs to be consistent with anthropic.
There are several ways to modify environment variables:
.claude/settings.json configuration.Reference:
👏 Welcome to raise issues or request more features.
MIT. Kaikai@thekaiway.com
No comments yet. Be the first to share your thoughts!