{"id":220,"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-kilocode\/"},"modified":"2026-03-21T23:08:57","modified_gmt":"2026-03-21T15:08:57","slug":"providers-kilocode","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/providers-kilocode\/","title":{"rendered":"Kilocode"},"content":{"rendered":"<h1>Kilocode<\/h1>\n<h1>Kilo Gateway<\/h1>\n<p>Kilo Gateway \u63d0\u4f9b\u4e00\u4e2a<strong>\u7edf\u4e00 API<\/strong>\uff0c\u53ef\u901a\u8fc7\u5355\u4e00<br \/>\n\u7aef\u70b9\u548c API \u5bc6\u94a5\u5c06\u8bf7\u6c42\u8def\u7531\u5230\u591a\u79cd\u6a21\u578b\u3002\u5b83\u517c\u5bb9 OpenAI\uff0c\u56e0\u6b64\u5927\u591a\u6570 OpenAI SDK \u53ea\u9700\u5207\u6362\u57fa\u7840 URL \u5373\u53ef\u4f7f\u7528\u3002<\/p>\n<h2>\u83b7\u53d6 API \u5bc6\u94a5<\/h2>\n<ol>\n<li>\u524d\u5f80 <a href=\"https:\/\/app.kilo.ai\">app.kilo.ai<\/a><\/li>\n<li>\u767b\u5f55\u6216\u521b\u5efa\u8d26\u6237<\/li>\n<li>\u8fdb\u5165 API Keys \u5e76\u751f\u6210\u4e00\u4e2a\u65b0\u5bc6\u94a5<\/li>\n<\/ol>\n<h2>CLI \u8bbe\u7f6e<\/h2>\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;kilocode-api-key <\/p>\n<pre><code>\n\u6216\u8005\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nexport KILOCODE_API_KEY=&quot;&lt;your-kilocode-api-key&gt;&quot; # pragma: allowlist secret\n<\/code><\/pre>\n<h2>\u914d\u7f6e\u7247\u6bb5<\/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: { KILOCODE_API_KEY: &#8220;&#8221; }, \/\/ pragma: allowlist secret<br \/>\n  agents: {<br \/>\n    defaults: {<br \/>\n      model: { primary: &#8220;kilocode\/kilo\/auto&#8221; },<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n## \u9ed8\u8ba4\u6a21\u578b\n\n\u9ed8\u8ba4\u6a21\u578b\u662f `kilocode\/kilo\/auto`\uff0c\u8fd9\u662f\u4e00\u4e2a\u667a\u80fd\u8def\u7531\u6a21\u578b\uff0c\u4f1a\u6839\u636e\u4efb\u52a1\u81ea\u52a8\u9009\u62e9\n\u6700\u4f73\u7684\u5e95\u5c42\u6a21\u578b\uff1a\n\n* \u89c4\u5212\u3001\u8c03\u8bd5\u548c\u7f16\u6392\u4efb\u52a1\u4f1a\u8def\u7531\u5230 Claude Opus\n* \u4ee3\u7801\u7f16\u5199\u548c\u63a2\u7d22\u4efb\u52a1\u4f1a\u8def\u7531\u5230 Claude Sonnet\n\n## \u53ef\u7528\u6a21\u578b\n\nOpenClaw \u4f1a\u5728\u542f\u52a8\u65f6\u4ece Kilo Gateway \u52a8\u6001\u53d1\u73b0\u53ef\u7528\u6a21\u578b\u3002\u4f7f\u7528\n`\/models kilocode` \u67e5\u770b\u4f60\u7684\u8d26\u6237\u53ef\u7528\u7684\u5b8c\u6574\u6a21\u578b\u5217\u8868\u3002\n\nGateway \u7f51\u5173\u4e0a\u4efb\u4f55\u53ef\u7528\u7684\u6a21\u578b\u90fd\u53ef\u4ee5\u4f7f\u7528 `kilocode\/` \u524d\u7f00\uff1a\n\n<\/code><\/pre>\n<p>kilocode\/kilo\/auto              (default &#8211; smart routing)<br \/>\nkilocode\/anthropic\/claude-sonnet-4<br \/>\nkilocode\/openai\/gpt-5.2<br \/>\nkilocode\/google\/gemini-3-pro-preview<br \/>\n&#8230;and many more<br \/>\n&#8220;`<\/p>\n<h2>\u8bf4\u660e<\/h2>\n<ul>\n<li>\u6a21\u578b\u5f15\u7528\u683c\u5f0f\u4e3a <code>kilocode\/&lt;model-id&gt;<\/code>\uff08\u4f8b\u5982 <code>kilocode\/anthropic\/claude-sonnet-4<\/code>\uff09\u3002<\/li>\n<li>\u9ed8\u8ba4\u6a21\u578b\uff1a<code>kilocode\/kilo\/auto<\/code><\/li>\n<li>\u57fa\u7840 URL\uff1a<code>https:\/\/api.kilo.ai\/api\/gateway\/<\/code><\/li>\n<li>\u66f4\u591a\u6a21\u578b\/\u63d0\u4f9b\u5546\u9009\u9879\uff0c\u8bf7\u53c2\u89c1 <a href=\"\/concepts\/model-providers\">\/concepts\/model-providers<\/a>\u3002<\/li>\n<li>Kilo Gateway \u5728\u5e95\u5c42\u4f7f\u7528\u5e26\u6709\u4f60\u7684 API \u5bc6\u94a5\u7684 Bearer token\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Kilocode Kilo Gateway Kilo Gateway \u63d0\u4f9b\u4e00\u4e2a\u7edf\u4e00 API\uff0c\u53ef\u901a\u8fc7\u5355\u4e00 \u7aef\u70b9\u548c [&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-220","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/220","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=220"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":515,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/220\/revisions\/515"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}