{"id":72,"date":"2026-03-11T12:05:04","date_gmt":"2026-03-11T04:05:04","guid":{"rendered":"https:\/\/niuns.com\/?p=72"},"modified":"2026-03-11T12:18:31","modified_gmt":"2026-03-11T04:18:31","slug":"windows%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e6%90%ad%e5%bb%baopenclaw","status":"publish","type":"post","link":"https:\/\/niuns.com\/index.php\/2026\/03\/11\/windows%e4%bb%8e%e9%9b%b6%e5%bc%80%e5%a7%8b%e6%90%ad%e5%bb%baopenclaw\/","title":{"rendered":"Windows:\u4ece\u96f6\u5f00\u59cb\u642d\u5efaOpenClaw"},"content":{"rendered":"<div class=\"openclaw-article-container\" style=\"max-width: 800px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; line-height: 1.8; color: #333;\">\n<div class=\"toc-container\" style=\"background-color: #f8f9fa; border-left: 4px solid #0073aa; padding: 20px; margin-bottom: 30px; border-radius: 4px;\">\n<h3 style=\"margin-top: 0; font-size: 1.2em; color: #23282d;\">\ud83d\udccb \u6587\u7ae0\u76ee\u5f55<\/h3>\n<ul style=\"list-style-type: none; padding-left: 0; margin-bottom: 0;\">\n<li style=\"margin-bottom: 8px;\"><a href=\"#exec-summary\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">\u7b80\u4ecb<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-1\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">1. \u73af\u5883\u51c6\u5907\u4e0e\u524d\u63d0\u6761\u4ef6<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-2\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">2. \u5b89\u88c5 OpenClaw<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-3\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">3. \u8bbf\u95ee\u63a7\u5236\u4e0e\u6c99\u7bb1\u9694\u79bb\u8bbe\u8ba1<\/a>\n<ul style=\"list-style-type: disc; padding-left: 20px; margin-top: 5px;\">\n<li><a href=\"#section-3-1\" style=\"text-decoration: none; color: #555;\">3.1 \u6587\u4ef6\u7cfb\u7edf\u767d\u540d\u5355\u4e0e NTFS \u6743\u9650<\/a><\/li>\n<li><a href=\"#section-3-2\" style=\"text-decoration: none; color: #555;\">3.2 Token \u4e0e\u6280\u80fd\u6743\u9650\u6a21\u578b<\/a><\/li>\n<li><a href=\"#section-3-3\" style=\"text-decoration: none; color: #555;\">3.3 \u6d4f\u89c8\u5668\u548c\u4e0b\u8f7d\u7b56\u7565<\/a><\/li>\n<li><a href=\"#section-3-4\" style=\"text-decoration: none; color: #555;\">3.4 \u672c\u5730 Python \u811a\u672c\u6267\u884c\u4e0e\u4f9d\u8d56\u7ba1\u7406<\/a><\/li>\n<\/ul>\n<\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-4\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">4. \u65e5\u5fd7\u4e0e\u5ba1\u8ba1<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-5\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">5. \u98ce\u9669\u4e0e\u7f13\u89e3\u63aa\u65bd<\/a><\/li>\n<li style=\"margin-bottom: 8px;\"><a href=\"#section-reference\" style=\"text-decoration: none; color: #0073aa; font-weight: 500;\">\u53c2\u8003\u6765\u6e90<\/a><\/li>\n<\/ul><\/div>\n<h2 id=\"exec-summary\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">\u7b80\u4ecb<\/h2>\n<p>\u672c\u6587\u4e3b\u8981\u4ecb\u7ecd\u5982\u4f55\u5728\u4e00\u53f0\u5168\u65b0 Windows 10\/11\uff08\u4e13\u4e1a\/\u4f01\u4e1a\u7248\uff09\u673a\u5668\u4e0a\u4ece\u96f6\u5f00\u59cb\u5b89\u88c5\u5e76\u914d\u7f6e <strong>OpenClaw<\/strong>\uff0c\u5e76\u5b9e\u73b0\u4e25\u683c\u7684<strong>\u6700\u5c0f\u6743\u9650<\/strong>\u548c<strong>\u6c99\u7bb1\u9694\u79bb<\/strong>\u7b56\u7565\u3002\u9996\u5148\u4ecb\u7ecd\u6240\u9700\u73af\u5883\u548c\u5b89\u88c5\u6b65\u9aa4\uff0c\u5305\u62ec Node.js\u3001npm\u3001Git\u3001Python \u7b49\u4f9d\u8d56\uff0c\u4ee5\u53ca OpenClaw \u7684\u4e0b\u8f7d\u5b89\u88c5\u4e0e\u521d\u59cb\u5316\u547d\u4ee4\u3002\u7136\u540e\u91cd\u70b9\u8bbe\u8ba1\u8bbf\u95ee\u63a7\u5236\u65b9\u6848\uff1a\u5728\u6587\u4ef6\u7cfb\u7edf\u5c42\u9762\u6784\u5efa<strong>\u767d\u540d\u5355\u76ee\u5f55<\/strong>\uff0c\u5229\u7528 NTFS ACL \u4e25\u683c\u9650\u5236 OpenClaw \u670d\u52a1\u8d26\u6237\u7684\u8bfb\u5199\u6743\u9650\uff1b\u5728\u7cfb\u7edf\u5c42\u9762\u4f7f\u7528<strong> Windows Defender \u5e94\u7528\u63a7\u5236\uff08WDAC\uff09<\/strong>\u548c <strong>AppLocker<\/strong> \u7b49\u7b56\u7565\u53ea\u5141\u8bb8\u8ba4\u8bc1\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8fd0\u884c<sup>[32][34]<\/sup>\u3002<\/p>\n<p>OpenClaw \u672c\u8eab\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5b9e\u73b0<strong> Token \u548c\u6280\u80fd\u6743\u9650\u7ba1\u7406<\/strong>\uff1a\u4f8b\u5982\u4ec5\u5141\u8bb8\u5fc5\u8981\u7684 Shell\/\u6587\u4ef6\/\u7f51\u7edc\u5de5\u5177\uff0c\u7981\u6b62 <code>exec<\/code>\u3001<code>read<\/code>\u3001<code>write<\/code> \u7b49\u9ad8\u98ce\u9669\u64cd\u4f5c<sup>[11][22]<\/sup>\u3002\u9488\u5bf9\u6d4f\u89c8\u5668\u4e0b\u8f7d\u7b56\u7565\uff0c\u53ea\u5141\u8bb8 HTTP GET \u641c\u7d22\u4e0e\u4e0b\u8f7d\uff0c\u7981\u6b62\u4e0a\u4f20\u884c\u4e3a\uff0c\u5e76\u4f7f\u7528\u72ec\u7acb\u7684\u5e72\u51c0\u6d4f\u89c8\u5668\u914d\u7f6e\u9694\u79bb\u5bc6\u7801\u548c Cookie\u3002Local Python \u811a\u672c\u5728\u9694\u79bb\u73af\u5883\u4e2d\u6267\u884c\uff0c\u4f9d\u8d56\u79bb\u7ebf\u65b9\u5f0f\u5b89\u88c5\uff0c\u540c\u65f6\u901a\u8fc7\u9632\u706b\u5899\u89c4\u5219\u963b\u6b62\u811a\u672c\u8054\u7f51\u3002\u5168\u5c40\u542f\u7528<strong>\u5ba1\u8ba1\u65e5\u5fd7<\/strong>\uff0c\u8bb0\u5f55\u5173\u952e\u64cd\u4f5c\u4e8b\u4ef6\u5e76\u96c6\u4e2d\u7559\u5b58 30 \u5929<sup>[46]<\/sup>\u3002<\/p>\n<h2 id=\"section-1\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">1. \u73af\u5883\u51c6\u5907\u4e0e\u524d\u63d0\u6761\u4ef6<\/h2>\n<ul>\n<li><strong>\u64cd\u4f5c\u7cfb\u7edf<\/strong>\uff1aWindows 10\/11\uff08\u5efa\u8bae Pro\/Enterprise \u7248\uff0c\u63a8\u8350 Windows 11\uff09\uff0c\u9700 64 \u4f4d\uff0c\u4e14\u7cfb\u7edf\u8d26\u6237\u987b\u5177\u6709\u7ba1\u7406\u5458\u6743\u9650<sup>[43][46]<\/sup>\u3002<\/li>\n<li><strong>\u786c\u4ef6\u914d\u7f6e<\/strong>\uff1a\u81f3\u5c11 4GB \u5185\u5b58\u30011GB \u4ee5\u4e0a\u53ef\u7528\u786c\u76d8\u7a7a\u95f4\uff1b\u7f51\u7edc\u73af\u5883\u80fd\u591f\u8bbf\u95ee <code>openclaw.ai<\/code> \u548c npm \u955c\u50cf\u6e90\uff08\u56fd\u5185\u53ef\u901a\u8fc7\u914d\u7f6e\u4ee3\u7406\u52a0\u901f\uff09\u3002<\/li>\n<li><strong>\u5fc5\u8981\u8f6f\u4ef6<\/strong>\uff1a\u5b89\u88c5 Node.js\uff08\u5efa\u8bae 22.x LTS \u4ee5\u4e0a\uff09\uff0c\u4ee5\u53ca Git\u3001Python\uff08\u53ef\u9009\uff0c\u7528\u4e8e\u8fd0\u884c Python \u6280\u80fd\uff09\u3002\u5efa\u8bae\u901a\u8fc7 <a href=\"https:\/\/nodejs.org\" target=\"_blank\" rel=\"noopener noreferrer\">NodeSource<\/a> \u6216 Windows \u5b89\u88c5\u5305\u5b89\u88c5 Node.js\u3002<\/li>\n<li><strong>PowerShell<\/strong>\uff1a\u540e\u7eed\u64cd\u4f5c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c PowerShell\u3002\u53ef\u4ee5\u4f7f\u7528 <code>winget install<\/code> \u6216\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\u5305\u3002<\/li>\n<li><strong>\u73af\u5883\u914d\u7f6e<\/strong>\uff1a\u7531\u4e8e\u7f51\u7edc\u9650\u5236\uff0c\u5b89\u88c5\u524d\u53ef\u914d\u7f6e npm \u955c\u50cf\u6e90\u52a0\u901f\u4f9d\u8d56\u4e0b\u8f7d<sup>[41][43]<\/sup>\uff1a\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>npm config set registry https:\/\/registry.npmmirror.com<\/code><\/pre>\n<p>            \u5982\u6709\u9700\u8981\uff0c\u53ef\u4e34\u65f6\u8bbe\u7f6e HTTP \u4ee3\u7406\uff1a<\/p>\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>$env:http_proxy=\"http:\/\/127.0.0.1:7890\"\n$env:https_proxy=\"http:\/\/127.0.0.1:7890\"<\/code><\/pre>\n<\/li>\n<\/ul>\n<h2 id=\"section-2\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">2. \u5b89\u88c5 OpenClaw<\/h2>\n<ol>\n<li><strong>\u5168\u5c40\u5b89\u88c5 CLI<\/strong>\uff1a\u5728\u7ba1\u7406\u5458 PowerShell \u4e0b\u6267\u884c\uff1a\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>npm install -g openclaw@latest<\/code><\/pre>\n<p>            \u8be5\u547d\u4ee4\u4f7f\u7528 npm \u5b89\u88c5 OpenClaw \u6700\u65b0\u7a33\u5b9a\u7248\u3002\u5b89\u88c5\u6210\u529f\u540e\uff0c\u53ef\u901a\u8fc7 <code>openclaw --version<\/code> \u9a8c\u8bc1\u7248\u672c<sup>[41]<\/sup>\u3002<\/li>\n<li><strong>\u521d\u59cb\u5316\u914d\u7f6e<\/strong>\uff1a\u8fd0\u884c Onboarding \u5411\u5bfc\uff1a\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>openclaw onboard --flow quickstart<\/code><\/pre>\n<p>            \u5411\u5bfc\u4f1a\u5f15\u5bfc\u914d\u7f6e AI \u6a21\u578b\u3001\u804a\u5929\u6e20\u9053\u548c\u6280\u80fd\u6a21\u5757\u3002\u9996\u6b21\u8fd0\u884c\u65f6\u63d0\u793a\uff1a\u201c<em>I understand this is powerful and inherently risky. Continue?<\/em>\u201d\uff0c\u8bf7\u9009\u62e9\u201c<strong>Yes<\/strong>\u201d\u786e\u8ba4\u7ee7\u7eed<sup>[41]<\/sup>\u3002<\/li>\n<li><strong>\u542f\u52a8\u7f51\u5173<\/strong>\uff1a\u5b8c\u6210\u914d\u7f6e\u540e\uff0c\u542f\u52a8\u540e\u53f0\u7f51\u5173\u670d\u52a1\uff1a\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>openclaw gateway start<\/code><\/pre>\n<p>            \u8fd0\u884c <code>openclaw gateway status<\/code> \u786e\u8ba4\u7f51\u5173\u5df2\u5728\u672c\u5730\u7aef\u53e3 18789 \u8fd0\u884c\u3002\u6b64\u65f6\u53ef\u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee <code>http:\/\/127.0.0.1:18789\/<\/code> \u67e5\u770b\u63a7\u5236\u53f0<sup>[41]<\/sup>\u3002<\/li>\n<\/ol>\n<h2 id=\"section-3\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">3. \u8bbf\u95ee\u63a7\u5236\u4e0e\u6c99\u7bb1\u9694\u79bb\u8bbe\u8ba1<\/h2>\n<h3 id=\"section-3-1\" style=\"margin-top: 30px;\">3.1 \u6587\u4ef6\u7cfb\u7edf\u767d\u540d\u5355\u4e0e NTFS \u6743\u9650<\/h3>\n<p>\u4e3a\u786e\u4fdd\u5b89\u5168\uff0c\u6211\u4eec\u9700\u8981\u5728 Windows \u5c42\u9762\u9650\u5236\u8fdb\u7a0b\u6743\u9650\uff1a<\/p>\n<ul>\n<li><strong>\u4e13\u7528\u670d\u52a1\u8d26\u6237<\/strong>\uff1a\u4e3a OpenClaw \u521b\u5efa\u4e13\u7528\u4f4e\u6743\u9650 Windows \u7528\u6237\uff08\u4f8b\u5982\u201c<code>OpenClawUser<\/code>\u201d\uff09\uff0c\u7f6e\u4e8e\u6807\u51c6\u7528\u6237\u7ec4\uff0c\u4e0d\u8d4b\u4e88\u7ba1\u7406\u5458\u6743\u9650<sup>[11][46]<\/sup>\u3002<\/li>\n<li><strong>\u767d\u540d\u5355\u76ee\u5f55<\/strong>\uff1a\u9884\u5148\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\uff08\u5982 <code>C:\\OpenClaw<\/code>\uff09\u4f5c\u4e3a\u5de5\u4f5c\u76ee\u5f55\uff0c\u8d4b\u4e88\u8bfb\u5199\u6743\u9650\uff1b\u62d2\u7edd\u5176\u5bf9\u5176\u4ed6\u654f\u611f\u76ee\u5f55\u7684\u8bbf\u95ee\u3002\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>New-LocalUser OpenClawUser -NoPassword -AccountNeverExpires\nAdd-LocalGroupMember -Group \"Users\" -Member OpenClawUser\n# \u5141\u8bb8\u8bbf\u95ee\u5de5\u4f5c\u76ee\u5f55\nicacls C:\\OpenClaw \/grant OpenClawUser:(OI)(CI)M\n# \u62d2\u7edd\u8bbf\u95ee\u7528\u6237\u4e2a\u4eba\u76ee\u5f55\u548c\u7cfb\u7edf\u76d8\u6839\nicacls C:\\Users \/deny OpenClawUser:(OI)(CI)F\nicacls C:\\ \/deny OpenClawUser:F<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4 style=\"margin-top: 20px;\">\u6c99\u7bb1\u4e0e\u5e94\u7528\u63a7\u5236\u7b56\u7565\u5bf9\u6bd4<\/h4>\n<div style=\"overflow-x: auto;\">\n<table style=\"width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.95em;\">\n<thead>\n<tr style=\"background-color: #f1f1f1; text-align: left;\">\n<th style=\"padding: 12px; border: 1px solid #ddd;\">\u63a7\u5236\u9886\u57df \/ \u5de5\u5177<\/th>\n<th style=\"padding: 12px; border: 1px solid #ddd;\">\u63cf\u8ff0\u53ca\u793a\u4f8b<\/th>\n<th style=\"padding: 12px; border: 1px solid #ddd;\">\u4f18\u7f3a\u70b9\u5206\u6790<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd;\"><strong>NTFS ACL<\/strong><\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u57fa\u4e8e\u7528\u6237\/\u7ec4\u7684\u6587\u4ef6\u5939\u6743\u9650\u63a7\u5236\u3002<br \/><code>icacls C:\\ \/deny OpenClawUser:F<\/code><\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u7b80\u5355\u76f4\u63a5\uff1b\u4f46\u7ba1\u7406\u590d\u6742\uff0c\u82e5\u8fdb\u7a0b\u63d0\u6743\u53ef\u88ab\u7ed5\u8fc7<sup>[11]<\/sup>\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd;\"><strong>WDAC<\/strong><\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u7cfb\u7edf\u7ea7\u5e94\u7528\u767d\u540d\u5355\uff0c\u5f3a\u5236\u6267\u884c\u7b7e\u540d\u9a8c\u8bc1<sup>[32]<\/sup>\u3002<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u6781\u5176\u4e25\u683c\uff1b\u914d\u7f6e XML \u7b56\u7565\u590d\u6742\uff0c\u9650\u4f01\u4e1a\u7248\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd;\"><strong>AppLocker<\/strong><\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u5141\u8bb8\/\u62d2\u7edd\u89c4\u5219\uff0c\u652f\u6301\u9488\u5bf9\u7279\u5b9a\u7528\u6237\u7684\u9650\u5236<sup>[34]<\/sup>\u3002<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u7ec6\u7c92\u5ea6\u9ad8\uff1b\u9700\u8981\u4f01\u4e1a\u7248\/\u6559\u80b2\u7248\uff0c\u9700\u5b9a\u671f\u66f4\u65b0\u3002<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd;\"><strong>OpenClaw \u6c99\u7bb1<\/strong><\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u914d\u7f6e\u6587\u4ef6\u5185\u7981\u7528 <code>read<\/code>, <code>write<\/code>, <code>exec<\/code> \u7b49\u5de5\u5177<sup>[11][22]<\/sup>\u3002<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">\u914d\u7f6e\u7075\u6d3b\uff1b\u4f46\u4ec5\u5728\u8fdb\u7a0b\u5185\u751f\u6548\uff0c\u5bf9\u7cfb\u7edf\u5916\u653b\u51fb\u65e0\u6548\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<h4 style=\"margin-top: 30px;\">\u6743\u9650\u4e0e\u6570\u636e\u6d41\u793a\u610f\u56fe<\/h4>\n<div style=\"text-align: center; margin: 20px 0; background: #fff; padding: 15px; border: 1px solid #ddd; border-radius: 5px;\">\n<pre class=\"mermaid\" id=\"openclaw-diagram\">\nflowchart LR\n    subgraph Sys [\"Windows\u7cfb\u7edf\"]\n        Admin[\"Windows\u7ba1\u7406\u5458\"]\n        WDAC[\"WDAC\/AppLocker\u7b56\u7565\"]\n        FW[\"\u9632\u706b\u5899\/\u7f51\u7edc\u8fc7\u6ee4\"]\n    end\n    subgraph OC [\"OpenClaw\u73af\u5883\"]\n        direction TB\n        User[\"OpenClaw\u4f4e\u6743\u9650\u7528\u6237\"]\n        AllowDir[\"\u6587\u4ef6\u7cfb\u7edf\u767d\u540d\u5355(\u5141\u8bb8\u8bfb\u5199)\"]\n        DenyDir[\"\u5176\u4ed6\u6587\u4ef6\u5939(\u62d2\u7edd\u8bbf\u95ee)\"]\n        Skills[\"\u6280\u80fd\u5de5\u5177(\u6d4f\u89c8\u5668\/Python\/Shell)\"]\n        Log[\"\u65e5\u5fd7\u5ba1\u8ba1\u8bb0\u5f55\"]\n    end\n\n    Admin --> User\n    WDAC -.-> User\n    FW -.-> Skills\n    User --> AllowDir\n    User -.-> DenyDir\n    Skills --> AllowDir\n    Skills -.-> DenyDir\n    Skills --> Internet[\"\u4e92\u8054\u7f51(\u9650\u5236\u51fa\u7ad9)\"]\n    Internet -.-> User\n    User --> Log\n    <\/pre>\n<\/div>\n<p style=\"font-size: 0.9em; color: #666; text-align: center;\"><em>\u56fe\uff1aOpenClaw \u8fdb\u7a0b\u4e0b\u6743\u9650\u548c\u6570\u636e\u6d41\u793a\u610f\u3002<\/em><\/p>\n<p><script type=\"module\">\n    import mermaid from 'https:\/\/cdn.jsdelivr.net\/npm\/mermaid@10\/dist\/mermaid.esm.min.mjs';<\/p>\n<p>    \/\/ \u6e05\u7406\u51fd\u6570\uff1a\u79fb\u9664 WordPress \u81ea\u52a8\u6dfb\u52a0\u7684\u6807\u7b7e\uff0c\u786e\u4fdd Mermaid \u8bed\u6cd5\u7eaf\u51c0\n    const element = document.getElementById('openclaw-diagram');\n    if (element) {\n        let cleanText = element.innerText\n            .replace(\/<br\\s*\\\/?>\/gi, '\\n') \/\/ \u66ff\u6362\u53ef\u80fd\u7684 br \u6807\u7b7e\u4e3a\u6362\u884c\n            .replace(\/<\\\/p><\/p>\n<p>\/gi, '\\n')   \/\/ \u66ff\u6362\u53ef\u80fd\u7684\u6bb5\u843d\u6807\u8bb0\n            .trim();\n        element.textContent = cleanText;\n    }<\/p>\n<p>    mermaid.initialize({ \n        startOnLoad: true, \n        theme: 'default',\n        securityLevel: 'loose',\n        flowchart: { useMaxWidth: true, htmlLabels: true }\n    });\n<\/script><\/p>\n<h3 id=\"section-3-2\" style=\"margin-top: 30px;\">3.2 Token \u4e0e\u6280\u80fd\u6743\u9650\u6a21\u578b<\/h3>\n<p>\u91c7\u7528\u201c\u523a\u732c\u539f\u5219\u201d\u5904\u7406\u6240\u6709 API Token\u3002\u5c06 <code>.env<\/code> \u6587\u4ef6\u6743\u9650\u9501\u5b9a\u4e3a\u4ec5 OpenClawUser \u53ef\u8bfb\uff0c\u5e76\u5728 <code>openclaw.json<\/code> \u4e2d\u4e25\u683c\u9650\u5236 <strong>\u6280\u80fd\u5de5\u5177\u6743\u9650<\/strong>\u3002\u793a\u4f8b\u914d\u7f6e\u5982\u4e0b<sup>[22][46]<\/sup>\uff1a<\/p>\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>{\n  \"agents\": {\n    \"public\": {\n      \"tools\": {\n        \"allow\": [\"sessions_list\", \"browser.search\", \"browser.download\"],\n        \"deny\": [\"read\", \"write\", \"exec\", \"browser.fill_password\", \"browser.upload\"]\n      }\n    }\n  },\n  \"security\": {\n    \"shell\": {\n      \"allowed_commands\": [\"git\", \"npm\", \"python\", \"ls\", \"cat\"],\n      \"blocked_patterns\": [\"rm -rf\", \"> \/dev\/\", \"curl \", \"powershell Add-\"],\n      \"working_directory\": \"C:\\\\OpenClaw\\\\sandbox\",\n      \"run_as_user\": \"OpenClawUser\"\n    }\n  }\n}<\/code><\/pre>\n<h3 id=\"section-3-3\" style=\"margin-top: 30px;\">3.3 \u6d4f\u89c8\u5668\u548c\u4e0b\u8f7d\u7b56\u7565<\/h3>\n<ul>\n<li><strong>\u72ec\u7acb\u6d4f\u89c8\u5668\u914d\u7f6e<\/strong>\uff1a\u4f7f\u7528\u4e13\u7528\u6d4f\u89c8\u5668\u5b9e\u4f8b\uff0c\u7981\u7528\u5bc6\u7801\u540c\u6b65\u3001\u81ea\u52a8\u586b\u5145\u548c\u6269\u5c55\uff0c\u9694\u79bb\u654f\u611f\u4fe1\u606f<sup>[44]<\/sup>\u3002<\/li>\n<li><strong>\u4e0b\u8f7d\u76ee\u5f55\u9694\u79bb<\/strong>\uff1a\u6240\u6709 AI \u4e0b\u8f7d\u6587\u4ef6\u5b58\u653e\u4e8e <code>C:\\OpenClaw\\downloads<\/code>\uff0c\u9632\u6b62\u88ab\u81ea\u52a8\u540c\u6b65\u6216\u5907\u4efd\u3002<\/li>\n<li><strong>\u7f51\u7edc\u4e0a\u4f20\u9650\u5236<\/strong>\uff1a\u901a\u8fc7 Windows \u9632\u706b\u5899\u963b\u65ad\u65e0\u5173\u51fa\u7ad9\u8bf7\u6c42\uff1a\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code># \u5141\u8bb8 Node.exe \u8bbf\u95ee\u6307\u5b9a IP\nNew-NetFirewallRule -DisplayName \"OpenClaw_Outbound\" -Direction Outbound `\n  -Program \"C:\\Program Files\\nodejs\\node.exe\" -RemoteAddress 1.2.3.4 -Action Allow\n# \u963b\u6b62 Python \u7684\u6240\u6709\u51fa\u7ad9\u7f51\u7edc\nNew-NetFirewallRule -DisplayName \"Block_Python_Out\" -Program \"C:\\Python39\\python.exe\" -Direction Outbound -Action Block<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3 id=\"section-3-4\" style=\"margin-top: 30px;\">3.4 \u672c\u5730 Python \u811a\u672c\u6267\u884c\u4e0e\u4f9d\u8d56\u7ba1\u7406<\/h3>\n<p>\u7981\u7528 Python \u7684\u8054\u7f51\u80fd\u529b\uff0c\u91c7\u7528\u79bb\u7ebf\u65b9\u5f0f\u5b89\u88c5\u4f9d\u8d56\u5e93<sup>[38]<\/sup>\uff1a<\/p>\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code># \u8054\u7f51\u673a\u5668\u4e0a\u4e0b\u8f7d\npip download flask -d C:\\OfflinePackages\n# \u79bb\u7ebf\u4e3b\u673a\u4e0a\u5b89\u88c5\npip install --no-index --find-links C:\\OfflinePackages flask<\/code><\/pre>\n<h2 id=\"section-4\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">4. \u65e5\u5fd7\u4e0e\u5ba1\u8ba1<\/h2>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u5f00\u542f\u9ad8\u7b49\u7ea7\u5ba1\u8ba1\u5e76\u8bbe\u5b9a\u65e5\u5fd7\u4fdd\u7559 30 \u5929\u3002\u65e5\u5fd7\u4ee5 JSON \u683c\u5f0f\u8bb0\u5f55\uff0c\u4fbf\u4e8e\u96c6\u4e2d\u5316\u7ba1\u7406\u548c\u8ffd\u8e2a<sup>[46]<\/sup>\uff1a<\/p>\n<pre style=\"background: #2d2d2d; color: #ccc; padding: 15px; border-radius: 5px; overflow-x: auto;\"><code>{\"timestamp\":\"2026-03-11T12:34:56Z\",\"agent\":\"public\",\"action\":\"shell.execute\",\n \"command\":\"del C:\\\\OpenClaw\\\\data\\\\file.txt\",\"result\":\"denied\",\"user\":\"OpenClawUser\"}<\/code><\/pre>\n<h2 id=\"section-5\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">5. \u98ce\u9669\u4e0e\u7f13\u89e3\u63aa\u65bd<\/h2>\n<ul style=\"padding-left: 20px;\">\n<li><strong>\u63d0\u793a\u8bcd\u6ce8\u5165<\/strong>\uff1a\u5728\u5e94\u7528\u5c42\u589e\u52a0\u8f93\u5165\u8fc7\u6ee4\u4e2d\u95f4\u4ef6\uff0c\u5c4f\u853d <code>rm\\s+-rf<\/code> \u7b49\u5371\u9669\u6307\u4ee4\u6a21\u5f0f\u3002<\/li>\n<li><strong>Token \u6cc4\u9732<\/strong>\uff1a\u4e25\u7981\u5c06 Token \u7c98\u8d34\u5230\u804a\u5929\u4e2d\uff0c\u4f7f\u7528\u51ed\u636e\u7ba1\u7406\u5668\u6216\u4e25\u63a7\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6\u6743\u9650\u3002<\/li>\n<li><strong>\u6280\u80fd\u8d8a\u6743<\/strong>\uff1a\u5229\u7528 <code>tools.deny<\/code> \u5c01\u9501\u9ad8\u5371\u64cd\u4f5c\uff0c\u5bf9\u5f02\u5e38\u884c\u4e3a\u914d\u7f6e\u76d1\u63a7\u544a\u8b66\u3002<\/li>\n<li><strong>\u7cfb\u7edf\u9003\u9038<\/strong>\uff1a\u901a\u8fc7 WDAC\/AppLocker \u4e0e NTFS ACL \u5efa\u7acb\u6df1\u5ea6\u9632\u5fa1\uff0c\u5b9a\u671f\u6253\u7cfb\u7edf\u8865\u4e01\u3002<\/li>\n<\/ul>\n<h2 id=\"section-reference\" style=\"border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px;\">\u53c2\u8003\u6765\u6e90<\/h2>\n<ul style=\"font-size: 0.9em; color: #666;\">\n<li>OpenClaw \u5b98\u65b9\u6587\u6863\uff1a\u300a\u5b89\u88c5\u6307\u5357\u300b\u548c\u300a\u5b89\u5168\u6307\u5357\u300b<\/li>\n<li>OpenClaw \u4e2d\u6587\u5b89\u88c5\u6559\u7a0b\uff08\u535a\u5ba2\u56ed\u3001CSDN\uff09<\/li>\n<li>OpenClaw \u5b89\u5168\u914d\u7f6e\u6848\u4f8b\uff08DAMO \u8d44\u6df1\u5f00\u53d1\u8005\u535a\u5ba2\uff09<\/li>\n<li>Windows \u5b89\u5168\u6587\u6863\uff1a\u5fae\u8f6f\u5b98\u65b9\u5bf9 WDAC \u548c AppLocker \u7684\u4ecb\u7ecd<\/li>\n<li>Python \u79bb\u7ebf\u5b89\u88c5\u6307\u5357\uff08CSDN\uff09<\/li>\n<\/ul>\n<\/div>\n<p><script type=\"module\">\n    import mermaid from 'https:\/\/cdn.jsdelivr.net\/npm\/mermaid@10\/dist\/mermaid.esm.min.mjs';\n    mermaid.initialize({ startOnLoad: true, theme: 'default' });\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udccb \u6587\u7ae0\u76ee\u5f55 \u7b80\u4ecb 1. \u73af\u5883\u51c6\u5907\u4e0e\u524d\u63d0\u6761\u4ef6 2. \u5b89\u88c5 OpenClaw 3. \u8bbf\u95ee\u63a7\u5236\u4e0e\u6c99\u7bb1\u9694\u79bb\u8bbe\u8ba1 3. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-pm"],"_links":{"self":[{"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":7,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":80,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/posts\/72\/revisions\/80"}],"wp:attachment":[{"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/niuns.com\/index.php\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}