{"id":66,"date":"2026-03-21T22:47:15","date_gmt":"2026-03-21T14:47:15","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-models\/"},"modified":"2026-03-21T23:08:52","modified_gmt":"2026-03-21T15:08:52","slug":"cli-models","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/cli-models\/","title":{"rendered":"models"},"content":{"rendered":"<h1>models<\/h1>\n<h1><code>openclaw models<\/code><\/h1>\n<p>\u6a21\u578b\u53d1\u73b0\u3001\u626b\u63cf\u548c\u914d\u7f6e\uff08\u9ed8\u8ba4\u6a21\u578b\u3001\u56de\u9000\u3001\u8ba4\u8bc1\u914d\u7f6e\uff09\u3002<\/p>\n<p>\u76f8\u5173\u5185\u5bb9\uff1a<\/p>\n<ul>\n<li>\u63d0\u4f9b\u5546 + \u6a21\u578b\uff1a<a href=\"\/providers\/models\">\u6a21\u578b<\/a><\/li>\n<li>\u63d0\u4f9b\u5546\u8ba4\u8bc1\u8bbe\u7f6e\uff1a<a href=\"\/start\/getting-started\">\u5feb\u901f\u5f00\u59cb<\/a><\/li>\n<\/ul>\n<h2>\u5e38\u7528\u547d\u4ee4<\/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 models status<br \/>\nopenclaw models list<br \/>\nopenclaw models set<br \/>\nopenclaw models scan<\/p>\n<pre><code>\n`openclaw models status` \u663e\u793a\u5df2\u89e3\u6790\u7684\u9ed8\u8ba4\u6a21\u578b\/\u56de\u9000\u914d\u7f6e\u4ee5\u53ca\u8ba4\u8bc1\u6982\u89c8\u3002\n\u5f53\u63d0\u4f9b\u5546\u4f7f\u7528\u5feb\u7167\u53ef\u7528\u65f6\uff0cOAuth\/\u4ee4\u724c\u72b6\u6001\u90e8\u5206\u4f1a\u5305\u542b\u63d0\u4f9b\u5546\u4f7f\u7528\u5934\u4fe1\u606f\u3002\n\u6dfb\u52a0 `--probe` \u53ef\u5bf9\u6bcf\u4e2a\u5df2\u914d\u7f6e\u7684\u63d0\u4f9b\u5546\u914d\u7f6e\u8fd0\u884c\u5b9e\u65f6\u8ba4\u8bc1\u63a2\u6d4b\u3002\n\u63a2\u6d4b\u4f1a\u53d1\u9001\u771f\u5b9e\u8bf7\u6c42\uff08\u53ef\u80fd\u6d88\u8017\u4ee4\u724c\u5e76\u89e6\u53d1\u901f\u7387\u9650\u5236\uff09\u3002\n\u4f7f\u7528 `--agent &lt;id&gt;` \u53ef\u68c0\u67e5\u5df2\u914d\u7f6e\u667a\u80fd\u4f53\u7684\u6a21\u578b\/\u8ba4\u8bc1\u72b6\u6001\u3002\u7701\u7565\u65f6\uff0c\n\u547d\u4ee4\u4f1a\u4f7f\u7528 `OPENCLAW_AGENT_DIR`\/`PI_CODING_AGENT_DIR`\uff08\u5982\u5df2\u8bbe\u7f6e\uff09\uff0c\u5426\u5219\u4f7f\u7528\n\u5df2\u914d\u7f6e\u7684\u9ed8\u8ba4\u667a\u80fd\u4f53\u3002\n\n\u6ce8\u610f\u4e8b\u9879\uff1a\n\n* `models set &lt;model-or-alias&gt;` \u63a5\u53d7 `provider\/model` \u6216\u522b\u540d\u3002\n* \u6a21\u578b\u5f15\u7528\u901a\u8fc7\u5728**\u7b2c\u4e00\u4e2a** `\/` \u5904\u62c6\u5206\u6765\u89e3\u6790\u3002\u5982\u679c\u6a21\u578b ID \u5305\u542b `\/`\uff08OpenRouter \u98ce\u683c\uff09\uff0c\u9700\u5305\u542b\u63d0\u4f9b\u5546\u524d\u7f00\uff08\u793a\u4f8b\uff1a`openrouter\/moonshotai\/kimi-k2`\uff09\u3002\n* \u5982\u679c\u7701\u7565\u63d0\u4f9b\u5546\uff0cOpenClaw \u4f1a\u5c06\u8f93\u5165\u89c6\u4e3a\u522b\u540d\u6216**\u9ed8\u8ba4\u63d0\u4f9b\u5546**\u7684\u6a21\u578b\uff08\u4ec5\u5728\u6a21\u578b ID \u4e0d\u5305\u542b `\/` \u65f6\u6709\u6548\uff09\u3002\n\n### `models status`\n\n\u9009\u9879\uff1a\n\n* `--json`\n* `--plain`\n* `--check`\uff08\u9000\u51fa\u7801 1=\u5df2\u8fc7\u671f\/\u7f3a\u5931\uff0c2=\u5373\u5c06\u8fc7\u671f\uff09\n* `--probe`\uff08\u5bf9\u5df2\u914d\u7f6e\u7684\u8ba4\u8bc1\u914d\u7f6e\u8fdb\u884c\u5b9e\u65f6\u63a2\u6d4b\uff09\n* `--probe-provider &lt;name&gt;`\uff08\u63a2\u6d4b\u5355\u4e2a\u63d0\u4f9b\u5546\uff09\n* `--probe-profile &lt;id&gt;`\uff08\u53ef\u91cd\u590d\u6216\u9017\u53f7\u5206\u9694\u7684\u914d\u7f6e ID\uff09\n* `--probe-timeout &lt;ms&gt;`\n* `--probe-concurrency &lt;n&gt;`\n* `--probe-max-tokens &lt;n&gt;`\n* `--agent &lt;id&gt;`\uff08\u5df2\u914d\u7f6e\u7684\u667a\u80fd\u4f53 ID\uff1b\u8986\u76d6 `OPENCLAW_AGENT_DIR`\/`PI_CODING_AGENT_DIR`\uff09\n\n## \u522b\u540d + \u56de\u9000\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\nopenclaw models aliases list\nopenclaw models fallbacks list\n<\/code><\/pre>\n<h2>\u8ba4\u8bc1\u914d\u7f6e<\/h2>\n<p><code>bash  theme={\"theme\":{\"light\":\"min-light\",\"dark\":\"min-dark\"}}<br \/>\nopenclaw models auth add<br \/>\nopenclaw models auth login --provider &lt;id&gt;<br \/>\nopenclaw models auth setup-token<br \/>\nopenclaw models auth paste-token<\/code><\/p>\n<p><code>models auth login<\/code> \u8fd0\u884c\u63d0\u4f9b\u5546\u63d2\u4ef6\u7684\u8ba4\u8bc1\u6d41\u7a0b\uff08OAuth\/API \u5bc6\u94a5\uff09\u3002\u4f7f\u7528<br \/>\n<code>openclaw plugins list<\/code> \u67e5\u770b\u5df2\u5b89\u88c5\u7684\u63d0\u4f9b\u5546\u3002<\/p>\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<ul>\n<li><code>setup-token<\/code> \u4f1a\u63d0\u793a\u8f93\u5165 setup-token \u503c\uff08\u5728\u4efb\u610f\u673a\u5668\u4e0a\u4f7f\u7528 <code>claude setup-token<\/code> \u751f\u6210\uff09\u3002<\/li>\n<li><code>paste-token<\/code> \u63a5\u53d7\u5728\u5176\u4ed6\u5730\u65b9\u6216\u901a\u8fc7\u81ea\u52a8\u5316\u751f\u6210\u7684\u4ee4\u724c\u5b57\u7b26\u4e32\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>models openclaw models \u6a21\u578b\u53d1\u73b0\u3001\u626b\u63cf\u548c\u914d\u7f6e\uff08\u9ed8\u8ba4\u6a21\u578b\u3001\u56de\u9000\u3001\u8ba4\u8bc1\u914d\u7f6e\uff09\u3002 \u76f8\u5173\u5185\u5bb9\uff1a  [&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-66","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/66","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=66"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions"}],"predecessor-version":[{"id":361,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/66\/revisions\/361"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=66"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=66"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=66"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}