{"id":87,"date":"2026-03-21T22:47:16","date_gmt":"2026-03-21T14:47:16","guid":{"rendered":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/concepts-agent-workspace\/"},"modified":"2026-03-21T23:08:57","modified_gmt":"2026-03-21T15:08:57","slug":"concepts-agent-workspace","status":"publish","type":"post","link":"https:\/\/pa.yingzhi8.cn\/index.php\/2026\/03\/21\/concepts-agent-workspace\/","title":{"rendered":"\u667a\u80fd\u4f53\u5de5\u4f5c\u533a"},"content":{"rendered":"<h1>\u667a\u80fd\u4f53\u5de5\u4f5c\u533a<\/h1>\n<p>\u5de5\u4f5c\u533a\u662f\u667a\u80fd\u4f53\u7684\u201c\u5bb6\u201d\u3002\u5b83\u662f\u6587\u4ef6\u5de5\u5177\u548c\u5de5\u4f5c\u533a\u4e0a\u4e0b\u6587\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5de5\u4f5c\u76ee\u5f55\u3002\u8bf7\u5c06\u5176\u4fdd\u6301\u4e3a\u79c1\u6709\uff0c\u5e76\u5c06\u5176\u89c6\u4e3a\u8bb0\u5fc6\u3002<\/p>\n<p>\u8fd9\u4e0e\u5b58\u50a8\u914d\u7f6e\u3001\u51ed\u8bc1\u548c\u4f1a\u8bdd\u7684 <code>~\/.openclaw\/<\/code> \u662f\u5206\u5f00\u7684\u3002<\/p>\n<p><strong>\u91cd\u8981\uff1a<\/strong>\u5de5\u4f5c\u533a\u662f<strong>\u9ed8\u8ba4 cwd<\/strong>\uff0c\u800c\u4e0d\u662f\u786c\u6027\u6c99\u7bb1\u3002\u5de5\u5177\u4f1a\u76f8\u5bf9\u4e8e\u5de5\u4f5c\u533a\u89e3\u6790\u76f8\u5bf9\u8def\u5f84\uff0c\u4f46\u9664\u975e\u542f\u7528\u6c99\u7bb1\u9694\u79bb\uff0c\u5426\u5219\u7edd\u5bf9\u8def\u5f84\u4ecd\u7136\u53ef\u4ee5\u8bbf\u95ee\u4e3b\u673a\u4e0a\u7684\u5176\u4ed6\u4f4d\u7f6e\u3002\u5982\u679c\u4f60\u9700\u8981\u9694\u79bb\uff0c\u8bf7\u4f7f\u7528 <a href=\"\/gateway\/sandboxing\"><code>agents.defaults.sandbox<\/code><\/a>\uff08\u548c\/\u6216\u6309\u667a\u80fd\u4f53\u914d\u7f6e\u7684\u6c99\u7bb1\uff09\u3002\u542f\u7528\u6c99\u7bb1\u9694\u79bb\u540e\uff0c\u5982\u679c <code>workspaceAccess<\/code> \u4e0d\u662f <code>\"rw\"<\/code>\uff0c\u5de5\u5177\u4f1a\u5728 <code>~\/.openclaw\/sandboxes<\/code> \u4e0b\u7684\u6c99\u7bb1\u5de5\u4f5c\u533a\u4e2d\u8fd0\u884c\uff0c\u800c\u4e0d\u662f\u5728\u4f60\u7684\u4e3b\u673a\u5de5\u4f5c\u533a\u4e2d\u8fd0\u884c\u3002<\/p>\n<h2>\u9ed8\u8ba4\u4f4d\u7f6e<\/h2>\n<ul>\n<li>\u9ed8\u8ba4\u503c\uff1a<code>~\/.openclaw\/workspace<\/code><\/li>\n<li>\u5982\u679c\u8bbe\u7f6e\u4e86 <code>OPENCLAW_PROFILE<\/code> \u4e14\u5176\u503c\u4e0d\u662f <code>\"default\"<\/code>\uff0c\u9ed8\u8ba4\u503c\u5c06\u53d8\u4e3a<br \/>\n  <code>~\/.openclaw\/workspace-&lt;profile&gt;<\/code>\u3002<\/li>\n<li>\u5728 <code>~\/.openclaw\/openclaw.json<\/code> \u4e2d\u8986\u76d6\uff1a<\/li>\n<\/ul>\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  agent: {<br \/>\n    workspace: &#8220;~\/.openclaw\/workspace&#8221;,<br \/>\n  },<br \/>\n}<\/p>\n<pre><code>\n`openclaw onboard`\u3001`openclaw configure` \u6216 `openclaw setup` \u4f1a\u5728\u5de5\u4f5c\u533a\u7f3a\u5931\u65f6\u521b\u5efa\u5de5\u4f5c\u533a\u5e76\u690d\u5165\u5f15\u5bfc\u6587\u4ef6\u3002\n\u6c99\u7bb1\u79cd\u5b50\u590d\u5236\u4ec5\u63a5\u53d7\u5de5\u4f5c\u533a\u5185\u7684\u5e38\u89c4\u6587\u4ef6\uff1b\u89e3\u6790\u5230\u6e90\u5de5\u4f5c\u533a\u5916\u90e8\u7684\u7b26\u53f7\u94fe\u63a5\/\u786c\u94fe\u63a5\u522b\u540d\u4f1a\u88ab\u5ffd\u7565\u3002\n\n\u5982\u679c\u4f60\u5df2\u7ecf\u81ea\u884c\u7ba1\u7406\u5de5\u4f5c\u533a\u6587\u4ef6\uff0c\u53ef\u4ee5\u7981\u7528\u5f15\u5bfc\u6587\u4ef6\u521b\u5efa\uff1a\n\n```json5  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n{ agent: { skipBootstrap: true } }\n<\/code><\/pre>\n<h2>\u989d\u5916\u7684\u5de5\u4f5c\u533a\u6587\u4ef6\u5939<\/h2>\n<p>\u8f83\u65e7\u7684\u5b89\u88c5\u53ef\u80fd\u521b\u5efa\u8fc7 <code>~\/openclaw<\/code>\u3002\u4fdd\u7559\u591a\u4e2a\u5de5\u4f5c\u533a\u76ee\u5f55\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4ee4\u4eba\u56f0\u60d1\u7684\u51ed\u8bc1\u6216\u72b6\u6001\u6f02\u79fb\uff0c\u56e0\u4e3a\u540c\u4e00\u65f6\u95f4\u53ea\u6709\u4e00\u4e2a\u5de5\u4f5c\u533a\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\u3002<\/p>\n<p>**\u5efa\u8bae\uff1a**\u53ea\u4fdd\u7559\u4e00\u4e2a\u6d3b\u52a8\u5de5\u4f5c\u533a\u3002\u5982\u679c\u4f60\u4e0d\u518d\u4f7f\u7528\u989d\u5916\u7684\u6587\u4ef6\u5939\uff0c\u8bf7\u5c06\u5176\u5f52\u6863\u6216\u79fb\u5230\u5e9f\u7eb8\u7bd3\uff08\u4f8b\u5982 <code>trash ~\/openclaw<\/code>\uff09\u3002<br \/>\n\u5982\u679c\u4f60\u6709\u610f\u4fdd\u7559\u591a\u4e2a\u5de5\u4f5c\u533a\uff0c\u8bf7\u786e\u4fdd<br \/>\n<code>agents.defaults.workspace<\/code> \u6307\u5411\u5f53\u524d\u6d3b\u52a8\u7684\u90a3\u4e2a\u3002<\/p>\n<p>\u5f53 <code>openclaw doctor<\/code> \u68c0\u6d4b\u5230\u989d\u5916\u7684\u5de5\u4f5c\u533a\u76ee\u5f55\u65f6\uff0c\u4f1a\u53d1\u51fa\u8b66\u544a\u3002<\/p>\n<h2>\u5de5\u4f5c\u533a\u6587\u4ef6\u6620\u5c04\uff08\u6bcf\u4e2a\u6587\u4ef6\u7684\u542b\u4e49\uff09<\/h2>\n<p>\u4ee5\u4e0b\u662f OpenClaw \u5728\u5de5\u4f5c\u533a\u5185\u9884\u671f\u7684\u6807\u51c6\u6587\u4ef6\uff1a<\/p>\n<ul>\n<li><code>AGENTS.md<\/code><\/li>\n<li>\u667a\u80fd\u4f53\u7684\u64cd\u4f5c\u8bf4\u660e\uff0c\u4ee5\u53ca\u5b83\u5e94\u5982\u4f55\u4f7f\u7528\u8bb0\u5fc6\u3002<\/li>\n<li>\u6bcf\u6b21\u4f1a\u8bdd\u5f00\u59cb\u65f6\u52a0\u8f7d\u3002<\/li>\n<li>\n<p>\u5f88\u9002\u5408\u653e\u7f6e\u89c4\u5219\u3001\u4f18\u5148\u7ea7\u548c\u201c\u5982\u4f55\u8868\u73b0\u201d\u4e4b\u7c7b\u7684\u7ec6\u8282\u3002<\/p>\n<\/li>\n<li>\n<p><code>SOUL.md<\/code><\/p>\n<\/li>\n<li>\u4eba\u8bbe\u3001\u8bed\u6c14\u548c\u8fb9\u754c\u3002<\/li>\n<li>\n<p>\u6bcf\u6b21\u4f1a\u8bdd\u90fd\u4f1a\u52a0\u8f7d\u3002<\/p>\n<\/li>\n<li>\n<p><code>USER.md<\/code><\/p>\n<\/li>\n<li>\u7528\u6237\u662f\u8c01\uff0c\u4ee5\u53ca\u5e94\u5982\u4f55\u79f0\u547c\u4ed6\u4eec\u3002<\/li>\n<li>\n<p>\u6bcf\u6b21\u4f1a\u8bdd\u90fd\u4f1a\u52a0\u8f7d\u3002<\/p>\n<\/li>\n<li>\n<p><code>IDENTITY.md<\/code><\/p>\n<\/li>\n<li>\u667a\u80fd\u4f53\u7684\u540d\u79f0\u3001\u98ce\u683c\u548c emoji\u3002<\/li>\n<li>\n<p>\u5728\u5f15\u5bfc\u4eea\u5f0f\u671f\u95f4\u521b\u5efa\/\u66f4\u65b0\u3002<\/p>\n<\/li>\n<li>\n<p><code>TOOLS.md<\/code><\/p>\n<\/li>\n<li>\u5173\u4e8e\u4f60\u7684\u672c\u5730\u5de5\u5177\u548c\u7ea6\u5b9a\u7684\u8bf4\u660e\u3002<\/li>\n<li>\n<p>\u5b83\u4e0d\u63a7\u5236\u5de5\u5177\u53ef\u7528\u6027\uff1b\u4ec5\u63d0\u4f9b\u6307\u5bfc\u3002<\/p>\n<\/li>\n<li>\n<p><code>HEARTBEAT.md<\/code><\/p>\n<\/li>\n<li>\u53ef\u9009\u7684\u5fc3\u8df3\u8fd0\u884c\u5fae\u578b\u68c0\u67e5\u6e05\u5355\u3002<\/li>\n<li>\n<p>\u4fdd\u6301\u7b80\u77ed\u4ee5\u907f\u514d\u6d88\u8017\u8fc7\u591a token\u3002<\/p>\n<\/li>\n<li>\n<p><code>BOOT.md<\/code><\/p>\n<\/li>\n<li>\u53ef\u9009\u7684\u542f\u52a8\u68c0\u67e5\u6e05\u5355\uff1b\u5f53\u542f\u7528\u5185\u90e8 hooks \u65f6\uff0c\u4f1a\u5728 Gateway \u7f51\u5173\u91cd\u542f\u65f6\u6267\u884c\u3002<\/li>\n<li>\n<p>\u4fdd\u6301\u7b80\u77ed\uff1b\u51fa\u7ad9\u53d1\u9001\u8bf7\u4f7f\u7528\u6d88\u606f\u5de5\u5177\u3002<\/p>\n<\/li>\n<li>\n<p><code>BOOTSTRAP.md<\/code><\/p>\n<\/li>\n<li>\u4e00\u6b21\u6027\u7684\u9996\u6b21\u8fd0\u884c\u4eea\u5f0f\u3002<\/li>\n<li>\u4ec5\u4e3a\u5168\u65b0\u7684\u5de5\u4f5c\u533a\u521b\u5efa\u3002<\/li>\n<li>\n<p>\u4eea\u5f0f\u5b8c\u6210\u540e\u8bf7\u5c06\u5176\u5220\u9664\u3002<\/p>\n<\/li>\n<li>\n<p><code>memory\/YYYY-MM-DD.md<\/code><\/p>\n<\/li>\n<li>\u6bcf\u65e5\u8bb0\u5fc6\u65e5\u5fd7\uff08\u6bcf\u5929\u4e00\u4e2a\u6587\u4ef6\uff09\u3002<\/li>\n<li>\n<p>\u5efa\u8bae\u5728\u4f1a\u8bdd\u5f00\u59cb\u65f6\u9605\u8bfb\u4eca\u5929\u548c\u6628\u5929\u7684\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p><code>MEMORY.md<\/code>\uff08\u53ef\u9009\uff09<\/p>\n<\/li>\n<li>\u7cbe\u9009\u7684\u957f\u671f\u8bb0\u5fc6\u3002<\/li>\n<li>\u4ec5\u5728\u4e3b\u79c1\u6709\u4f1a\u8bdd\u4e2d\u52a0\u8f7d\uff08\u4e0d\u5728\u5171\u4eab\/\u7fa4\u7ec4\u4e0a\u4e0b\u6587\u4e2d\u52a0\u8f7d\uff09\u3002<\/li>\n<\/ul>\n<p>\u6709\u5173\u5de5\u4f5c\u6d41\u548c\u81ea\u52a8\u8bb0\u5fc6\u5237\u65b0\uff0c\u8bf7\u53c2\u89c1<a href=\"\/concepts\/memory\">\u8bb0\u5fc6<\/a>\u3002<\/p>\n<ul>\n<li><code>skills\/<\/code>\uff08\u53ef\u9009\uff09<\/li>\n<li>\u5de5\u4f5c\u533a\u4e13\u7528\u6280\u80fd\u3002<\/li>\n<li>\n<p>\u540d\u79f0\u51b2\u7a81\u65f6\u4f1a\u8986\u76d6\u6258\u7ba1\/\u6346\u7ed1\u7684 Skills\u3002<\/p>\n<\/li>\n<li>\n<p><code>canvas\/<\/code>\uff08\u53ef\u9009\uff09<\/p>\n<\/li>\n<li>\u7528\u4e8e\u8282\u70b9\u663e\u793a\u7684 Canvas UI \u6587\u4ef6\uff08\u4f8b\u5982 <code>canvas\/index.html<\/code>\uff09\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u4efb\u4f55\u5f15\u5bfc\u6587\u4ef6\u7f3a\u5931\uff0cOpenClaw \u4f1a\u5728\u4f1a\u8bdd\u4e2d\u6ce8\u5165\u4e00\u4e2a\u201c\u7f3a\u5931\u6587\u4ef6\u201d\u6807\u8bb0\u5e76\u7ee7\u7eed\u6267\u884c\u3002\u6ce8\u5165\u65f6\uff0c\u5927\u578b\u5f15\u5bfc\u6587\u4ef6\u4f1a\u88ab\u622a\u65ad\uff1b\u53ef\u4f7f\u7528 <code>agents.defaults.bootstrapMaxChars<\/code>\uff08\u9ed8\u8ba4\uff1a20000\uff09\u548c <code>agents.defaults.bootstrapTotalMaxChars<\/code>\uff08\u9ed8\u8ba4\uff1a150000\uff09\u8c03\u6574\u9650\u5236\u3002<br \/>\n<code>openclaw setup<\/code> \u53ef\u4ee5\u91cd\u65b0\u521b\u5efa\u7f3a\u5931\u7684\u9ed8\u8ba4\u6587\u4ef6\uff0c\u800c\u4e0d\u4f1a\u8986\u76d6\u73b0\u6709\u6587\u4ef6\u3002<\/p>\n<h2>\u4e0d\u5728\u5de5\u4f5c\u533a\u4e2d\u7684\u5185\u5bb9<\/h2>\n<p>\u8fd9\u4e9b\u5185\u5bb9\u4f4d\u4e8e <code>~\/.openclaw\/<\/code> \u4e0b\uff0c<strong>\u4e0d\u5e94<\/strong>\u63d0\u4ea4\u5230\u5de5\u4f5c\u533a\u4ed3\u5e93\uff1a<\/p>\n<ul>\n<li><code>~\/.openclaw\/openclaw.json<\/code>\uff08\u914d\u7f6e\uff09<\/li>\n<li><code>~\/.openclaw\/credentials\/<\/code>\uff08OAuth \u4ee4\u724c\u3001API \u5bc6\u94a5\uff09<\/li>\n<li><code>~\/.openclaw\/agents\/&lt;agentId&gt;\/sessions\/<\/code>\uff08\u4f1a\u8bdd\u8bb0\u5f55\u548c\u5143\u6570\u636e\uff09<\/li>\n<li><code>~\/.openclaw\/skills\/<\/code>\uff08\u6258\u7ba1 Skills\uff09<\/li>\n<\/ul>\n<p>\u5982\u679c\u4f60\u9700\u8981\u8fc1\u79fb\u4f1a\u8bdd\u6216\u914d\u7f6e\uff0c\u8bf7\u5355\u72ec\u590d\u5236\u5b83\u4eec\uff0c\u5e76\u786e\u4fdd\u4e0d\u8981\u5c06\u5176\u7eb3\u5165\u7248\u672c\u63a7\u5236\u3002<\/p>\n<h2>Git \u5907\u4efd\uff08\u63a8\u8350\uff0c\u79c1\u6709\uff09<\/h2>\n<p>\u5c06\u5de5\u4f5c\u533a\u89c6\u4e3a\u79c1\u6709\u8bb0\u5fc6\u3002\u628a\u5b83\u653e\u8fdb\u4e00\u4e2a<strong>\u79c1\u6709<\/strong> git \u4ed3\u5e93\uff0c\u4ee5\u4fbf\u5907\u4efd\u5e76\u53ef\u6062\u590d\u3002<\/p>\n<p>\u8bf7\u5728 Gateway \u7f51\u5173\u8fd0\u884c\u7684\u673a\u5668\u4e0a\u6267\u884c\u8fd9\u4e9b\u6b65\u9aa4\uff08\u5de5\u4f5c\u533a\u5c31\u4f4d\u4e8e\u90a3\u91cc\uff09\u3002<\/p>\n<h3>1\uff09\u521d\u59cb\u5316\u4ed3\u5e93<\/h3>\n<p>\u5982\u679c\u5df2\u5b89\u88c5 git\uff0c\u5168\u65b0\u5de5\u4f5c\u533a\u4f1a\u81ea\u52a8\u521d\u59cb\u5316\u3002\u5982\u679c\u8fd9\u4e2a\u5de5\u4f5c\u533a\u8fd8\u4e0d\u662f\u4ed3\u5e93\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\ncd ~\/.openclaw\/workspace<br \/>\ngit init<br \/>\ngit add AGENTS.md SOUL.md TOOLS.md IDENTITY.md USER.md HEARTBEAT.md memory\/<br \/>\ngit commit -m &#8220;Add agent workspace&#8221;<\/p>\n<pre><code>\n### 2\uff09\u6dfb\u52a0\u79c1\u6709\u8fdc\u7a0b\u4ed3\u5e93\uff08\u9002\u5408\u65b0\u624b\u7684\u9009\u9879\uff09\n\n\u9009\u9879 A\uff1aGitHub Web UI\n\n1. \u5728 GitHub \u4e0a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684**\u79c1\u6709**\u4ed3\u5e93\u3002\n2. \u4e0d\u8981\u4f7f\u7528 README \u521d\u59cb\u5316\uff08\u4ee5\u907f\u514d\u5408\u5e76\u51b2\u7a81\uff09\u3002\n3. \u590d\u5236 HTTPS \u8fdc\u7a0b URL\u3002\n4. \u6dfb\u52a0\u8fdc\u7a0b\u4ed3\u5e93\u5e76\u63a8\u9001\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\ngit branch -M main\ngit remote add origin &lt;https-url&gt;\ngit push -u origin main\n<\/code><\/pre>\n<p>\u9009\u9879 B\uff1aGitHub CLI\uff08<code>gh<\/code>\uff09<\/p>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\ngh auth login<br \/>\ngh repo create openclaw-workspace &#8211;private &#8211;source . &#8211;remote origin &#8211;push<\/p>\n<pre><code>\n\u9009\u9879 C\uff1aGitLab Web UI\n\n1. \u5728 GitLab \u4e0a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684**\u79c1\u6709**\u4ed3\u5e93\u3002\n2. \u4e0d\u8981\u4f7f\u7528 README \u521d\u59cb\u5316\uff08\u4ee5\u907f\u514d\u5408\u5e76\u51b2\u7a81\uff09\u3002\n3. \u590d\u5236 HTTPS \u8fdc\u7a0b URL\u3002\n4. \u6dfb\u52a0\u8fdc\u7a0b\u4ed3\u5e93\u5e76\u63a8\u9001\uff1a\n\n```bash  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\ngit branch -M main\ngit remote add origin &lt;https-url&gt;\ngit push -u origin main\n<\/code><\/pre>\n<h3>3\uff09\u6301\u7eed\u66f4\u65b0<\/h3>\n<p>&#8220;`bash  theme={&#8220;theme&#8221;:{&#8220;light&#8221;:&#8221;min-light&#8221;,&#8221;dark&#8221;:&#8221;min-dark&#8221;}}<br \/>\ngit status<br \/>\ngit add .<br \/>\ngit commit -m &#8220;Update memory&#8221;<br \/>\ngit push<\/p>\n<pre><code>\n## \u4e0d\u8981\u63d0\u4ea4\u5bc6\u94a5\n\n\u5373\u4f7f\u5728\u79c1\u6709\u4ed3\u5e93\u4e2d\uff0c\u4e5f\u5e94\u907f\u514d\u5728\u5de5\u4f5c\u533a\u4e2d\u5b58\u50a8\u5bc6\u94a5\uff1a\n\n* API \u5bc6\u94a5\u3001OAuth \u4ee4\u724c\u3001\u5bc6\u7801\u6216\u79c1\u6709\u51ed\u8bc1\u3002\n* `~\/.openclaw\/` \u4e0b\u7684\u4efb\u4f55\u5185\u5bb9\u3002\n* \u804a\u5929\u539f\u59cb\u8f6c\u50a8\u6216\u654f\u611f\u9644\u4ef6\u3002\n\n\u5982\u679c\u4f60\u5fc5\u987b\u5b58\u50a8\u654f\u611f\u5f15\u7528\uff0c\u8bf7\u4f7f\u7528\u5360\u4f4d\u7b26\uff0c\u5e76\u5c06\u771f\u5b9e\u5bc6\u94a5\u4fdd\u5b58\u5728\u5176\u4ed6\u5730\u65b9\uff08\u5bc6\u7801\u7ba1\u7406\u5668\u3001\u73af\u5883\u53d8\u91cf\u6216 `~\/.openclaw\/`\uff09\u3002\n\n\u5efa\u8bae\u7684 `.gitignore` \u8d77\u59cb\u5185\u5bb9\uff1a\n\n```gitignore  theme={&quot;theme&quot;:{&quot;light&quot;:&quot;min-light&quot;,&quot;dark&quot;:&quot;min-dark&quot;}}\n.DS_Store\n.env\n**\/*.key\n**\/*.pem\n**\/secrets*\n<\/code><\/pre>\n<h2>\u5c06\u5de5\u4f5c\u533a\u8fc1\u79fb\u5230\u65b0\u673a\u5668<\/h2>\n<ol>\n<li>\u5c06\u4ed3\u5e93\u514b\u9686\u5230\u6240\u9700\u8def\u5f84\uff08\u9ed8\u8ba4\u662f <code>~\/.openclaw\/workspace<\/code>\uff09\u3002<\/li>\n<li>\u5728 <code>~\/.openclaw\/openclaw.json<\/code> \u4e2d\u5c06 <code>agents.defaults.workspace<\/code> \u8bbe\u7f6e\u4e3a\u8be5\u8def\u5f84\u3002<\/li>\n<li>\u8fd0\u884c <code>openclaw setup --workspace &lt;path&gt;<\/code> \u4ee5\u690d\u5165\u4efb\u4f55\u7f3a\u5931\u7684\u6587\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u4f60\u9700\u8981\u4f1a\u8bdd\uff0c\u8bf7\u5c06\u65e7\u673a\u5668\u4e0a\u7684 <code>~\/.openclaw\/agents\/&lt;agentId&gt;\/sessions\/<\/code> \u5355\u72ec\u590d\u5236\u8fc7\u6765\u3002<\/li>\n<\/ol>\n<h2>\u9ad8\u7ea7\u8bf4\u660e<\/h2>\n<ul>\n<li>\u591a\u667a\u80fd\u4f53\u8def\u7531\u53ef\u4ee5\u4e3a\u4e0d\u540c\u667a\u80fd\u4f53\u4f7f\u7528\u4e0d\u540c\u7684\u5de5\u4f5c\u533a\u3002\u6709\u5173\u8def\u7531\u914d\u7f6e\uff0c\u8bf7\u53c2\u89c1<br \/>\n  <a href=\"\/channels\/channel-routing\">\u6e20\u9053\u8def\u7531<\/a>\u3002<\/li>\n<li>\u5982\u679c\u542f\u7528\u4e86 <code>agents.defaults.sandbox<\/code>\uff0c\u975e\u4e3b\u4f1a\u8bdd\u53ef\u4ee5\u5728 <code>agents.defaults.sandbox.workspaceRoot<\/code> \u4e0b\u4f7f\u7528\u6309\u4f1a\u8bdd\u5212\u5206\u7684\u6c99\u7bb1\u5de5\u4f5c\u533a\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u667a\u80fd\u4f53\u5de5\u4f5c\u533a \u5de5\u4f5c\u533a\u662f\u667a\u80fd\u4f53\u7684\u201c\u5bb6\u201d\u3002\u5b83\u662f\u6587\u4ef6\u5de5\u5177\u548c\u5de5\u4f5c\u533a\u4e0a\u4e0b\u6587\u6240\u4f7f\u7528\u7684\u552f\u4e00\u5de5\u4f5c\u76ee\u5f55\u3002\u8bf7\u5c06\u5176\u4fdd\u6301\u4e3a\u79c1\u6709\uff0c\u5e76\u5c06\u5176 [&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-87","post","type-post","status-publish","format-standard","hentry","category-docs"],"_links":{"self":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/87","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=87"}],"version-history":[{"count":1,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":382,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/posts\/87\/revisions\/382"}],"wp:attachment":[{"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pa.yingzhi8.cn\/index.php\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}