moonshot/kimi-k2.6 पर सेट करें, या kimi/kimi-for-coding के साथ Kimi Coding का उपयोग करें।
अंतर्निहित मॉडल catalog
| Model ref | नाम | Reasoning | इनपुट | Context | अधिकतम आउटपुट |
|---|---|---|---|---|---|
moonshot/kimi-k2.6 | Kimi K2.6 | नहीं | text, image | 262,144 | 262,144 |
moonshot/kimi-k2.7-code | Kimi K2.7 Code | हमेशा चालू | text, image | 262,144 | 262,144 |
moonshot/kimi-k2.5 | Kimi K2.5 | नहीं | text, image | 262,144 | 262,144 |
moonshot/kimi-k2-thinking | Kimi K2 Thinking | हाँ | text | 262,144 | 262,144 |
moonshot/kimi-k2-thinking-turbo | Kimi K2 Thinking Turbo | हाँ | text | 262,144 | 262,144 |
moonshot/kimi-k2-turbo | Kimi K2 Turbo | नहीं | text | 256,000 | 16,384 |
on thinking state दिखाता है और Moonshot की आवश्यकता के अनुसार outbound thinking और reasoning_effort controls को छोड़ देता है। OpenClaw उन sampling overrides को भी छोड़ देता है जिन्हें K2.7 provider defaults पर fix करता है। Kimi K2.6 onboarding default बना रहता है।
शुरुआत करना
अपना provider चुनें और setup चरणों का पालन करें।- Moonshot API
- Kimi Coding
इसके लिए सर्वोत्तम: Moonshot Open Platform के माध्यम से Kimi K2 models।
अपना endpoint region चुनें
| Auth choice | Endpoint | Region |
|---|---|---|
moonshot-api-key | https://api.moonshot.ai/v1 | अंतरराष्ट्रीय |
moonshot-api-key-cn | https://api.moonshot.cn/v1 | चीन |
live smoke test चलाएँ
जब आप अपनी सामान्य sessions को छुए बिना model access और cost tracking सत्यापित करना चाहते हैं, तो अलग state dir का उपयोग करें:JSON response में
provider: "moonshot" और model: "kimi-k2.6" रिपोर्ट होना चाहिए। जब Moonshot usage metadata लौटाता है, assistant transcript entry normalized token usage के साथ estimated cost को usage.cost के अंतर्गत संग्रहित करती है।Config example
Kimi web search
Moonshot Plugin, Moonshot web search द्वारा समर्थितweb_search provider के रूप में Kimi को भी register करता है।
interactive web search setup चलाएँ
plugins.entries.moonshot.config.webSearch.* store हो सके।plugins.entries.moonshot.config.webSearch के अंतर्गत रहता है:
उन्नत configuration
Native thinking mode
Native thinking mode
Kimi K2.7 Code हमेशा native thinking का उपयोग करता है। Moonshot clients से इस model के लिए OpenClaw उन models के लिए runtime
Kimi K2.6 एक वैकल्पिक
thinking field छोड़ने की अपेक्षा करता है, इसलिए OpenClaw केवल on दिखाता है और पुराने off settings को ignore करता है। K2.7 temperature, top_p, n, presence_penalty, और frequency_penalty को भी fix करता है; OpenClaw उन fields के configured overrides छोड़ देता है।अन्य Moonshot Kimi models binary native thinking support करते हैं:thinking: { type: "enabled" }thinking: { type: "disabled" }
agents.defaults.models.<provider/model>.params के माध्यम से configure करें:/think levels map करता है:/think level | Moonshot behavior |
|---|---|
/think off | thinking.type=disabled |
| Any non-off level | thinking.type=enabled |
thinking.keep फ़ील्ड भी स्वीकार करता है, जो
reasoning_content के मल्टी-टर्न प्रतिधारण को नियंत्रित करता है। टर्नों में पूर्ण
reasoning बनाए रखने के लिए इसे "all" पर सेट करें; सर्वर की डिफ़ॉल्ट
रणनीति का उपयोग करने के लिए इसे छोड़ दें (या null रहने दें)। OpenClaw
केवल moonshot/kimi-k2.6 के लिए thinking.keep आगे भेजता है और
अन्य मॉडलों से इसे हटा देता है। Kimi K2.7 Code डिफ़ॉल्ट रूप से पूर्ण
reasoning इतिहास बनाए रखता है, जबकि OpenClaw पूरे thinking फ़ील्ड को छोड़ देता है।टूल कॉल आईडी सैनिटाइजेशन
टूल कॉल आईडी सैनिटाइजेशन
Moonshot Kimi नेटिव tool_call ids देता है जिनका आकार
functions.<name>:<index> जैसा होता है। OpenAI-completions परिवहन के लिए, OpenClaw हर नेटिव Kimi id की पहली उपस्थिति को बनाए रखता है और बाद की डुप्लीकेट ids को निर्धारक OpenAI-शैली वाली call_* ids में फिर से लिखता है। मेल खाते टूल परिणामों को उसी id के साथ रीमैप किया जाता है, ताकि रीप्ले Kimi की पहली नेटिव id हटाए बिना अद्वितीय बना रहे।किसी कस्टम OpenAI-संगत प्रदाता पर सख्त सैनिटाइजेशन लागू करने के लिए, sanitizeToolCallIds: true सेट करें:स्ट्रीमिंग उपयोग संगतता
स्ट्रीमिंग उपयोग संगतता
नेटिव Moonshot एंडपॉइंट (
https://api.moonshot.ai/v1 और
https://api.moonshot.cn/v1) साझा openai-completions परिवहन पर
स्ट्रीमिंग उपयोग संगतता घोषित करते हैं। OpenClaw इसे एंडपॉइंट
क्षमताओं से जोड़ता है, इसलिए समान नेटिव Moonshot होस्ट को लक्षित करने वाली
संगत कस्टम provider ids वही streaming-usage व्यवहार अपनाती हैं।कैटलॉग K2.6 मूल्य निर्धारण के साथ, इनपुट, आउटपुट और cache-read टोकन शामिल करने वाला
स्ट्रीम किया गया उपयोग /status, /usage full, /usage cost, और transcript-backed
session accounting के लिए स्थानीय अनुमानित USD लागत में भी बदला जाता है।एंडपॉइंट और मॉडल ref संदर्भ
एंडपॉइंट और मॉडल ref संदर्भ
| प्रदाता | मॉडल ref prefix | एंडपॉइंट | Auth env var |
|---|---|---|---|
| Moonshot | moonshot/ | https://api.moonshot.ai/v1 | MOONSHOT_API_KEY |
| Moonshot CN | moonshot/ | https://api.moonshot.cn/v1 | MOONSHOT_API_KEY |
| Kimi Coding | kimi/ | Kimi Coding endpoint | KIMI_API_KEY |
| Web search | N/A | Moonshot API क्षेत्र जैसा ही | KIMI_API_KEY or MOONSHOT_API_KEY |
- Kimi वेब खोज
KIMI_API_KEYयाMOONSHOT_API_KEYका उपयोग करती है, और मॉडलkimi-k2.6के साथ डिफ़ॉल्ट रूप सेhttps://api.moonshot.ai/v1पर रहती है। - जरूरत हो तो
models.providersमें मूल्य निर्धारण और context metadata ओवरराइड करें। - यदि Moonshot किसी मॉडल के लिए अलग context limits प्रकाशित करता है, तो
contextWindowको उसी के अनुसार समायोजित करें।
संबंधित
मॉडल चयन
प्रदाता, मॉडल refs, और failover व्यवहार चुनना।
वेब खोज
Kimi सहित वेब खोज प्रदाताओं को कॉन्फ़िगर करना।
कॉन्फ़िगरेशन संदर्भ
प्रदाताओं, मॉडलों, और plugins के लिए पूर्ण config schema।
Moonshot Open Platform
Moonshot API key प्रबंधन और दस्तावेज़ीकरण।