{"id":19726,"date":"2026-03-10T12:36:24","date_gmt":"2026-03-10T04:36:24","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=19726"},"modified":"2026-03-27T16:27:35","modified_gmt":"2026-03-27T08:27:35","slug":"openclaw-2","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2026\/03\/10\/openclaw-2\/","title":{"rendered":"openclaw\u4f7f\u7528"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"537\" height=\"303\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-3.png\" alt=\"\" class=\"wp-image-19727\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-3.png 537w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-3-300x169.png 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6ce8\uff1aopenclaw\u8981\u7528\u666e\u901a\u7528\u6237\u5b89\u88c5\uff0c\u4e0d\u8981\u4f7f\u7528root<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u3001\u5982\u4f55\u914d\u7f6e\u6a21\u578b\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">openclaw\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u5728${home}\/.openclaw\u76ee\u5f55\u751f\u6210openclaw.json\u6587\u4ef6\uff0c\u914d\u7f6e\u4fe1\u606f\u90fd\u5728\u8fd9\u91cc\uff0c\u4fee\u6539\u8fd9\u4e2a\u6587\u4ef6\u5373\u53ef\uff0c\u672c\u4f8b\u5b50\u4e2d\u4ee5\u914d\u7f6e<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">\u667a\u666e\u6a21\u578b\u4e3a\u4f8b\u5b50\u8fdb\u884c\u6f14\u793a<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u767b\u5f55CpenClaw Control\u754c\u9762\u540e\uff0c\u70b9\u51fb\u914d\u7f6e&#8211;Raw\uff0cRaw\u5c5e\u4e8e\u539f\u59cb\u6587\u4ef6\u7684\u7f16\u8f91\u5f62\u5f0f\uff0c\u6bd4Form\u64cd\u4f5c\u8d77\u6765\u66f4\u76f4\u89c2\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"335\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/1-2.png\" alt=\"\" class=\"wp-image-19730\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/1-2.png 653w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/1-2-300x154.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/1-2-600x308.png 600w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u9009\u62e9Models\uff0c\u53ef\u4ee5\u770b\u5230\u7684models\u914d\u7f6e\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"653\" height=\"380\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/3-3.png\" alt=\"\" class=\"wp-image-19737\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/3-3.png 653w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/3-3-300x175.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/3-3-600x349.png 600w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>providers\uff1a\u6a21\u578b\u63d0\u4f9b\u8005\uff0c\u8fd9\u662fjson\u6587\u4ef6\u4e2d\u5df2\u7ecf\u5b58\u5728\u7684<\/li>\n\n\n\n<li>zhipu\uff1a \u8fd9\u91cc\u662f\u81ea\u5df1\u81ea\u5b9a\u4e49\u7684\u540d\u5b57\uff0c\u8fd9\u91cc\u5199zhipu\uff0c\u5199\u5176\u4ed6\u7684\u4e5f\u884c<\/li>\n\n\n\n<li>baseUrl\uff1a\u667a\u666e\u7684\u6a21\u578bAPI\u7684URL\uff0c\u8fd9\u4e2a\u8981\u5728\u667a\u666e\u7684\u5f00\u53d1\u6587\u6863\u5b98\u7f51\u4e2d\u67e5\u770b<\/li>\n\n\n\n<li>apiKey\uff1a\u5728\u667a\u666e\u5b98\u7f51\u83b7\u53d6\u7684apiKey<\/li>\n\n\n\n<li>&#8220;api&#8221;: &#8220;openai-completions&#8221;\uff1a<strong>\u6307\u5b9a\u4e86\u8c03\u7528\u6a21\u578b\u65f6\u4f7f\u7528\u7684 API \u534f\u8bae\uff08\u63a5\u53e3\u683c\u5f0f<\/strong>),OpenClaw \u4f1a\u5c06\u4f60\u7684\u8bf7\u6c42\u8f6c\u6362\u4e3a <strong>OpenAI \u517c\u5bb9\u7684 API \u683c\u5f0f<\/strong>\uff0c\u667a\u8c31AI\u3001DeepSeek \u7b49\u56fd\u5185\u4e3b\u6d41\u6a21\u578b\u7684 API \u63a5\u53e3\u90fd<strong>\u517c\u5bb9 OpenAI \u683c\u5f0f<\/strong>\uff0c\u56e0\u6b64\u53ef\u4ee5\u8bbe\u7f6e\u8fd9\u4e2a\u503c<\/li>\n\n\n\n<li>models\u5b57\u6bb5\u662f\u4e00\u4e2a\u6570\u7ec4\uff08Array\uff09\uff0c\u4e13\u95e8\u7528\u6765\u5b58\u653e\u540c\u4e00\u4e2a\u670d\u52a1\u5546\uff08Provider\uff09\u63d0\u4f9b\u7684\u6240\u6709\u53ef\u7528\u6a21\u578b<\/li>\n\n\n\n<li>id\uff1a\u6307\u5b9a\u5177\u4f53\u7684\u6a21\u578b\u578b\u53f7\uff0c\u8fd9\u4e2a\u8981\u6309\u7167\u5382\u5546\u5b9e\u9645\u7684\u6a21\u578b\u540d\u5199\uff0c\u4e0d\u53ef\u81ea\u5b9a\u4e49\u4e71\u5199<\/li>\n\n\n\n<li>name : \u8fd9\u4e2a\u540d\u5b57\u53ef\u81ea\u5b9a\u4e49\uff0c\u8fd9\u91cc\u8ddfid\u4fdd\u6301\u4e00\u81f4\uff0c\u5199glm-5<\/li>\n\n\n\n<li>reasoning\uff1a\u4e3afalse\u8868\u793a\u4e0d\u663e\u793a\u63a8\u7406\u8fc7\u7a0b\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u6548\u7387\uff0c\u4e0d\u4f1a\u5361<\/li>\n\n\n\n<li>input\uff1a\u6a21\u578b\u8f93\u5165\u7c7b\u578b\uff0ctext\u8868\u793a\u6587\u672c\uff0c\u5982\u679c\u8fd8\u6709\u5176\u4ed6\uff0c\u53ef\u4ee5\u5199[&#8220;text&#8221;,&#8221;image&#8221;,&#8221;audio&#8221;]\u7b49\uff0c\u6839\u636e\u5b9e\u9645\u914d\u7f6e<\/li>\n\n\n\n<li>cost\uff1a\u6a21\u578b\u8ba1\u8d39\uff0c\u8fd9\u91cc\u4e0d\u8bf4<\/li>\n\n\n\n<li>contextWindow\uff1a\u8fd9\u4e2a\u6a21\u578b\u4e00\u6b21\u6027\u6700\u591a\u80fd\u5904\u7406\u591a\u5c11 tokens\uff0c16000\u8868\u793a\u6700\u5927\u652f\u6301 16K \u4e0a\u4e0b\u6587<\/li>\n\n\n\n<li>maxTokens\uff1a\u6a21\u578b\u6bcf\u6b21\u751f\u6210\u56de\u590d\u65f6\uff0c\u6700\u591a\u80fd\u751f\u6210\u591a\u5c11 tokens\uff0c4096\u8868\u793a\u5355\u6b21\u56de\u590d\u6700\u591a 4K tokens<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">models\u4e2d\u53ef\u4ee5\u914d\u7f6e\u591a\u4e2aid\uff0c\u4e0d\u540c\u7684id \u6307\u5411\u4e0d\u540c\u7684\u6a21\u578b\u540d\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"651\" height=\"287\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/4-2.png\" alt=\"\" class=\"wp-image-19740\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/4-2.png 651w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/4-2-300x132.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/4-2-600x265.png 600w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u914d\u7f6eagents<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">providers\u7684\u610f\u601d\u662f\u5927\u6a21\u578b\u662f\u8c01\u63d0\u4f9b\u7684\uff0c\u53ea\u8d1f\u8d23\u63d0\u4f9b\u6a21\u578b\uff0c\u5177\u4f53\u7684\u6a21\u578b\u4f7f\u7528\u662f\u9700\u8981\u5728agents\u4e2d\u914d\u7f6e\uff0c\u4e5f\u5c31\u662f\u8bf4\u5728agents\u4e2d\u914d\u7f6e\u5177\u4f53\u4f7f\u7528\u54ea\u4e2a\u6a21\u578b\uff0cagents\u4e2dmodel\u4e2d\u914d\u7f6e\u4e5f\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\uff1a\u76f4\u63a5\u5728model\u4e2d\u914d\u7f6e\uff0c\u6b64\u65f6models\u6a21\u5757\u6ca1\u4ec0\u4e48\u4f5c\u7528\uff0c\u53ef\u5ffd\u7565\uff0c\u4e5f\u53ef\u4ee5\u5220\u9664\u6b64\u6a21\u5757\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"119\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/5-3.png\" alt=\"\" class=\"wp-image-19745\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/5-3.png 650w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/5-3-300x55.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/5-3-600x110.png 600w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>primary\uff1a\u4e3b\u6a21\u578b\uff0c\u540e\u9762\u8981\u5199\u4e0a\u9762\u914d\u7f6e\u7684providers\u7684\u540d\u5b57\u548cid\u7684\u503c\uff0c\u56e0\u6b64\u4e3azhipu\/glm-5,\u4e0d\u662f\u4e71\u5199\u7684<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\uff1a\u901a\u8fc7models\u6765\u8bbe\u7f6e\u4e0a\u9762\u7684\u5927\u6a21\u578b\u4e3a\u522b\u540d\uff0c\u7136\u540e\u5728primary\u4e2d\u5f15\u7528\u6b64\u522b\u540d\uff0c\u5373\u53ef\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"215\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/6-3.png\" alt=\"\" class=\"wp-image-19747\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/6-3.png 650w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/6-3-300x99.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/6-3-600x198.png 600w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>models\uff1a\u5c31\u662f\u7ed9\u5f88\u957f\u7684\u5927\u6a21\u578b\u540d\u5b57\u6765\u8bbe\u7f6e\u522b\u540d\u7684\u6a21\u5757<\/li>\n\n\n\n<li>alias\uff1a\u8bbe\u7f6e\u522b\u540d\uff0c\u7136\u540e\u4e0a\u9762\u7684primary\u6765\u914d\u7f6e\u5c31\u884c\u4e86<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728openclaw\u804a\u5929\u754c\u9762\u91cc\uff0c\u53d1\u9001\u5bf9\u8bdd\u5373\u53ef\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"248\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-4.png\" alt=\"\" class=\"wp-image-19749\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-4.png 654w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-4-300x114.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2026\/03\/7-4-600x228.png 600w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\uff1aopenclaw\u8981\u7528\u666e\u901a\u7528\u6237\u5b89\u88c5\uff0c\u4e0d\u8981\u4f7f\u7528root \u4e00\u3001\u5982\u4f55\u914d\u7f6e\u6a21\u578b\uff1f openclaw\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f1a\u5728$ [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-19726","post","type-post","status-publish","format-standard","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/19726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=19726"}],"version-history":[{"count":16,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/19726\/revisions"}],"predecessor-version":[{"id":19884,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/19726\/revisions\/19884"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=19726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=19726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=19726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}