Step-by-step guide for integrating Moonshot AI (Kimi K2) and Kimi Code models into Clawdbot, including API key setup, provider configuration, and model selection.
Ships in sundial-org-awesome-openclaw-skills-4. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Complete guide for adding Moonshot AI (Kimi) and Kimi Code models to Clawdbot.
Kimi offers two separate model families:
Both require API keys from different sources.
sk-...)sk-...)Note: Moonshot and Kimi Code use separate keys and endpoints.
export MOONSHOT_API_KEY="sk-your-moonshot-key-here"
Or add to .env file:
echo 'MOONSHOT_API_KEY="sk-your-moonshot-key-here"' >> ~/.env
Edit your clawdbot.json config:
{
"agents": {
"defaults": {
"model": {
"primary": "moonshot/kimi-k2.5"
}
}
},
"models": {
"mode": "merge",
"providers": {
"moonshot": {
"baseUrl": "https://api.moonshot.cn/v1",
"apiKey": "${MOONSHOT_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "moonlight-v1-32k",
"name": "Moonlight V1 32K",
"contextWindow": 32768
},
{
"id": "moonshot-v1-8k",
"name": "Moonshot V1 8K",
"contextWindow": 8192
},
{
"id": "moonshot-v1-32k",
"name": "Moonshot V1 32K",
"contextWindow": 32768
},
{
"id": "moonshot-v1-128k",
"name": "Moonshot V1 128K",
"contextWindow": 131072
},
{
"id": "kimi-k2.5",
"name": "Kimi K2.5",
"contextWindow": 200000
}
]
}
}
}
}
clawdbot gateway restart
clawdbot models list
You should see Moonshot models in the list.
Set as default:
clawdbot models set moonshot/kimi-k2.5
Or use model aliases in chat:
/model moonshot/kimi-k2.5
export KIMICODE_API_KEY="sk-your-kimicode-key-here"
Or add to .env:
echo 'KIMICODE_API_KEY="sk-your-kimicode-key-here"' >> ~/.env
Edit your clawdbot.json config:
{
"agents": {
"defaults": {
"model": {
"primary": "kimicode/kimi-for-coding"
},
"models": {
"kimicode/kimi-for-coding": {
"alias": "kimi"
}
}
}
},
"models": {
"mode": "merge",
"providers": {
"kimicode": {
"baseUrl": "https://api.kimi.com/coding/v1",
"apiKey": "${KIMICODE_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "kimi-for-coding",
"name": "Kimi For Coding",
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
}
}
clawdbot gateway restart
clawdbot models list
You should see kimicode/kimi-for-coding in the list.
Set as default:
clawdbot models set kimicode/kimi-for-coding
Or use model alias in chat:
/model kimi
You can configure both Moonshot and Kimi Code simultaneously:
{
"agents": {
"defaults": {
"model": {
"primary": "moonshot/kimi-k2.5"
},
"models": {
"kimicode/kimi-for-coding": {
"alias": "kimi"
},
"moonshot/kimi-k2.5": {
"alias": "k25"
}
}
}
},
"models": {
"mode": "merge",
"providers": {
"moonshot": {
"baseUrl": "https://api.moonshot.cn/v1",
"apiKey": "${MOONSHOT_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "kimi-k2.5", "name": "Kimi K2.5", "contextWindow": 200000 }
]
},
"kimicode": {
"baseUrl": "https://api.kimi.com/coding/v1",
"apiKey": "${KIMICODE_API_KEY}",
"api": "openai-completions",
"models": [
{ "id": "kimi-for-coding", "name": "Kimi For Coding", "contextWindow": 200000 }
]
}
}
}
}
Switch between models using aliases:
/model k25 - Kimi K2.5 (general)/model kimi - Kimi for Coding (specialized)Check config syntax:
clawdbot gateway config.get | grep -A 20 moonshot
Verify API key is set:
echo $MOONSHOT_API_KEY
echo $KIMICODE_API_KEY
sk-Test API endpoint directly:
curl -X POST "https://api.moonshot.cn/v1/chat/completions" \
-H "Authorization: Bearer $MOONSHOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "kimi-k2.5", "messages": [{"role": "user", "content": "test"}]}'
moonshot/kimi-k2.5) - Best for general tasks, 200K contextkimicode/kimi-for-coding) - Specialized for code generationmoonshot/moonshot-v1-128k) - Legacy model, 128K contextWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/sundial-org-awesome-openclaw-skills-4:kimi-integrationfrom sundial-org-awesome-openclaw-skills-4
sundial-org-awesome-openclaw-skills-4@cascade-ai-ml-agents-misc-2 is listed by joshuarweaver/cascade-ai-ml-agents-misc-2 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-2 --plugin sundial-org-awesome-openclaw-skills-4908 skills in this plugin
/1passwordSet up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op./a11y-checkerScan HTML and JSX for accessibility issues with AI-powered fix suggestions/abm-outboundMulti-channel ABM automation that turns LinkedIn URLs into coordinated outbound campaigns. Scrapes profiles, enriches with Apollo (email + phone), gets mailing addresses via Skip Trace, then orchestrates email sequences, LinkedIn touches, and handwritten letters via Scribeless. The secret weapon for standing out in crowded inboxes.Other plugins' skills for the same job