{"id":225,"date":"2026-03-21T22:47:23","date_gmt":"2026-03-21T14:47:23","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-moonshot\/"},"modified":"2026-03-21T23:08:54","modified_gmt":"2026-03-21T15:08:54","slug":"providers-moonshot","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-moonshot\/","title":{"rendered":"Moonshot AI"},"content":{"rendered":"<h1>Moonshot AI<\/h1>\n<h1>Moonshot AI\uff08Kimi\uff09<\/h1>\n<p>Moonshot \u63d0\u4f9b\u5e26\u6709 OpenAI \u517c\u5bb9\u7aef\u70b9\u7684 Kimi API\u3002\u914d\u7f6e\u8be5<br \/>\n\u63d0\u4f9b\u5546\uff0c\u5e76\u5c06\u9ed8\u8ba4\u6a21\u578b\u8bbe\u7f6e\u4e3a <code>moonshot\/kimi-k2.5<\/code>\uff0c\u6216\u8005\u4f7f\u7528<br \/>\n<code>kimi-coding\/k2p5<\/code> \u4f5c\u4e3a Kimi Coding\u3002<\/p>\n<p>\u5f53\u524d Kimi K2 \u6a21\u578b ID\uff1a<\/p>\n<ul>\n<li><code>kimi-k2.5<\/code><\/li>\n<li><code>kimi-k2-0905-preview<\/code><\/li>\n<li><code>kimi-k2-turbo-preview<\/code><\/li>\n<li><code>kimi-k2-thinking<\/code><\/li>\n<li><code>kimi-k2-thinking-turbo<\/code><\/li>\n<\/ul>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\nopenclaw onboard &#8211;auth-choice moonshot-api-key<\/p>\n<pre><code>\nKimi Coding\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw onboard --auth-choice kimi-code-api-key\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff1aMoonshot \u548c Kimi Coding \u662f\u72ec\u7acb\u63d0\u4f9b\u5546\u3002\u5bc6\u94a5\u4e0d\u53ef\u4e92\u6362\uff0c\u7aef\u70b9\u4e0d\u540c\uff0c\u6a21\u578b\u5f15\u7528\u4e5f\u4e0d\u540c\uff08Moonshot \u4f7f\u7528 <code>moonshot\/...<\/code>\uff0cKimi Coding \u4f7f\u7528 <code>kimi-coding\/...<\/code>\uff09\u3002<\/p>\n<h2>\u914d\u7f6e\u7247\u6bb5\uff08Moonshot API\uff09<\/h2>\n<p>&#8220;`json5  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\n{<br \/>\n  env: { MOONSHOT_API_KEY: &#8220;sk-&#8230;&#8221; },<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      model: { primary: &#8220;moonshot\/kimi-k2.5&#8221; },<br \/>\n      models: {<br \/>\n        \/\/ moonshot-kimi-k2-aliases:start<br \/>\n        &#8220;moonshot\/kimi-k2.5&#8221;: { alias: &#8220;Kimi K2.5&#8221; },<br \/>\n        &#8220;moonshot\/kimi-k2-0905-preview&#8221;: { alias: &#8220;Kimi K2&#8221; },<br \/>\n        &#8220;moonshot\/kimi-k2-turbo-preview&#8221;: { alias: &#8220;Kimi K2 Turbo&#8221; },<br \/>\n        &#8220;moonshot\/kimi-k2-thinking&#8221;: { alias: &#8220;Kimi K2 Thinking&#8221; },<br \/>\n        &#8220;moonshot\/kimi-k2-thinking-turbo&#8221;: { alias: &#8220;Kimi K2 Thinking Turbo&#8221; },<br \/>\n        \/\/ moonshot-kimi-k2-aliases:end<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n  models: {<br \/>\n    mode: &#8220;merge&#8221;,<br \/>\n    providers: {<br \/>\n      moonshot: {<br \/>\n        baseUrl: &#8220;https:\/\/api.moonshot.ai\/v1&#8221;,<br \/>\n        apiKey: &#8220;${MOONSHOT_API_KEY}&#8221;,<br \/>\n        api: &#8220;openai-completions&#8221;,<br \/>\n        models: [<br \/>\n          \/\/ moonshot-kimi-k2-models:start<br \/>\n          {<br \/>\n            id: &#8220;kimi-k2.5&#8221;,<br \/>\n            name: &#8220;Kimi K2.5&#8221;,<br \/>\n            reasoning: false,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 256000,<br \/>\n            maxTokens: 8192,<br \/>\n          },<br \/>\n          {<br \/>\n            id: &#8220;kimi-k2-0905-preview&#8221;,<br \/>\n            name: &#8220;Kimi K2 0905 Preview&#8221;,<br \/>\n            reasoning: false,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 256000,<br \/>\n            maxTokens: 8192,<br \/>\n          },<br \/>\n          {<br \/>\n            id: &#8220;kimi-k2-turbo-preview&#8221;,<br \/>\n            name: &#8220;Kimi K2 Turbo&#8221;,<br \/>\n            reasoning: false,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 256000,<br \/>\n            maxTokens: 8192,<br \/>\n          },<br \/>\n          {<br \/>\n            id: &#8220;kimi-k2-thinking&#8221;,<br \/>\n            name: &#8220;Kimi K2 Thinking&#8221;,<br \/>\n            reasoning: true,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 256000,<br \/>\n            maxTokens: 8192,<br \/>\n          },<br \/>\n          {<br \/>\n            id: &#8220;kimi-k2-thinking-turbo&#8221;,<br \/>\n            name: &#8220;Kimi K2 Thinking Turbo&#8221;,<br \/>\n            reasoning: true,<br \/>\n            input: [&#8220;text&#8221;],<br \/>\n            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },<br \/>\n            contextWindow: 256000,<br \/>\n            maxTokens: 8192,<br \/>\n          },<br \/>\n          \/\/ moonshot-kimi-k2-models:end<br \/>\n        ],<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## Kimi Coding\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{\n  env: { KIMI_API_KEY: &quot;sk-...&quot; },\n  agents: {\n    defaults: {\n      model: { primary: &quot;kimi-coding\/k2p5&quot; },\n      models: {\n        &quot;kimi-coding\/k2p5&quot;: { alias: &quot;Kimi K2.5&quot; },\n      },\n    },\n  },\n}\n<\/code><\/pre>\n<h2>\u8bf4\u660e<\/h2>\n<ul>\n<li>Moonshot \u6a21\u578b\u5f15\u7528\u4f7f\u7528 <code>moonshot\/&lt;modelId&gt;<\/code>\u3002Kimi Coding \u6a21\u578b\u5f15\u7528\u4f7f\u7528 <code>kimi-coding\/&lt;modelId&gt;<\/code>\u3002<\/li>\n<li>\u5982\u6709\u9700\u8981\uff0c\u53ef\u5728 <code>models.providers<\/code> \u4e2d\u8986\u76d6\u5b9a\u4ef7\u548c\u4e0a\u4e0b\u6587\u5143\u6570\u636e\u3002<\/li>\n<li>\u5982\u679c Moonshot \u4e3a\u67d0\u4e2a\u6a21\u578b\u53d1\u5e03\u4e86\u4e0d\u540c\u7684\u4e0a\u4e0b\u6587\u9650\u5236\uff0c\u8bf7\u76f8\u5e94\u8c03\u6574<br \/>\n  <code>contextWindow<\/code>\u3002<\/li>\n<li>\u56fd\u9645\u7aef\u70b9\u4f7f\u7528 <code>https:\/\/api.moonshot.ai\/v1<\/code>\uff0c\u4e2d\u56fd\u7aef\u70b9\u4f7f\u7528 <code>https:\/\/api.moonshot.cn\/v1<\/code>\u3002<\/li>\n<\/ul>\n<h2>\u539f\u751f thinking \u6a21\u5f0f\uff08Moonshot\uff09<\/h2>\n<p>Moonshot Kimi \u652f\u6301\u4e8c\u5143\u539f\u751f thinking\uff1a<\/p>\n<ul>\n<li><code>thinking: { type: \"enabled\" }<\/code><\/li>\n<li><code>thinking: { type: \"disabled\" }<\/code><\/li>\n<\/ul>\n<p>\u901a\u8fc7 <code>agents.defaults.models.&lt;provider\/model&gt;.params<\/code> \u4e3a\u6bcf\u4e2a\u6a21\u578b\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<p><code>json5  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\n{<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      models: {<br \/>\n        \"moonshot\/kimi-k2.5\": {<br \/>\n          params: {<br \/>\n            thinking: { type: \"disabled\" },<br \/>\n          },<br \/>\n        },<br \/>\n      },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/code><\/p>\n<p>OpenClaw \u8fd8\u4f1a\u4e3a Moonshot \u6620\u5c04\u8fd0\u884c\u65f6 <code>\/think<\/code> \u7ea7\u522b\uff1a<\/p>\n<ul>\n<li><code>\/think off<\/code> -&gt; <code>thinking.type=disabled<\/code><\/li>\n<li>\u4efb\u4f55\u975e off \u7684 thinking \u7ea7\u522b -&gt; <code>thinking.type=enabled<\/code><\/li>\n<\/ul>\n<p>\u5f53\u542f\u7528 Moonshot thinking \u65f6\uff0c<code>tool_choice<\/code> \u5fc5\u987b\u4e3a <code>auto<\/code> \u6216 <code>none<\/code>\u3002\u4e3a\u4fdd\u6301\u517c\u5bb9\u6027\uff0cOpenClaw \u4f1a\u5c06\u4e0d\u517c\u5bb9\u7684 <code>tool_choice<\/code> \u503c\u6807\u51c6\u5316\u4e3a <code>auto<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moonshot AI Moonshot AI\uff08Kimi\uff09 Moonshot \u63d0\u4f9b\u5e26\u6709 OpenAI \u517c\u5bb9\u7aef\u70b9 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-225","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/225\/revisions\/520"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}