{"id":72229,"date":"2026-02-05T07:41:44","date_gmt":"2026-02-04T23:41:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/72229.html"},"modified":"2026-02-05T07:41:44","modified_gmt":"2026-02-04T23:41:44","slug":"clawdbot%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97%ef%bc%9a%e5%a6%82%e4%bd%95%e5%9c%a8%e6%97%a0gui%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%80%9a%e8%bf%87curl%e6%b5%8b%e8%af%95clawdbot-api","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/72229.html","title":{"rendered":"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API"},"content":{"rendered":"<h2>ClawdBot\u5165\u95e8\u6307\u5357&#xff1a;\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API<\/h2>\n<p>\u4f60\u53ef\u80fd\u5df2\u7ecf\u542c\u8bf4\u8fc7ClawdBot\u2014\u2014\u4e00\u4e2a\u8f7b\u91cf\u3001\u79c1\u6709\u3001\u53ef\u5b8c\u5168\u79bb\u7ebf\u8fd0\u884c\u7684\u4e2a\u4ebaAI\u52a9\u624b\u3002\u5b83\u4e0d\u50cf\u90a3\u4e9b\u9700\u8981\u6ce8\u518c\u8d26\u53f7\u3001\u7ed1\u5b9a\u90ae\u7bb1\u3001\u7b49\u5f85\u5ba1\u6838\u7684\u4e91\u670d\u52a1&#xff0c;\u800c\u662f\u4e00\u4e2a\u771f\u6b63\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u7ec8\u7aef\u7ea7AI\u4f19\u4f34\u3002\u5b83\u4e0d\u4f9d\u8d56\u5916\u90e8API\u5bc6\u94a5&#xff0c;\u4e0d\u4e0a\u4f20\u4f60\u7684\u5bf9\u8bdd&#xff0c;\u6240\u6709\u63a8\u7406\u90fd\u5728\u672c\u5730\u5b8c\u6210\u3002\u66f4\u5173\u952e\u7684\u662f&#xff0c;\u5b83\u4e0d\u662f\u201c\u73a9\u5177\u6a21\u578b\u201d&#xff0c;\u800c\u662f\u57fa\u4e8evLLM\u9ad8\u6027\u80fd\u63a8\u7406\u5f15\u64ce\u6df1\u5ea6\u96c6\u6210\u7684\u751f\u4ea7\u5c31\u7eea\u578b\u7f51\u5173&#xff0c;\u652f\u6301Qwen3-4B-Instruct\u7b49\u4e3b\u6d41\u5f00\u6e90\u6a21\u578b&#xff0c;\u54cd\u5e94\u5feb\u3001\u4e0a\u4e0b\u6587\u957f\u3001\u5e76\u53d1\u7a33\u3002<\/p>\n<p>\u4f46\u5bf9\u5f88\u591a\u90e8\u7f72\u5728\u8fdc\u7a0bVPS\u3001\u6811\u8393\u6d3e\u6216\u4f01\u4e1a\u5185\u7f51\u670d\u52a1\u5668\u4e0a\u7684\u7528\u6237\u6765\u8bf4&#xff0c;\u4e00\u4e2a\u73b0\u5b9e\u95ee\u9898\u6446\u5728\u9762\u524d&#xff1a;\u6ca1\u6709\u56fe\u5f62\u754c\u9762&#xff0c;\u65e0\u6cd5\u70b9\u5f00\u7f51\u9875\u63a7\u5236\u53f0&#xff0c;\u600e\u4e48\u786e\u8ba4ClawdBot\u662f\u5426\u771f\u7684\u8dd1\u8d77\u6765\u4e86&#xff1f;\u53c8\u5982\u4f55\u5feb\u901f\u9a8c\u8bc1\u5b83\u7684\u6838\u5fc3\u80fd\u529b\u2014\u2014\u6587\u672c\u751f\u6210API\u662f\u5426\u53ef\u7528&#xff1f;\u672c\u6587\u4e0d\u8bb2\u5b89\u88c5\u3001\u4e0d\u8c08\u914d\u7f6e\u3001\u4e0d\u804aTelegram\u9891\u9053&#xff0c;\u53ea\u805a\u7126\u4e00\u4ef6\u4e8b&#xff1a;\u5728\u7eaf\u547d\u4ee4\u884c\u73af\u5883\u4e0b&#xff0c;\u7528\u6700\u57fa\u7840\u7684curl&#xff0c;\u4e09\u6b65\u5b8c\u6210ClawdBot API\u7684\u7aef\u5230\u7aef\u8fde\u901a\u6027\u4e0e\u529f\u80fd\u6d4b\u8bd5\u3002\u65e0\u8bba\u4f60\u662f\u521a\u6572\u5b8cdocker run\u7684\u65b0\u624b&#xff0c;\u8fd8\u662f\u6b63\u5728\u6392\u67e5\u670d\u52a1\u5f02\u5e38\u7684\u8fd0\u7ef4\u540c\u5b66&#xff0c;\u8fd9\u7bc7\u6307\u5357\u90fd\u80fd\u8ba9\u4f60\u57282\u5206\u949f\u5185\u62ff\u5230\u660e\u786e\u7ed3\u8bba\u3002<\/p>\n<h3>1. \u7406\u89e3ClawdBot\u7684API\u901a\u4fe1\u673a\u5236<\/h3>\n<p>ClawdBot\u5bf9\u5916\u63d0\u4f9b\u4e24\u79cd\u4e3b\u8981\u4ea4\u4e92\u901a\u9053&#xff1a;\u4e00\u4e2a\u662fWeb UI&#xff08;Gradio\u6784\u5efa&#xff0c;\u76d1\u542c7860\u7aef\u53e3&#xff09;&#xff0c;\u53e6\u4e00\u4e2a\u662f\u9762\u5411\u7a0b\u5e8f\u8c03\u7528\u7684RESTful API\u7f51\u5173&#xff08;\u9ed8\u8ba4\u76d1\u542c18780\u7aef\u53e3&#xff09;\u3002\u672c\u6307\u5357\u805a\u7126\u540e\u8005\u2014\u2014\u56e0\u4e3a\u5b83\u662f\u81ea\u52a8\u5316\u3001\u811a\u672c\u5316\u3001\u96c6\u6210\u5316\u7684\u57fa\u7840&#xff0c;\u4e5f\u662f\u6240\u6709\u5ba2\u6237\u7aef&#xff08;\u5305\u62ecTelegram Bot\u3001CLI\u5de5\u5177\u3001\u81ea\u5b9a\u4e49\u524d\u7aef&#xff09;\u5b9e\u9645\u8c03\u7528\u7684\u5e95\u5c42\u63a5\u53e3\u3002<\/p>\n<h4>1.1 API\u7f51\u5173\u7684\u6838\u5fc3\u7279\u70b9<\/h4>\n<ul>\n<li>\u534f\u8bae&#xff1a;\u57fa\u4e8eHTTP\/HTTPS&#xff0c;\u517c\u5bb9\u6807\u51c6REST\u8bed\u4e49<\/li>\n<li>\u8ba4\u8bc1&#xff1a;\u9ed8\u8ba4\u542f\u7528Token\u9274\u6743&#xff0c;Token\u5728\u9996\u6b21\u542f\u52a8\u65f6\u81ea\u52a8\u751f\u6210\u5e76\u5199\u5165\u914d\u7f6e\u6587\u4ef6<\/li>\n<li>\u7aef\u70b9&#xff1a;\u6838\u5fc3\u63a8\u7406\u63a5\u53e3\u4e3aPOST \/v1\/chat\/completions&#xff0c;\u5b8c\u5168\u9075\u5faaOpenAI API\u89c4\u8303<\/li>\n<li>\u6570\u636e\u683c\u5f0f&#xff1a;\u8bf7\u6c42\u4f53\u4e3aJSON&#xff0c;\u54cd\u5e94\u4f53\u4e5f\u4e3a\u6807\u51c6OpenAI\u683c\u5f0f&#xff0c;\u8fd9\u610f\u5473\u7740\u4f60\u73b0\u6709\u7684OpenAI SDK\u3001Postman\u6a21\u677f\u3001\u751a\u81f3curl\u811a\u672c\u51e0\u4e4e\u65e0\u9700\u4fee\u6539\u5373\u53ef\u590d\u7528<\/li>\n<\/ul>\n<p>\u8fd9\u4e00\u70b9\u81f3\u5173\u91cd\u8981&#xff1a;ClawdBot\u4e0d\u662f\u53e6\u8d77\u7089\u7076\u9020\u8f6e\u5b50&#xff0c;\u800c\u662f\u4ee5OpenAI\u517c\u5bb9\u6a21\u5f0f\u964d\u4f4e\u63a5\u5165\u95e8\u69db\u3002\u4f60\u4e0d\u9700\u8981\u5b66\u4e60\u65b0\u8bed\u6cd5&#xff0c;\u53ea\u9700\u8981\u77e5\u9053\u5b83\u7684\u5730\u5740\u548cToken\u3002<\/p>\n<h4>1.2 \u4e3a\u4ec0\u4e48\u5fc5\u987b\u5148\u83b7\u53d6Token&#xff1f;<\/h4>\n<p>ClawdBot\u51fa\u4e8e\u5b89\u5168\u8003\u8651&#xff0c;\u9ed8\u8ba4\u5173\u95ed\u533f\u540d\u8bbf\u95ee\u3002\u5373\u4f7f\u670d\u52a1\u5df2\u542f\u52a8&#xff0c;\u76f4\u63a5curl http:\/\/localhost:18780\/v1\/chat\/completions\u4f1a\u8fd4\u56de401 Unauthorized\u3002Token\u5e76\u975e\u56fa\u5b9a\u5b57\u7b26\u4e32&#xff0c;\u800c\u662f\u6bcf\u6b21\u5b9e\u4f8b\u542f\u52a8\u65f6\u52a8\u6001\u751f\u6210\u7684\u968f\u673a\u54c8\u5e0c\u503c&#xff0c;\u5b58\u50a8\u5728~\/.clawdbot\/clawdbot.json\u4e2d&#xff0c;\u8def\u5f84\u4e3agateway.auth.token\u5b57\u6bb5\u3002<\/p>\n<p>\u4f60\u6709\u4e24\u4e2a\u9014\u5f84\u83b7\u53d6\u5b83&#xff1a;<\/p>\n<ul>\n<li>\u65b9\u5f0f\u4e00&#xff08;\u63a8\u8350&#xff09;&#xff1a;\u6267\u884cclawdbot dashboard\u547d\u4ee4&#xff0c;\u8f93\u51fa\u4e2d\u4f1a\u660e\u786e\u663e\u793a\u5e26token\u53c2\u6570\u7684\u5b8c\u6574URL&#xff0c;\u4f8b\u5982&#xff1a; http:\/\/localhost:7860\/?token&#061;23588143fd1588692851f6cbe9218ec6b874bb859e775762 \u6b64\u5904token&#061;\u540e\u9762\u7684\u90e8\u5206\u5c31\u662f\u4f60\u8981\u7684API\u5bc6\u94a5\u3002<\/li>\n<li>\u65b9\u5f0f\u4e8c&#xff08;\u5907\u7528&#xff09;&#xff1a;\u624b\u52a8\u67e5\u770b\u914d\u7f6e\u6587\u4ef6&#xff1a;jq -r &#039;.gateway.auth.token&#039; ~\/.clawdbot\/clawdbot.json\n <\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a;Token\u4ec5\u7528\u4e8eAPI\u9274\u6743&#xff0c;\u4e0eWeb UI\u7684token\u662f\u540c\u4e00\u4efd\u3002\u5b83\u4e0d\u7b49\u540c\u4e8evLLM\u7684sk-local&#xff0c;\u540e\u8005\u662f\u6a21\u578b\u540e\u7aef\u5185\u90e8\u4f7f\u7528\u7684\u5bc6\u94a5&#xff0c;\u5bf9\u5916\u4e0d\u53ef\u89c1\u3002<\/p>\n<h3>2. \u51c6\u5907\u5de5\u4f5c&#xff1a;\u786e\u8ba4\u670d\u52a1\u72b6\u6001\u4e0e\u7f51\u7edc\u53ef\u8fbe\u6027<\/h3>\n<p>\u5728\u53d1\u9001\u4efb\u4f55API\u8bf7\u6c42\u524d&#xff0c;\u5fc5\u987b\u786e\u4fddClawdBot\u7f51\u5173\u8fdb\u7a0b\u672c\u8eab\u5904\u4e8e\u5065\u5eb7\u8fd0\u884c\u72b6\u6001&#xff0c;\u5e76\u4e14\u4f60\u80fd\u4ece\u5f53\u524d\u7ec8\u7aef\u8bbf\u95ee\u5230\u5b83\u3002\u8fd9\u4e00\u6b65\u5e38\u88ab\u8df3\u8fc7&#xff0c;\u5374\u662f90%\u201ccurl\u5931\u8d25\u201d\u95ee\u9898\u7684\u6839\u6e90\u3002<\/p>\n<h4>2.1 \u68c0\u67e5ClawdBot\u4e3b\u8fdb\u7a0b\u662f\u5426\u5b58\u6d3b<\/h4>\n<p>ClawdBot\u901a\u5e38\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u6216Docker\u5bb9\u5668\u5f62\u5f0f\u8fd0\u884c\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u786e\u8ba4&#xff1a;<\/p>\n<p># \u5982\u679c\u662fsystemd\u670d\u52a1<br \/>\nsystemctl is-active clawdbot<\/p>\n<p># \u5982\u679c\u662fDocker\u5bb9\u5668&#xff08;\u5047\u8bbe\u5bb9\u5668\u540d\u662fclawdbot&#xff09;<br \/>\ndocker ps -f name&#061;clawdbot &#8211;format &#034;{{.Status}}&#034;<\/p>\n<p># \u6216\u8005\u901a\u7528\u65b9\u6cd5&#xff1a;\u68c0\u67e518780\u7aef\u53e3\u662f\u5426\u6709\u8fdb\u7a0b\u76d1\u542c<br \/>\nlsof -i :18780 | grep LISTEN<br \/>\n# \u6216<br \/>\nnetstat -tuln | grep :18780<\/p>\n<p>\u9884\u671f\u8f93\u51fa\u5e94\u5305\u542b\u7c7b\u4f3cLISTEN\u7684\u72b6\u6001\u3002\u82e5\u65e0\u8f93\u51fa&#xff0c;\u8bf4\u660eClawdBot\u672a\u542f\u52a8\u6216\u542f\u52a8\u5931\u8d25&#xff0c;\u8bf7\u5148\u67e5\u9605\u65e5\u5fd7&#xff08;journalctl -u clawdbot -n 50 \u6216 docker logs clawdbot&#xff09;\u3002<\/p>\n<h4>2.2 \u9a8c\u8bc1\u7f51\u5173\u7aef\u53e3\u662f\u5426\u53ef\u8bbf\u95ee<\/h4>\n<p>ClawdBot\u7f51\u5173\u9ed8\u8ba4\u7ed1\u5b9a\u5728127.0.0.1:18780&#xff08;\u4ec5\u9650\u672c\u5730\u56de\u73af&#xff09;\u3002\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a&#xff0c;\u4f60\u5927\u6982\u7387\u662f\u5728SSH\u4f1a\u8bdd\u4e2d\u64cd\u4f5c&#xff0c;\u56e0\u6b64localhost\u5373\u6307\u672c\u673a\u3002\u6267\u884c\u6700\u7b80\u63a2\u6d4b&#xff1a;<\/p>\n<p>curl -I http:\/\/localhost:18780\/health<\/p>\n<ul>\n<li>\u6210\u529f\u54cd\u5e94&#xff1a;\u8fd4\u56deHTTP\/1.1 200 OK&#xff0c;\u8868\u793a\u7f51\u5173\u8fdb\u7a0b\u5df2\u5c31\u7eea&#xff0c;\u80fd\u5904\u7406HTTP\u8bf7\u6c42\u3002<\/li>\n<li>\u274c \u5931\u8d25\u54cd\u5e94&#xff1a;\u8fd4\u56deFailed to connect\u6216Connection refused&#xff0c;\u8bf4\u660e\u7f51\u5173\u672a\u76d1\u542c\u8be5\u7aef\u53e3&#xff0c;\u9700\u68c0\u67e5ClawdBot\u914d\u7f6e\u4e2dgateway.bind\u662f\u5426\u88ab\u9519\u8bef\u4fee\u6539\u4e3a0.0.0.0\u4ee5\u5916\u7684\u5730\u5740&#xff0c;\u6216\u786e\u8ba4\u9632\u706b\u5899\u672a\u62e6\u622a\u3002<\/li>\n<\/ul>\n<p>\u5c0f\u6280\u5de7&#xff1a;\/health\u7aef\u70b9\u662fClawdBot\u5185\u7f6e\u7684\u8f7b\u91cf\u7ea7\u5065\u5eb7\u68c0\u67e5\u63a5\u53e3&#xff0c;\u4e0d\u9700Token&#xff0c;\u54cd\u5e94\u6781\u5feb&#xff0c;\u662f\u6392\u969c\u7b2c\u4e00\u54e8\u5175\u3002<\/p>\n<h4>2.3 \u83b7\u53d6\u5e76\u9a8c\u8bc1API Token\u6709\u6548\u6027<\/h4>\n<p>\u73b0\u5728&#xff0c;\u6211\u4eec\u7528\u521a\u521a\u83b7\u5f97\u7684Token&#xff0c;\u5411\u7f51\u5173\u53d1\u8d77\u4e00\u4e2a\u6700\u7b80\u5355\u7684\u9274\u6743\u6d4b\u8bd5&#xff1a;<\/p>\n<p># \u66ff\u6362 YOUR_API_TOKEN \u4e3a\u4f60\u5b9e\u9645\u83b7\u53d6\u7684token<br \/>\ncurl -X GET \\\\<br \/>\n  &#034;http:\/\/localhost:18780\/v1\/models&#034; \\\\<br \/>\n  -H &#034;Authorization: Bearer YOUR_API_TOKEN&#034;<\/p>\n<ul>\n<li>\u6210\u529f\u54cd\u5e94&#xff1a;\u8fd4\u56deJSON\u683c\u5f0f\u7684\u6a21\u578b\u5217\u8868&#xff0c;\u4f8b\u5982&#xff1a;<\/li>\n<\/ul>\n<p>{<br \/>\n  &#034;object&#034;: &#034;list&#034;,<br \/>\n  &#034;data&#034;: [<br \/>\n    {<br \/>\n      &#034;id&#034;: &#034;vllm\/Qwen3-4B-Instruct-2507&#034;,<br \/>\n      &#034;object&#034;: &#034;model&#034;,<br \/>\n      &#034;created&#034;: 1737721234,<br \/>\n      &#034;owned_by&#034;: &#034;vllm&#034;<br \/>\n    }<br \/>\n  ]<br \/>\n}<\/p>\n<p>\u8fd9\u8bc1\u660eToken\u6b63\u786e&#xff0c;\u7f51\u5173\u9274\u6743\u6a21\u5757\u5de5\u4f5c\u6b63\u5e38\u3002<\/p>\n<ul>\n<li>\u274c \u5931\u8d25\u54cd\u5e94&#xff1a;\u8fd4\u56de401 Unauthorized&#xff0c;\u8bf7\u91cd\u65b0\u68c0\u67e5Token\u662f\u5426\u590d\u5236\u5b8c\u6574\u3001\u6709\u65e0\u591a\u4f59\u7a7a\u683c&#xff1b;\u8fd4\u56de403 Forbidden&#xff0c;\u5219\u53ef\u80fd\u662fToken\u8fc7\u671f&#xff08;\u6781\u7f55\u89c1&#xff09;\u6216\u914d\u7f6e\u4e2d\u7981\u7528\u4e86\/v1\/models\u7aef\u70b9\u3002<\/li>\n<\/ul>\n<h3>3. \u6838\u5fc3\u5b9e\u8df5&#xff1a;\u7528curl\u5b8c\u6210\u4e00\u6b21\u5b8c\u6574\u7684\u804a\u5929\u8865\u5168\u8bf7\u6c42<\/h3>\n<p>\u73b0\u5728&#xff0c;\u6211\u4eec\u8fdb\u5165\u6b63\u9898\u2014\u2014\u8c03\u7528\u771f\u6b63\u7684AI\u80fd\u529b\u3002\u6211\u4eec\u5c06\u6a21\u62df\u4e00\u4e2a\u6700\u5178\u578b\u7684\u573a\u666f&#xff1a;\u5411ClawdBot\u63d0\u95ee\u201c\u4f60\u597d&#xff0c;\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837&#xff1f;\u201d&#xff0c;\u5e76\u83b7\u53d6\u5b83\u7684\u56de\u7b54\u3002\u6574\u4e2a\u8fc7\u7a0b\u53ea\u9700\u4e00\u6761curl\u547d\u4ee4&#xff0c;\u4f46\u5176\u4e2d\u6bcf\u4e2a\u53c2\u6570\u90fd\u503c\u5f97\u6df1\u7a76\u3002<\/p>\n<h4>3.1 \u6784\u5efa\u6807\u51c6OpenAI\u517c\u5bb9\u8bf7\u6c42\u4f53<\/h4>\n<p>ClawdBot\u7684\/v1\/chat\/completions\u7aef\u70b9\u4e25\u683c\u9075\u5faaOpenAI\u89c4\u8303\u3002\u4e00\u4e2a\u6700\u5c0f\u53ef\u884c\u8bf7\u6c42\u4f53&#xff08;payload&#xff09;\u5982\u4e0b&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;model&#034;: &#034;vllm\/Qwen3-4B-Instruct-2507&#034;,<br \/>\n  &#034;messages&#034;: [<br \/>\n    {<br \/>\n      &#034;role&#034;: &#034;user&#034;,<br \/>\n      &#034;content&#034;: &#034;\u4f60\u597d&#xff0c;\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837&#xff1f;&#034;<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;stream&#034;: false<br \/>\n}<\/p>\n<ul>\n<li>model&#xff1a;\u5fc5\u987b\u4e0eclawdbot models list\u8f93\u51fa\u4e2d\u7684\u6a21\u578bID\u5b8c\u5168\u4e00\u81f4&#xff08;\u6ce8\u610f\u5927\u5c0f\u5199\u548c\u659c\u6760&#xff09;\u3002<\/li>\n<li>messages&#xff1a;\u6570\u7ec4&#xff0c;\u6bcf\u4e2a\u5143\u7d20\u542brole&#xff08;user\/assistant\/system&#xff09;\u548ccontent&#xff08;\u5b57\u7b26\u4e32&#xff09;\u3002\u8fd9\u662f\u5bf9\u8bdd\u5386\u53f2&#xff0c;\u5355\u8f6e\u95ee\u7b54\u53ea\u9700\u4e00\u4e2auser\u6d88\u606f\u3002<\/li>\n<li>stream&#xff1a;\u8bbe\u4e3afalse\u8868\u793a\u540c\u6b65\u963b\u585e\u5f0f\u54cd\u5e94&#xff0c;\u4e00\u6b21\u6027\u8fd4\u56de\u5168\u90e8\u7ed3\u679c&#xff1b;\u8bbe\u4e3atrue\u5219\u5f00\u542f\u6d41\u5f0f\u54cd\u5e94&#xff08;\u9700\u7279\u6b8a\u5904\u7406&#xff09;&#xff0c;\u65b0\u624b\u5efa\u8bae\u4ecefalse\u5f00\u59cb\u3002<\/li>\n<\/ul>\n<h4>3.2 \u6267\u884ccurl\u547d\u4ee4\u5e76\u89e3\u6790\u54cd\u5e94<\/h4>\n<p>\u5c06\u4e0a\u8ff0JSON\u4fdd\u5b58\u4e3apayload.json&#xff0c;\u6216\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u5185\u8054\u4f20\u9012\u3002\u4ee5\u4e0b\u662f\u5b8c\u6574\u3001\u53ef\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u7684\u547d\u4ee4&#xff1a;<\/p>\n<p>curl -X POST \\\\<br \/>\n  &#034;http:\/\/localhost:18780\/v1\/chat\/completions&#034; \\\\<br \/>\n  -H &#034;Content-Type: application\/json&#034; \\\\<br \/>\n  -H &#034;Authorization: Bearer YOUR_API_TOKEN&#034; \\\\<br \/>\n  -d &#039;{<br \/>\n    &#034;model&#034;: &#034;vllm\/Qwen3-4B-Instruct-2507&#034;,<br \/>\n    &#034;messages&#034;: [<br \/>\n      {<br \/>\n        &#034;role&#034;: &#034;user&#034;,<br \/>\n        &#034;content&#034;: &#034;\u4f60\u597d&#xff0c;\u4eca\u5929\u5929\u6c14\u600e\u4e48\u6837&#xff1f;&#034;<br \/>\n      }<br \/>\n    ],<br \/>\n    &#034;stream&#034;: false<br \/>\n  }&#039;<\/p>\n<ul>\n<li>\u6210\u529f\u54cd\u5e94&#xff08;\u7cbe\u7b80\u7248&#xff09;&#xff1a;<\/li>\n<\/ul>\n<p>{<br \/>\n  &#034;id&#034;: &#034;chatcmpl-&#8230;&#034;,<br \/>\n  &#034;object&#034;: &#034;chat.completion&#034;,<br \/>\n  &#034;created&#034;: 1737721234,<br \/>\n  &#034;model&#034;: &#034;vllm\/Qwen3-4B-Instruct-2507&#034;,<br \/>\n  &#034;choices&#034;: [<br \/>\n    {<br \/>\n      &#034;index&#034;: 0,<br \/>\n      &#034;message&#034;: {<br \/>\n        &#034;role&#034;: &#034;assistant&#034;,<br \/>\n        &#034;content&#034;: &#034;\u6211\u65e0\u6cd5\u5b9e\u65f6\u83b7\u53d6\u5929\u6c14\u4fe1\u606f&#xff0c;\u56e0\u4e3a\u6211\u6ca1\u6709\u8054\u7f51\u8bbf\u95ee\u5929\u6c14API\u7684\u80fd\u529b\u3002\u4e0d\u8fc7&#xff0c;\u4f60\u53ef\u4ee5\u544a\u8bc9\u6211\u4f60\u6240\u5728\u7684\u57ce\u5e02&#xff0c;\u6211\u53ef\u4ee5\u5e2e\u4f60\u67e5\u8be2\u5929\u6c14\u9884\u62a5\u7684\u65b9\u6cd5&#xff01;&#034;<br \/>\n      },<br \/>\n      &#034;finish_reason&#034;: &#034;stop&#034;<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;usage&#034;: {<br \/>\n    &#034;prompt_tokens&#034;: 12,<br \/>\n    &#034;completion_tokens&#034;: 45,<br \/>\n    &#034;total_tokens&#034;: 57<br \/>\n  }<br \/>\n}<\/p>\n<p>\u5173\u952e\u5b57\u6bb5\u89e3\u8bfb&#xff1a;<\/p>\n<ul>\n<li>\n<p>choices[0].message.content&#xff1a;\u8fd9\u5c31\u662fAI\u751f\u6210\u7684\u56de\u7b54\u6587\u672c&#xff0c;\u662f\u4f60\u6700\u5173\u5fc3\u7684\u7ed3\u679c\u3002<\/p>\n<\/li>\n<li>\n<p>usage&#xff1a;\u663e\u793a\u672c\u6b21\u63a8\u7406\u6d88\u8017\u7684token\u6570&#xff0c;\u53ef\u7528\u4e8e\u6210\u672c\u4f30\u7b97\u548c\u6027\u80fd\u76d1\u63a7\u3002<\/p>\n<\/li>\n<li>\n<p>finish_reason&#xff1a;&#034;stop&#034;\u8868\u793a\u81ea\u7136\u7ed3\u675f&#xff1b;&#034;length&#034;\u8868\u793a\u88ab\u6700\u5927\u957f\u5ea6\u622a\u65ad&#xff1b;&#034;content_filter&#034;\u8868\u793a\u5185\u5bb9\u88ab\u5b89\u5168\u7b56\u7565\u62e6\u622a\u3002<\/p>\n<\/li>\n<li>\n<p>\u274c \u5e38\u89c1\u5931\u8d25\u53ca\u5bf9\u7b56&#xff1a;<\/p>\n<ul>\n<li>400 Bad Request&#xff1a;\u68c0\u67e5JSON\u683c\u5f0f\u662f\u5426\u5408\u6cd5&#xff08;\u7528jq . payload.json\u9a8c\u8bc1&#xff09;\u3001model\u540d\u79f0\u662f\u5426\u62fc\u9519\u3001messages\u6570\u7ec4\u662f\u5426\u4e3a\u7a7a\u3002<\/li>\n<li>422 Unprocessable Entity&#xff1a;\u901a\u5e38\u662fmodel\u4e0d\u5b58\u5728&#xff0c;\u518d\u6b21\u8fd0\u884cclawdbot models list\u786e\u8ba4\u3002<\/li>\n<li>500 Internal Server Error&#xff1a;\u540e\u7aefvLLM\u6a21\u578b\u52a0\u8f7d\u5931\u8d25\u6216OOM&#xff0c;\u68c0\u67e5docker logs clawdbot\u4e2d\u662f\u5426\u6709CUDA out of memory\u7b49\u9519\u8bef\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>3.3 \u8fdb\u9636\u6280\u5de7&#xff1a;\u7528curl\u5b9e\u73b0\u6d41\u5f0f\u54cd\u5e94&#xff08;\u53ef\u9009&#xff09;<\/h4>\n<p>\u867d\u7136stream: false\u6700\u7b80\u5355&#xff0c;\u4f46\u771f\u5b9e\u5e94\u7528\u4e2d\u5e38\u9700\u6d41\u5f0f\u54cd\u5e94\u4ee5\u83b7\u5f97\u66f4\u4f4e\u5ef6\u8fdf\u3002ClawdBot\u540c\u6837\u652f\u6301\u3002\u53ea\u9700\u5c06stream\u8bbe\u4e3atrue&#xff0c;\u5e76\u7528-N\u53c2\u6570\u7981\u7528curl\u7684\u7f13\u51b2&#xff1a;<\/p>\n<p>curl -N -X POST \\\\<br \/>\n  &#034;http:\/\/localhost:18780\/v1\/chat\/completions&#034; \\\\<br \/>\n  -H &#034;Content-Type: application\/json&#034; \\\\<br \/>\n  -H &#034;Authorization: Bearer YOUR_API_TOKEN&#034; \\\\<br \/>\n  -d &#039;{<br \/>\n    &#034;model&#034;: &#034;vllm\/Qwen3-4B-Instruct-2507&#034;,<br \/>\n    &#034;messages&#034;: [{&#034;role&#034;:&#034;user&#034;,&#034;content&#034;:&#034;\u8bf7\u7528\u4e00\u53e5\u8bdd\u4ecb\u7ecd\u91cf\u5b50\u8ba1\u7b97&#034;}],<br \/>\n    &#034;stream&#034;: true<br \/>\n  }&#039; | while read line; do<br \/>\n    [ -n &#034;$line&#034; ] &amp;&amp; echo &#034;$line&#034; | jq -r &#039;.choices[0].delta.content \/\/ empty&#039;<br \/>\n  done<\/p>\n<p>\u6b64\u547d\u4ee4\u4f1a\u9010\u5757\u6253\u5370AI\u751f\u6210\u7684\u5b57\u7b26&#xff0c;\u6a21\u62df\u201c\u6253\u5b57\u673a\u201d\u6548\u679c\u3002jq\u7528\u4e8e\u4eceSSE&#xff08;Server-Sent Events&#xff09;\u683c\u5f0f\u4e2d\u63d0\u53d6content\u5b57\u6bb5\u3002<\/p>\n<h3>4. \u6545\u969c\u6392\u67e5&#xff1a;\u5f53curl\u8fd4\u56de\u610f\u5916\u7ed3\u679c\u65f6\u600e\u4e48\u529e<\/h3>\n<p>\u5373\u4f7f\u4e25\u683c\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u64cd\u4f5c&#xff0c;\u4ecd\u53ef\u80fd\u9047\u5230\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u9488\u5bf9\u65e0GUI\u73af\u5883\u6700\u5178\u578b\u76845\u4e2a\u6545\u969c\u573a\u666f\u53ca\u901f\u67e5\u65b9\u6848\u3002<\/p>\n<h4>4.1 \u201cConnection refused\u201d on port 18780<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;ClawdBot\u7f51\u5173\u672a\u542f\u52a8&#xff0c;\u6216\u542f\u52a8\u65f6\u7ed1\u5b9a\u5230\u4e86\u5176\u4ed6\u7aef\u53e3\/\u5730\u5740\u3002<\/li>\n<li>\u901f\u67e5&#xff1a;# \u67e5\u770bClawdBot\u5b9e\u9645\u76d1\u542c\u7684\u7aef\u53e3&#xff08;\u4ece\u65e5\u5fd7\u4e2d\u627e&#xff09;<br \/>\ndocker logs clawdbot 2&gt;&amp;1 | grep -i &#034;binding\\\\|listen\\\\|port&#034;<br \/>\n# \u6216\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684gateway.bind<br \/>\njq &#039;.gateway.bind&#039; ~\/.clawdbot\/clawdbot.json\n <\/li>\n<li>\u89e3\u51b3&#xff1a;\u786e\u4fddgateway.bind\u4e3a&#034;127.0.0.1:18780&#034;&#xff0c;\u91cd\u542f\u670d\u52a1\u3002<\/li>\n<\/ul>\n<h4>4.2 \u201c401 Unauthorized\u201d despite correct token<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;Token\u88ab\u9519\u8bef\u5730\u653e\u5728\u4e86-H &#034;Authorization: Bearer &#8230;&#034;\u4e4b\u5916&#xff0c;\u6216\u914d\u7f6e\u4e2d\u542f\u7528\u4e86\u989d\u5916\u7684\u9274\u6743\u5c42\u3002<\/li>\n<li>\u901f\u67e5&#xff1a;\u786e\u8ba4clawdbot.json\u4e2dgateway.auth.enabled\u4e3atrue&#xff0c;\u4e14gateway.auth.mode\u4e3a&#034;token&#034;&#xff08;\u9ed8\u8ba4\u503c&#xff09;\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\u5220\u9664gateway.auth\u8282\u4e0b\u7684mode\u5b57\u6bb5&#xff0c;\u8ba9\u5176\u56de\u5f52\u9ed8\u8ba4\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<h4>4.3 \u8fd4\u56de\u7a7a\u5185\u5bb9\u6216\u4e71\u7801<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;\u6a21\u578b\u52a0\u8f7d\u5931\u8d25&#xff0c;\u5bfc\u81f4\u7f51\u5173\u8fd4\u56de\u7a7a\u54cd\u5e94&#xff1b;\u6216content\u5b57\u6bb5\u88ab\u5b89\u5168\u8fc7\u6ee4\u5668\u6e05\u7a7a\u3002<\/li>\n<li>\u901f\u67e5&#xff1a;# \u68c0\u67e5vLLM\u540e\u7aef\u65e5\u5fd7&#xff08;\u5982\u679cClawdBot\u548cvLLM\u5728\u540c\u4e00\u5bb9\u5668&#xff09;<br \/>\ndocker logs clawdbot 2&gt;&amp;1 | grep -A 5 -B 5 &#034;vllm\\\\|error\\\\|fail&#034;<br \/>\n# \u6216\u68c0\u67e5\u6a21\u578b\u662f\u5426\u771f\u5728\u8fd0\u884c<br \/>\ncurl -s http:\/\/localhost:8000\/v1\/models | jq\n <\/li>\n<li>\u89e3\u51b3&#xff1a;\u786e\u8ba4vLLM\u670d\u52a1&#xff08;\u901a\u5e38\u57288000\u7aef\u53e3&#xff09;\u5df2\u542f\u52a8\u4e14\u5065\u5eb7&#xff1b;\u68c0\u67e5clawdbot.json\u4e2dmodels.providers.vllm.baseUrl\u662f\u5426\u6307\u5411\u6b63\u786e\u7684vLLM\u5730\u5740\u3002<\/li>\n<\/ul>\n<h4>4.4 \u54cd\u5e94\u6781\u6162&#xff08;&gt;30\u79d2&#xff09;<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;\u6a21\u578b\u9996\u6b21\u52a0\u8f7d\u8017\u65f6\u957f&#xff1b;\u6216vLLM\u914d\u7f6e\u4e0d\u5f53&#xff08;\u5982&#8211;tensor-parallel-size\u8fc7\u5927\u5bfc\u81f4GPU\u663e\u5b58\u4e0d\u8db3&#xff09;\u3002<\/li>\n<li>\u901f\u67e5&#xff1a;\u89c2\u5bdfdocker logs clawdbot\u4e2d\u662f\u5426\u6709Loading model&#8230;\u957f\u65f6\u95f4\u65e0\u8fdb\u5c55&#xff1b;\u68c0\u67e5nvidia-smi\u786e\u8ba4GPU\u663e\u5b58\u662f\u5426\u88ab\u5360\u6ee1\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\u9996\u6b21\u8bf7\u6c42\u8010\u5fc3\u7b49\u5f85&#xff1b;\u8c03\u6574vLLM\u542f\u52a8\u53c2\u6570&#xff0c;\u4f8b\u5982\u5c06&#8211;tensor-parallel-size 1\u3002<\/li>\n<\/ul>\n<h4>4.5 \u201cGateway not reachable\u201d from clawdbot channels status<\/h4>\n<ul>\n<li>\u539f\u56e0&#xff1a;\u6b64\u63d0\u793a\u6765\u81eaClawdBot CLI\u5de5\u5177&#xff0c;\u5b83\u5c1d\u8bd5\u8fde\u63a5\u7f51\u5173\u8fdb\u884c\u5065\u5eb7\u68c0\u67e5&#xff0c;\u4e0eAPI\u8c03\u7528\u672c\u8eab\u65e0\u5173\u3002\u53ea\u8981curl http:\/\/localhost:18780\/health\u6210\u529f&#xff0c;API\u5c31\u662f\u53ef\u7528\u7684\u3002<\/li>\n<li>\u89e3\u51b3&#xff1a;\u5ffd\u7565\u6b64\u8b66\u544a&#xff0c;\u4e13\u6ce8curl\u6d4b\u8bd5\u7ed3\u679c\u3002CLI\u7684status\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u901a\u9053\u8c03\u8bd5&#xff0c;\u975eAPI\u5fc5\u9700\u3002<\/li>\n<\/ul>\n<h3>5. \u603b\u7ed3&#xff1a;\u638c\u63e1API\u6d4b\u8bd5&#xff0c;\u5c31\u662f\u638c\u63a7ClawdBot\u7684\u751f\u547d\u7ebf<\/h3>\n<p>\u81f3\u6b64&#xff0c;\u4f60\u5df2\u7ecf\u5b8c\u6210\u4e86ClawdBot\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u7684\u6838\u5fc3\u80fd\u529b\u9a8c\u8bc1\u95ed\u73af\u3002\u56de\u987e\u4e00\u4e0b&#xff0c;\u6574\u4e2a\u6d41\u7a0b\u5176\u5b9e\u53ea\u6709\u4e09\u4e2a\u539f\u5b50\u52a8\u4f5c&#xff1a;<\/p>\n<li>\u786e\u8ba4\u5b58\u5728&#xff1a;\u7528curl -I http:\/\/localhost:18780\/health\u8bc1\u660e\u7f51\u5173\u8fdb\u7a0b\u6d3b\u7740&#xff1b;<\/li>\n<li>\u786e\u8ba4\u53ef\u4fe1&#xff1a;\u7528curl -H &#034;Authorization: Bearer TOKEN&#034; http:\/\/localhost:18780\/v1\/models\u8bc1\u660e\u9274\u6743\u6709\u6548&#xff1b;<\/li>\n<li>\u786e\u8ba4\u53ef\u7528&#xff1a;\u7528curl -X POST &#8230; \/v1\/chat\/completions\u62ff\u5230\u771f\u5b9e\u7684AI\u56de\u590d\u3002<\/li>\n<p>\u8fd9\u4e09\u6b65&#xff0c;\u6784\u6210\u4e86\u6240\u6709\u540e\u7eed\u5f00\u53d1\u7684\u57fa\u77f3\u3002\u65e0\u8bba\u662f\u4f60\u60f3\u7528Python\u811a\u672c\u6279\u91cf\u5904\u7406\u6587\u6863&#xff0c;\u8fd8\u662f\u7528Node.js\u5199\u4e00\u4e2aTelegram Bot\u540e\u7aef&#xff0c;\u6216\u662f\u96c6\u6210\u5230\u4f60\u7684\u5185\u90e8\u77e5\u8bc6\u5e93\u7cfb\u7edf&#xff0c;\u5b83\u4eec\u90fd\u59cb\u4e8e\u8fd9\u540c\u4e00\u4e2acurl\u547d\u4ee4\u3002\u4f60\u4e0d\u518d\u9700\u8981\u4f9d\u8d56\u56fe\u5f62\u754c\u9762\u53bb\u201c\u770b\u770b\u5b83\u6709\u6ca1\u6709\u53cd\u5e94\u201d&#xff0c;\u800c\u662f\u62e5\u6709\u4e86\u5728\u4efb\u4f55Linux\u7ec8\u7aef\u4e0a&#xff0c;\u7528\u4e00\u884c\u547d\u4ee4\u8bca\u65ad\u3001\u9a8c\u8bc1\u3001\u9a71\u52a8ClawdBot\u7684\u80fd\u529b\u3002<\/p>\n<p>\u4e0b\u4e00\u6b65&#xff0c;\u4f60\u53ef\u4ee5\u5c1d\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u4e0a\u8ff0curl\u547d\u4ee4\u5c01\u88c5\u6210Shell\u51fd\u6570&#xff0c;\u4e00\u952e\u63d0\u95ee&#xff1b;<\/li>\n<li>\u7528jq\u89e3\u6790\u54cd\u5e94&#xff0c;\u63d0\u53d6content\u540e\u81ea\u52a8\u4fdd\u5b58\u5230\u6587\u4ef6&#xff1b;<\/li>\n<li>\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Bash\u5faa\u73af&#xff0c;\u6279\u91cf\u6d4b\u8bd5\u4e0d\u540c\u6a21\u578b\u7684\u54cd\u5e94\u8d28\u91cf&#xff1b;<\/li>\n<li>\u5c06curl\u66ff\u6362\u4e3ahttpx\u6216requests&#xff0c;\u8fc1\u79fb\u5230Python\u751f\u6001\u3002<\/li>\n<\/ul>\n<p>\u8bb0\u4f4f&#xff0c;ClawdBot\u7684\u4ef7\u503c\u4e0d\u5728\u4e8e\u5b83\u6709\u591a\u70ab\u9177\u7684UI&#xff0c;\u800c\u5728\u4e8e\u5b83\u628a\u5f3a\u5927\u7684AI\u80fd\u529b&#xff0c;\u538b\u7f29\u6210\u4e86\u4e00\u4e2a\u7a33\u5b9a\u3001\u53ef\u9760\u3001\u53ef\u7f16\u7a0b\u7684HTTP\u63a5\u53e3\u3002\u800ccurl&#xff0c;\u5c31\u662f\u4f60\u63e1\u4f4f\u8fd9\u4e2a\u63a5\u53e3\u7684\u7b2c\u4e00\u628a\u94a5\u5319\u3002<\/p>\n<hr \/>\n<p>\u83b7\u53d6\u66f4\u591aAI\u955c\u50cf<\/p>\n<p>\u60f3\u63a2\u7d22\u66f4\u591aAI\u955c\u50cf\u548c\u5e94\u7528\u573a\u666f&#xff1f;\u8bbf\u95ee CSDN\u661f\u56fe\u955c\u50cf\u5e7f\u573a&#xff0c;\u63d0\u4f9b\u4e30\u5bcc\u7684\u9884\u7f6e\u955c\u50cf&#xff0c;\u8986\u76d6\u5927\u6a21\u578b\u63a8\u7406\u3001\u56fe\u50cf\u751f\u6210\u3001\u89c6\u9891\u751f\u6210\u3001\u6a21\u578b\u5fae\u8c03\u7b49\u591a\u4e2a\u9886\u57df&#xff0c;\u652f\u6301\u4e00\u952e\u90e8\u7f72\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ClawdBot\u5165\u95e8\u6307\u5357&#xff1a;\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API<br \/>\n\u4f60\u53ef\u80fd\u5df2\u7ecf\u542c\u8bf4\u8fc7ClawdBot\u2014\u2014\u4e00\u4e2a\u8f7b\u91cf\u3001\u79c1\u6709\u3001\u53ef\u5b8c\u5168\u79bb\u7ebf\u8fd0\u884c\u7684\u4e2a\u4ebaAI\u52a9\u624b\u3002\u5b83\u4e0d\u50cf\u90a3\u4e9b\u9700\u8981\u6ce8\u518c\u8d26\u53f7\u3001\u7ed1\u5b9a\u90ae\u7bb1\u3001\u7b49\u5f85\u5ba1\u6838\u7684\u4e91\u670d\u52a1&#xff0c;\u800c\u662f\u4e00\u4e2a\u771f\u6b63\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u7ec8\u7aef\u7ea7AI\u4f19\u4f34\u3002\u5b83\u4e0d\u4f9d\u8d56\u5916\u90e8API\u5bc6\u94a5&#xff0c;\u4e0d\u4e0a\u4f20\u4f60\u7684\u5bf9\u8bdd&#xff0c;\u6240\u6709\u63a8\u7406\u90fd\u5728\u672c\u5730\u5b8c\u6210\u3002\u66f4\u5173\u952e\u7684\u662f&#xff0c;\u5b83\u4e0d\u662f\u201c\u73a9\u5177\u6a21\u578b\u201d&#xff0c;\u800c\u662f\u57fa\u4e8evLLM\u9ad8\u6027\u80fd\u63a8\u7406\u5f15\u64ce\u6df1\u5ea6\u96c6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7558,7088,7467,956],"topic":[],"class_list":["post-72229","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-clawdbot","tag-7467","tag-956"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/72229.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"ClawdBot\u5165\u95e8\u6307\u5357&#xff1a;\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API \u4f60\u53ef\u80fd\u5df2\u7ecf\u542c\u8bf4\u8fc7ClawdBot\u2014\u2014\u4e00\u4e2a\u8f7b\u91cf\u3001\u79c1\u6709\u3001\u53ef\u5b8c\u5168\u79bb\u7ebf\u8fd0\u884c\u7684\u4e2a\u4ebaAI\u52a9\u624b\u3002\u5b83\u4e0d\u50cf\u90a3\u4e9b\u9700\u8981\u6ce8\u518c\u8d26\u53f7\u3001\u7ed1\u5b9a\u90ae\u7bb1\u3001\u7b49\u5f85\u5ba1\u6838\u7684\u4e91\u670d\u52a1&#xff0c;\u800c\u662f\u4e00\u4e2a\u771f\u6b63\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u7ec8\u7aef\u7ea7AI\u4f19\u4f34\u3002\u5b83\u4e0d\u4f9d\u8d56\u5916\u90e8API\u5bc6\u94a5&#xff0c;\u4e0d\u4e0a\u4f20\u4f60\u7684\u5bf9\u8bdd&#xff0c;\u6240\u6709\u63a8\u7406\u90fd\u5728\u672c\u5730\u5b8c\u6210\u3002\u66f4\u5173\u952e\u7684\u662f&#xff0c;\u5b83\u4e0d\u662f\u201c\u73a9\u5177\u6a21\u578b\u201d&#xff0c;\u800c\u662f\u57fa\u4e8evLLM\u9ad8\u6027\u80fd\u63a8\u7406\u5f15\u64ce\u6df1\u5ea6\u96c6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/72229.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-04T23:41:44+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72229.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/72229.html\",\"name\":\"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-04T23:41:44+00:00\",\"dateModified\":\"2026-02-04T23:41:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/72229.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/72229.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72229.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/72229.html","og_locale":"zh_CN","og_type":"article","og_title":"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"ClawdBot\u5165\u95e8\u6307\u5357&#xff1a;\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API \u4f60\u53ef\u80fd\u5df2\u7ecf\u542c\u8bf4\u8fc7ClawdBot\u2014\u2014\u4e00\u4e2a\u8f7b\u91cf\u3001\u79c1\u6709\u3001\u53ef\u5b8c\u5168\u79bb\u7ebf\u8fd0\u884c\u7684\u4e2a\u4ebaAI\u52a9\u624b\u3002\u5b83\u4e0d\u50cf\u90a3\u4e9b\u9700\u8981\u6ce8\u518c\u8d26\u53f7\u3001\u7ed1\u5b9a\u90ae\u7bb1\u3001\u7b49\u5f85\u5ba1\u6838\u7684\u4e91\u670d\u52a1&#xff0c;\u800c\u662f\u4e00\u4e2a\u771f\u6b63\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u7ec8\u7aef\u7ea7AI\u4f19\u4f34\u3002\u5b83\u4e0d\u4f9d\u8d56\u5916\u90e8API\u5bc6\u94a5&#xff0c;\u4e0d\u4e0a\u4f20\u4f60\u7684\u5bf9\u8bdd&#xff0c;\u6240\u6709\u63a8\u7406\u90fd\u5728\u672c\u5730\u5b8c\u6210\u3002\u66f4\u5173\u952e\u7684\u662f&#xff0c;\u5b83\u4e0d\u662f\u201c\u73a9\u5177\u6a21\u578b\u201d&#xff0c;\u800c\u662f\u57fa\u4e8evLLM\u9ad8\u6027\u80fd\u63a8\u7406\u5f15\u64ce\u6df1\u5ea6\u96c6","og_url":"https:\/\/www.wsisp.com\/helps\/72229.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-04T23:41:44+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/72229.html","url":"https:\/\/www.wsisp.com\/helps\/72229.html","name":"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-04T23:41:44+00:00","dateModified":"2026-02-04T23:41:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/72229.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/72229.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/72229.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ClawdBot\u5165\u95e8\u6307\u5357\uff1a\u5982\u4f55\u5728\u65e0GUI\u670d\u52a1\u5668\u4e0a\u901a\u8fc7curl\u6d4b\u8bd5ClawdBot API"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=72229"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72229\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=72229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=72229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=72229"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=72229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}