{"id":111704,"date":"2026-10-01T16:49:56","date_gmt":"2026-10-01T08:49:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111704.html"},"modified":"2026-10-01T16:49:56","modified_gmt":"2026-10-01T08:49:56","slug":"chatlab-cli-docker-%e9%83%a8%e7%bd%b2%e6%8c%87%e5%8d%97%ef%bc%9a%e6%95%b0%e6%8d%ae%e5%85%b1%e4%ba%ab%e3%80%81%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%80%89%e9%a1%b9%e4%b8%8e%e7%8e%af%e5%a2%83%e5%8f%98%e9%87%8f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111704.html","title":{"rendered":"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3"},"content":{"rendered":"<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011ChatLab<\/h3>\n<p class=\"gcb-project-desc\">Local-first chat history analyzer with AI. | \u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/cha\/ChatLab<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h3>\u5bfc\u8bfb<\/h3>\n<p>\u672c\u6587\u662f ChatLab \u672c\u5730\u4f18\u5148 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177\u5b98\u65b9 Docker \u90e8\u7f72\u6307\u5357\u7684\u5b8c\u6574\u6280\u672f\u6587\u6863&#xff08;\u6e90\u6587\u6863\u4f4d\u4e8e docs\/en\/usage\/docker.md&#xff09;\u3002ChatLab CLI \u4ee5\u591a\u67b6\u6784\u5bb9\u5668\u955c\u50cf\u5f62\u5f0f\u53d1\u5e03&#xff0c;\u652f\u6301 linux\/amd64 \u4e0e linux\/arm64&#xff0c;\u5b98\u65b9\u955c\u50cf\u540d\u4e3a ghcr.io\/chatlab\/chatlab-cli\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1&#xff1a;\u5982\u4f55\u7528 bind mount \u8ba9 Docker\u3001\u684c\u9762\u7aef\u4e0e\u672c\u673a CLI \u5171\u4eab ~\/.chatlab \u6570\u636e&#xff1b;\u5982\u4f55\u4f7f\u7528\u547d\u540d\u5377\u9694\u79bb\u670d\u52a1\u5668\u6570\u636e&#xff1b;\u5982\u4f55\u901a\u8fc7 clb web \u7684 &#8211;port\/&#8211;host\/&#8211;token\/&#8211;headless\/&#8211;require-auth \u7b49\u53c2\u6570\u5b9a\u5236\u5bb9\u5668\u670d\u52a1&#xff1b;\u5982\u4f55\u4f7f\u7528 Compose \u4e00\u952e\u90e8\u7f72\u5e76\u914d\u5408 Bearer Token \u9274\u6743&#xff1b;\u4ee5\u53ca CHATLAB_* \u73af\u5883\u53d8\u91cf\u7684\u4f18\u5148\u7ea7\u4e0e\u5b8c\u6574\u6620\u5c04\u5173\u7cfb\u3002<\/p>\n<h3>\u955c\u50cf\u7279\u6027&#xff1a;\u5f00\u7bb1\u5373\u7528\u7684\u8fd0\u884c\u65f6\u4e0e\u5206\u8bcd\u8bcd\u5178<\/h3>\n<p>\u5b98\u65b9\u955c\u50cf\u9488\u5bf9\u5bb9\u5668\u5316\u573a\u666f\u505a\u4e86\u4e09\u9879\u5173\u952e\u9884\u7f6e&#xff0c;\u907f\u514d\u9996\u6b21\u542f\u52a8\u65f6\u7684\u5927\u89c4\u6a21\u4e0b\u8f7d\u4e0e\u521d\u59cb\u5316\u5ef6\u8fdf&#xff1a;<\/p>\n<li>\u5185\u7f6e\u672c\u5730\u5d4c\u5165\u6a21\u578b\u8fd0\u884c\u65f6&#xff1a;\u955c\u50cf\u5df2\u5305\u542b\u672c\u5730\u8bed\u4e49\u7d22\u5f15\u6240\u9700\u8fd0\u884c\u65f6&#xff0c;\u542f\u7528\u672c\u5730\u8bed\u4e49\u7d22\u5f15\u65f6\u53ea\u4f1a\u4e0b\u8f7d\u6240\u9009\u6a21\u578b\u6587\u4ef6&#xff0c;\u800c\u4e0d\u4f1a\u5728\u5bb9\u5668\u542f\u52a8\u540e\u518d\u5b89\u88c5\u7ea6 370 MB \u7684 Node \u4f9d\u8d56\u3002<\/li>\n<li>\u9884\u7f6e\u7b80\u4f53\u4e2d\u6587\u5206\u8bcd\u8bcd\u5178&#xff1a;\u955c\u50cf\u5c06\u9ed8\u8ba4\u7b80\u4f53\u4e2d\u6587\u5206\u8bcd\u8bcd\u5178\u5b58\u653e\u4e8e \/opt\/chatlab\/nlp&#xff0c;\u5e76\u901a\u8fc7 CHATLAB_NLP_DICT_DIR \u73af\u5883\u53d8\u91cf\u6307\u5411\u8be5\u8def\u5f84&#xff0c;\u9996\u6b21\u542f\u52a8\u65e0\u9700\u4e0b\u8f7d\u8bcd\u5178\u3002\u5206\u8bcd\u7531 &#064;openchatlab\/node-runtime \u4e2d\u7684 jieba-nlp-provider.ts \u57fa\u4e8e &#064;node-rs\/jieba \u5b9e\u73b0&#xff0c;\u8bcd\u5178\u76ee\u5f55\u901a\u8fc7\u8be5\u73af\u5883\u53d8\u91cf\u6ce8\u5165\u8fd0\u884c\u65f6\u3002<\/li>\n<li>\u4fdd\u7559\u5df2\u6302\u8f7d\u8bcd\u5178&#xff1a;\u82e5\u6302\u8f7d\u7684 ChatLab \u76ee\u5f55\u4e2d\u5df2\u5b58\u5728\u8bcd\u5178&#xff0c;\u5219\u4ee5\u73b0\u6709\u8bcd\u5178\u4e3a\u51c6&#xff0c;\u4e0d\u4f1a\u88ab\u8986\u76d6\u3002<\/li>\n<h3>\u5feb\u901f\u5f00\u59cb<\/h3>\n<h4>\u65b9\u6848\u4e00&#xff1a;\u4e0e\u684c\u9762\u7aef\u3001\u672c\u673a CLI \u5171\u4eab ~\/.chatlab&#xff08;\u63a8\u8350&#xff09;<\/h4>\n<p>ChatLab \u684c\u9762\u7aef\u3001CLI \u4e0e Docker \u5bb9\u5668\u90fd\u53ef\u4ee5\u4f7f\u7528\u5bbf\u4e3b\u673a\u4e0a\u7684 ~\/.chatlab \u76ee\u5f55\u3002\u5728\u672c\u5730\u8fd0\u884c Docker \u65f6&#xff0c;\u76f4\u63a5\u5c06\u8be5\u76ee\u5f55\u4ee5 bind mount \u65b9\u5f0f\u6302\u8f7d\u8fdb\u5bb9\u5668\u5373\u53ef\u5b9e\u73b0\u53cc\u5411\u6570\u636e\u5171\u4eab\u3002<\/p>\n<p>macOS \/ Linux&#xff1a;<\/p>\n<p>mkdir -p &#034;$HOME\/.chatlab&#034; &#034;$HOME\/Downloads&#034;<\/p>\n<p>docker run &#8211;name chatlab \\\\<br \/>\n  -p 127.0.0.1:3110:3110 \\\\<br \/>\n  &#8211;user &#034;$(id -u):$(id -g)&#034; \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/.chatlab&#034;,target&#061;\/home\/node\/.chatlab \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/Downloads&#034;,target&#061;\/home\/node\/Downloads \\\\<br \/>\n  -e HOME&#061;\/home\/node \\\\<br \/>\n  -e CHATLAB_DATA_DIR&#061;\/home\/node\/.chatlab\/data \\\\<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest<\/p>\n<p>Windows PowerShell&#xff1a;<\/p>\n<p>New-Item -ItemType Directory -Force &#034;$HOME\/.chatlab&#034; | Out-Null<\/p>\n<p>docker run &#8211;name chatlab &#096;<br \/>\n  -p 127.0.0.1:3110:3110 &#096;<br \/>\n  &#8211;mount &#034;type&#061;bind,source&#061;$HOME\/.chatlab,target&#061;\/home\/node\/.chatlab&#034; &#096;<br \/>\n  -e CHATLAB_DATA_DIR&#061;\/home\/node\/.chatlab\/data &#096;<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest<\/p>\n<p>\u5bb9\u5668\u542f\u52a8\u540e&#xff0c;\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 http:\/\/127.0.0.1:3110\/ \u5373\u53ef\u8bbf\u95ee Web UI\u3002<\/p>\n<h5>\u51e0\u4e2a\u5173\u952e\u53c2\u6570\u7684\u539f\u7406\u89e3\u6790<\/h5>\n<ul>\n<li>&#8211;user &#034;$(id -u):$(id -g)&#034;&#xff1a;\u955c\u50cf\u9ed8\u8ba4\u4ee5\u975e\u7279\u6743 node \u7528\u6237&#xff08;UID\/GID 1000&#xff09;\u8fd0\u884c\u3002\u5728 macOS\/Linux \u4e0a&#xff0c;&#8211;user \u5c06\u5bb9\u5668\u8fdb\u7a0b\u7684\u7528\u6237\u6620\u5c04\u4e3a bind mount \u5bbf\u4e3b\u76ee\u5f55\u7684\u5c5e\u4e3b&#xff0c;\u800c HOME \u4fdd\u6301 ChatLab \u7cfb\u7edf\u76ee\u5f55\u4f4d\u4e8e \/home\/node\/.chatlab\u3002\u5f53\u5bbf\u4e3b\u673a\u7528\u6237\u7684 UID\/GID \u4e0d\u662f 1000 \u65f6&#xff08;\u7edd\u5927\u591a\u6570 Linux \u4e3b\u673a\u90fd\u5982\u6b64&#xff09;&#xff0c;\u8fd9\u4e00\u53c2\u6570\u662f\u5fc5\u9700\u7684&#xff1b;\u5426\u5219\u5bb9\u5668\u5185 node \u7528\u6237\u65e0\u6cd5\u8bfb\u5199\u6302\u8f7d\u8fdb\u6765\u7684 ~\/.chatlab\u3002<\/li>\n<li>\u6302\u8f7d\u6620\u5c04&#xff1a;\u5bbf\u4e3b\u673a\u7684 ~\/.chatlab \u6620\u5c04\u4e3a\u5bb9\u5668\u5185 \/home\/node\/.chatlab&#xff0c;\u5bbf\u4e3b\u673a\u7684 ~\/Downloads \u6620\u5c04\u4e3a\u5bb9\u5668\u5185\u53ef\u5199\u7684 Downloads \u76ee\u5f55&#xff08;\u7528\u4e8e\u5bfc\u51fa\u4e0e\u622a\u56fe\u8f93\u51fa&#xff09;\u3002<\/li>\n<li>CHATLAB_DATA_DIR&#061;\/home\/node\/.chatlab\/data&#xff1a;\u8be5\u53d8\u91cf\u5c06\u9ed8\u8ba4\u7528\u6237\u6570\u636e\u56fa\u5b9a\u5230\u5bb9\u5668\u53ef\u8bbf\u95ee\u7684 \/home\/node\/.chatlab\/data&#xff0c;\u4ece\u800c\u4fdd\u8bc1\u5bbf\u4e3b config.toml \u4e2d\u8bb0\u5f55\u7684\u7edd\u5bf9\u8def\u5f84\u5728\u5bb9\u5668\u5185\u4e0d\u4f1a\u5931\u6548\u3002\u8fd9\u6b63\u662f CHATLAB_DATA_DIR \u5728\u914d\u7f6e\u4f18\u5148\u7ea7\u4e2d\u6700\u9ad8&#xff08;\u89c1\u4e0b\u6587&#034;\u73af\u5883\u53d8\u91cf&#034;\u5c0f\u8282&#xff09;\u7684\u5b9e\u9645\u5e94\u7528\u3002<\/li>\n<\/ul>\n<h5>\u53cc\u5411\u514d\u62f7\u8d1d\u7684\u6570\u636e\u5171\u4eab<\/h5>\n<p>\u91c7\u7528\u6b64\u65b9\u6848\u540e&#xff0c;\u4e24\u4e2a\u65b9\u5411\u90fd\u4e0d\u9700\u8981\u624b\u5de5\u62f7\u8d1d\u6570\u636e&#xff1a;<\/p>\n<ul>\n<li>\u5148\u7528 Docker&#xff0c;\u518d\u5b89\u88c5\u684c\u9762\u7aef\u6216\u672c\u673a CLI&#xff1a;\u684c\u9762\u7aef\u4e0e CLI \u7ee7\u7eed\u8bfb\u53d6\u5bbf\u4e3b ~\/.chatlab&#xff1b;<\/li>\n<li>\u5148\u7528\u684c\u9762\u7aef\u6216\u672c\u673a CLI&#xff0c;\u518d\u8fd0\u884c Docker&#xff1a;Docker \u76f4\u63a5\u8bfb\u53d6\u5df2\u6709\u7684\u914d\u7f6e\u3001\u804a\u5929\u6570\u636e\u5e93\u4e0e AI \u6570\u636e\u3002<\/li>\n<\/ul>\n<h4>\u65b9\u6848\u4e8c&#xff1a;\u4ec5\u4f7f\u7528 Docker \u5185\u90e8\u6570\u636e&#xff08;\u547d\u540d\u5377&#xff09;<\/h4>\n<p>\u9002\u7528\u4e8e\u670d\u52a1\u5668\u90e8\u7f72&#xff0c;\u6216\u5e0c\u671b\u6570\u636e\u4e0e\u5bbf\u4e3b\u4e0a\u7684 ChatLab \u5b8c\u5168\u9694\u79bb\u7684\u573a\u666f&#xff1a;<\/p>\n<p>docker run &#8211;name chatlab \\\\<br \/>\n  -p 127.0.0.1:3110:3110 \\\\<br \/>\n  -v chatlab-data:\/home\/node\/.chatlab \\\\<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest<\/p>\n<p>\u8be5\u547d\u540d\u5377\u5728 Docker \u5185\u90e8\u4fdd\u7559\u7cfb\u7edf\u72b6\u6001\u4e0e\u7528\u6237\u6570\u636e&#xff0c;\u684c\u9762\u7aef\u4e0e\u672c\u673a CLI \u4e0d\u4f1a\u81ea\u52a8\u770b\u5230\u8fd9\u4e9b\u6570\u636e\u3002\u66ff\u6362\u6216\u5347\u7ea7\u5bb9\u5668\u65f6\u8bf7\u4fdd\u7559 chatlab-data \u5377&#xff0c;\u5426\u5219\u6570\u636e\u4f1a\u4e22\u5931\u3002<\/p>\n<h4>\u65b9\u6848\u4e09&#xff1a;\u4f7f\u7528\u81ea\u5b9a\u4e49\u7528\u6237\u6570\u636e\u76ee\u5f55<\/h4>\n<p>\u82e5\u684c\u9762\u7aef\u6216 CLI \u5c06\u804a\u5929\u6570\u636e\u5e93\u5b58\u653e\u5728 ~\/.chatlab \u4e4b\u5916&#xff0c;\u53ef\u5c06\u8be5\u76ee\u5f55\u5355\u72ec\u6302\u8f7d\u5e76\u628a\u73af\u5883\u53d8\u91cf\u6307\u5411\u5176\u5bb9\u5668\u5185\u8def\u5f84&#xff1a;<\/p>\n<p>docker run &#8211;name chatlab \\\\<br \/>\n  -p 127.0.0.1:3110:3110 \\\\<br \/>\n  &#8211;user &#034;$(id -u):$(id -g)&#034; \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/.chatlab&#034;,target&#061;\/home\/node\/.chatlab \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/Downloads&#034;,target&#061;\/home\/node\/Downloads \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;\/absolute\/path\/to\/chatlab-data&#034;,target&#061;\/chatlab-data \\\\<br \/>\n  -e HOME&#061;\/home\/node \\\\<br \/>\n  -e CHATLAB_DATA_DIR&#061;\/chatlab-data \\\\<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest<\/p>\n<p>\u5c06 \/absolute\/path\/to\/chatlab-data \u66ff\u6362\u4e3a\u5bbf\u4e3b\u673a\u4e0a\u5b9e\u9645\u7684\u7528\u6237\u6570\u636e\u76ee\u5f55\u3002\u7cfb\u7edf\u6570\u636e\u4ecd\u901a\u8fc7 ~\/.chatlab \u6302\u8f7d\u5171\u4eab\u3002\u7531\u4e8e CHATLAB_DATA_DIR \u62e5\u6709\u6700\u9ad8\u4f18\u5148\u7ea7&#xff0c;\u5e94\u901a\u8fc7\u6302\u8f7d\u4e0e\u73af\u5883\u53d8\u91cf\u6765\u66f4\u6539 Docker \u7684\u6570\u636e\u76ee\u5f55&#xff0c;\u800c\u4e0d\u662f\u5728 Web \u7684 Storage \u8bbe\u7f6e\u9875\u9762\u4e2d\u4fee\u6539&#xff08;\u6e90\u7801\u4e2d canSetDataDir: !process.env.CHATLAB_DATA_DIR \u7684\u903b\u8f91\u8868\u660e&#xff0c;\u4e00\u65e6\u8bbe\u7f6e\u4e86\u8be5\u73af\u5883\u53d8\u91cf&#xff0c;Web \u754c\u9762\u4fbf\u4e0d\u5141\u8bb8\u518d\u4fee\u6539\u6570\u636e\u76ee\u5f55&#xff0c;\u89c1 apps\/cli\/src\/http\/routes\/web\/index.ts&#xff09;\u3002<\/p>\n<h5>\u7248\u672c\u517c\u5bb9\u4e0e\u6570\u636e\u5b89\u5168<\/h5>\n<p>\u540c\u7248\u672c\u7684\u684c\u9762\u7aef\u3001CLI \u4e0e Docker \u53ef\u4ee5\u5171\u4eab\u6570\u636e\u5e93\u3002\u5728\u66f4\u6539\u6570\u636e\u76ee\u5f55\u3001\u6267\u884c\u8fc1\u79fb\u6216\u5728\u4e0d\u540c\u7248\u672c\u95f4\u5207\u6362\u4e4b\u524d&#xff0c;\u8bf7\u5148\u505c\u6b62\u5176\u4ed6 ChatLab \u5b9e\u4f8b\u3002\u82e5\u65e7\u7248\u672c\u65e0\u6cd5\u5b89\u5168\u8bfb\u53d6\u5df2\u5347\u7ea7\u7684\u6570\u636e\u76ee\u5f55&#xff0c;ChatLab \u7684\u517c\u5bb9\u6027\u95e8\u7981\u4f1a\u963b\u6b62\u5176\u542f\u52a8\u2014\u2014\u8fd9\u6b63\u662f data-dir-compat.ts \u4e2d assertDataDirCompatible \u7684\u5b9e\u73b0\u903b\u8f91&#xff1a;\u6570\u636e\u76ee\u5f55\u5143\u4fe1\u606f\u4e2d\u8bb0\u5f55\u4e86 minRuntimeVersion&#xff0c;\u5f53\u524d\u8fd0\u884c\u65f6\u4f4e\u4e8e\u8be5\u7248\u672c\u65f6\u629b\u51fa DATA_DIR_REQUIRES_NEWER_RUNTIME \u9519\u8bef\u5e76\u963b\u6b62\u542f\u52a8&#xff08;data-dir-compat.ts#L107-L131&#xff09;\u3002<\/p>\n<h3>\u670d\u52a1\u5668\u914d\u7f6e\u9009\u9879<\/h3>\n<h4>\u9ed8\u8ba4\u5bb9\u5668\u547d\u4ee4<\/h4>\n<p>clb web &#8211;no-open &#8211;host 0.0.0.0<\/p>\n<p>clb web \u7684\u9009\u9879&#xff08;\u6309 CLI \u58f0\u660e\u987a\u5e8f&#xff0c;\u89c1 apps\/cli\/src\/cli.ts&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u9009\u9879\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>&#8211;port &lt;port&gt;<\/td>\n<td>\u670d\u52a1\u5668\u7aef\u53e3&#xff0c;\u9ed8\u8ba4 3110\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;host &lt;host&gt;<\/td>\n<td>\u76d1\u542c\u5730\u5740&#xff0c;\u5bb9\u5668\u5916\u9ed8\u8ba4 127.0.0.1\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;token &lt;token&gt;<\/td>\n<td>\u81ea\u5b9a\u4e49 Bearer Token&#xff1b;\u7701\u7565\u65f6 ChatLab \u4f1a\u8bfb\u53d6\u5df2\u6709\u914d\u7f6e\u6216\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;headless<\/td>\n<td>\u4ec5\u542f\u52a8 API&#xff0c;\u4e0d\u63d0\u4f9b Web UI\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;require-auth<\/td>\n<td>\u5bf9 Web UI \u8def\u7531\u4e0e API \u8def\u7531\u90fd\u8981\u6c42 Bearer \u9274\u6743\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;no-open<\/td>\n<td>\u4e0d\u81ea\u52a8\u6253\u5f00\u6d4f\u89c8\u5668\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;daemon<\/td>\n<td>\u5b89\u88c5\u4e3a\u5e38\u9a7b\u7684 macOS\/Linux \u7cfb\u7edf\u670d\u52a1&#xff0c;\u4e0d\u9002\u7528\u4e8e\u5bb9\u5668\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>\u8ffd\u52a0\u670d\u52a1\u5668\u9009\u9879<\/h4>\n<p>Docker \u547d\u4ee4\u884c\u53c2\u6570\u4f1a\u6574\u4f53\u66ff\u6362\u9ed8\u8ba4\u5bb9\u5668\u547d\u4ee4\u3002\u56e0\u6b64\u6dfb\u52a0\u670d\u52a1\u5668\u9009\u9879\u65f6&#xff0c;\u9700\u8981\u91cd\u590d start\u3001&#8211;no-open \u4e0e &#8211;host 0.0.0.0&#xff1a;<\/p>\n<p>docker run &#8211;rm \\\\<br \/>\n  -p 127.0.0.1:8080:8080 \\\\<br \/>\n  &#8211;user &#034;$(id -u):$(id -g)&#034; \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/.chatlab&#034;,target&#061;\/home\/node\/.chatlab \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/Downloads&#034;,target&#061;\/home\/node\/Downloads \\\\<br \/>\n  -e HOME&#061;\/home\/node \\\\<br \/>\n  -e CHATLAB_DATA_DIR&#061;\/home\/node\/.chatlab\/data \\\\<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest \\\\<br \/>\n  start &#8211;port 8080 &#8211;host 0.0.0.0 &#8211;headless &#8211;no-open<\/p>\n<p>\u793a\u4f8b\u4e2d\u628a\u7aef\u53e3\u6539\u4e3a 8080 \u5e76\u4ee5 &#8211;headless \u542f\u52a8\u7eaf API \u6a21\u5f0f\u3002start \u662f web \u547d\u4ee4\u7684\u522b\u540d&#xff08;\u6e90\u7801\u4e2d program.command(&#039;web&#039;).alias(&#039;start&#039;)&#xff09;&#xff0c;\u4e24\u8005\u7b49\u4ef7\u3002<\/p>\n<h4>\u76f4\u63a5\u8fd0\u884c\u5176\u4ed6 CLI \u5b50\u547d\u4ee4<\/h4>\n<p>Docker \u955c\u50cf\u540c\u6837\u53ef\u4ee5\u6267\u884c CLI \u7684\u5176\u4ed6\u547d\u4ee4&#xff1a;<\/p>\n<p>docker run &#8211;rm ghcr.io\/chatlab\/chatlab-cli:latest &#8211;version<br \/>\ndocker run &#8211;rm ghcr.io\/chatlab\/chatlab-cli:latest formats<br \/>\ndocker run &#8211;rm \\\\<br \/>\n  &#8211;user &#034;$(id -u):$(id -g)&#034; \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/.chatlab&#034;,target&#061;\/home\/node\/.chatlab \\\\<br \/>\n  &#8211;mount type&#061;bind,source&#061;&#034;$HOME\/Downloads&#034;,target&#061;\/home\/node\/Downloads \\\\<br \/>\n  -e HOME&#061;\/home\/node \\\\<br \/>\n  -e CHATLAB_DATA_DIR&#061;\/home\/node\/.chatlab\/data \\\\<br \/>\n  ghcr.io\/chatlab\/chatlab-cli:latest sessions list &#8211;format json<\/p>\n<p>\u6ce8\u610f&#xff1a;\u67e5\u8be2\u578b\u547d\u4ee4&#xff08;\u5982 sessions list&#xff09;\u9700\u8981\u8bfb\u5199\u6570\u636e\u76ee\u5f55&#xff0c;\u5fc5\u987b\u643a\u5e26\u4e0e\u542f\u52a8\u670d\u52a1\u5668\u65f6\u4e00\u81f4\u7684\u6302\u8f7d\u4e0e CHATLAB_DATA_DIR \u914d\u7f6e\u3002<\/p>\n<h3>\u73af\u5883\u53d8\u91cf<\/h3>\n<h4>\u914d\u7f6e\u4f18\u5148\u7ea7<\/h4>\n<p>\u5bf9\u4e8e\u914d\u7f6e\u5b57\u6bb5&#xff0c;ChatLab \u6309\u4ee5\u4e0b\u987a\u5e8f\u53d6\u503c&#xff08;\u4ece\u9ad8\u5230\u4f4e&#xff09;&#xff1a;<\/p>\n<li>CHATLAB_* \u73af\u5883\u53d8\u91cf<\/li>\n<li>~\/.chatlab\/config.toml \u6216 ~\/.chatlab\/config.json<\/li>\n<li>\u5185\u7f6e\u9ed8\u8ba4\u503c<\/li>\n<p>\u8fd9\u4e00\u4f18\u5148\u7ea7\u5728 packages\/config\/src\/loader.ts \u4e2d\u5b9e\u73b0&#xff1a;loadEnvConfig \u5c06\u73af\u5883\u53d8\u91cf\u6620\u5c04\u5230\u914d\u7f6e\u8282\u5b57\u6bb5\u540e\u4e0e\u914d\u7f6e\u6587\u4ef6\u3001\u9ed8\u8ba4\u503c\u505a\u6df1\u5ea6\u5408\u5e76&#xff08;loader.ts#L85-L108&#xff09;&#xff0c;\u73af\u5883\u53d8\u91cf\u8986\u76d6\u6587\u4ef6\u914d\u7f6e&#xff0c;\u6587\u4ef6\u914d\u7f6e\u8986\u76d6\u5185\u7f6e\u9ed8\u8ba4\u503c\u3002<\/p>\n<h4>\u914d\u7f6e\u7c7b\u73af\u5883\u53d8\u91cf<\/h4>\n<p>\u4ee5\u4e0b\u53d8\u91cf\u5bf9\u5e94\u5177\u4f53\u914d\u7f6e\u5b57\u6bb5&#xff08;\u6309\u6e90\u7801\u58f0\u660e\u987a\u5e8f&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u53d8\u91cf\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>CHATLAB_DATA_DIR<\/td>\n<td>\u8986\u76d6 ChatLab \u7528\u6237\u6570\u636e\u76ee\u5f55\u3002\u8bbe\u7f6e\u65f6\u8bf7\u5c06\u6240\u9009\u76ee\u5f55\u5355\u72ec\u6302\u8f7d\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_API_PORT<\/td>\n<td>\u8bbe\u7f6e api.port\u3002start \u547d\u4ee4\u81ea\u5e26\u9ed8\u8ba4\u7aef\u53e3&#xff0c;\u914d\u7f6e\u5bb9\u5668\u670d\u52a1\u5668\u8bf7\u7528 &#8211;port\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_API_HOST<\/td>\n<td>\u8bbe\u7f6e api.host\u3002start \u547d\u4ee4\u81ea\u5e26\u9ed8\u8ba4\u76d1\u542c\u5730\u5740&#xff0c;\u914d\u7f6e\u5bb9\u5668\u670d\u52a1\u5668\u8bf7\u7528 &#8211;host\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_LLM_PROVIDER<\/td>\n<td>\u8bbe\u7f6e llm.provider\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_LLM_MODEL<\/td>\n<td>\u8bbe\u7f6e llm.model\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_LLM_BASE_URL<\/td>\n<td>\u8bbe\u7f6e llm.base_url\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_LOCALE_LANG<\/td>\n<td>\u8bbe\u7f6e locale.lang\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_CLI_ALLOW_RAW<\/td>\n<td>\u8bbe\u4e3a 1 \u6216 true \u4ee5\u5141\u8bb8\u672a\u505a\u9690\u79c1\u5904\u7406\u7684 &#8211;raw \u67e5\u8be2\u8f93\u51fa\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6e90\u7801\u4e2d\u5b8c\u6574\u7684\u6620\u5c04\u5173\u7cfb\u4e3a&#xff08;loader.ts#L88-L97&#xff09;&#xff1a;CHATLAB_DATA_DIR \u2192 data.user_data_dir\u3001CHATLAB_API_PORT \u2192 api.port&#xff08;\u7ecf parseInt \u8f6c\u6362&#xff09;\u3001CHATLAB_API_HOST \u2192 api.host\u3001CHATLAB_LLM_PROVIDER \u2192 llm.provider\u3001CHATLAB_LLM_MODEL \u2192 llm.model\u3001CHATLAB_LLM_BASE_URL \u2192 llm.base_url\u3001CHATLAB_LOCALE_LANG \u2192 locale.lang\u3001CHATLAB_CLI_ALLOW_RAW \u2192 cli.allow_raw&#xff08;&#039;1&#039; \u6216 &#039;true&#039; \u542f\u7528&#xff09;\u3002<\/p>\n<h4>\u8fd0\u884c\u65f6\u7c7b\u73af\u5883\u53d8\u91cf<\/h4>\n<p>ChatLab \u8fd8\u8bfb\u53d6\u4ee5\u4e0b\u8fd0\u884c\u65f6\u53d8\u91cf&#xff1a;<\/p>\n<table>\n<tr>\u53d8\u91cf\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>CHATLAB_ALLOW_INCOMPATIBLE_DATA_DIR<\/td>\n<td>\u8bbe\u4e3a 1 \u7ed5\u8fc7\u6570\u636e\u76ee\u5f55\u7684\u6700\u4f4e\u8fd0\u884c\u65f6\u7248\u672c\u68c0\u67e5\u3002\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u635f\u574f&#xff0c;\u4ec5\u7528\u4e8e\u7d27\u6025\u6062\u590d\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_DISABLE_NATIVE_PERF<\/td>\n<td>\u8bbe\u4e3a 1 \u7981\u7528\u539f\u751f\u89e3\u6790\u5668\u52a0\u901f\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_LOG_LEVEL<\/td>\n<td>\u8bbe\u7f6e\u5e94\u7528\u65e5\u5fd7\u9608\u503c\u4e3a DEBUG\u3001INFO\u3001WARN \u6216 ERROR&#xff0c;\u9ed8\u8ba4 INFO\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_SKIP_UPDATE_CHECK<\/td>\n<td>\u8bbe\u4e3a\u4efb\u610f\u975e\u7a7a\u503c\u4ee5\u7981\u7528 CLI \u66f4\u65b0\u68c0\u67e5\u3002<\/td>\n<\/tr>\n<tr>\n<td>CHATLAB_TEMP_ROOT<\/td>\n<td>\u8986\u76d6\u4e34\u65f6\u5de5\u4f5c\u533a\u6839\u76ee\u5f55\u3002<\/td>\n<\/tr>\n<tr>\n<td>LANG<\/td>\n<td>\u9009\u62e9 CLI \u67e5\u8be2\u9884\u5904\u7406\u4f7f\u7528\u7684\u9ed8\u8ba4\u8bed\u8a00\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4e2d CHATLAB_ALLOW_INCOMPATIBLE_DATA_DIR \u7684\u7ed5\u8fc7\u8def\u5f84\u53ef\u5728 data-dir-compat.ts#L109-L118 \u4e2d\u770b\u5230&#xff1a;\u8bbe\u7f6e\u540e\u4ec5\u6253\u5370\u8b66\u544a\u5e76\u653e\u884c&#xff0c;\u5426\u5219\u629b\u51fa\u7248\u672c\u95e8\u7981\u9519\u8bef\u3002CHATLAB_SKIP_UPDATE_CHECK \u5728 update-checker.ts \u4e2d\u751f\u6548&#xff0c;\u8fd4\u56de true \u5373\u8df3\u8fc7\u66f4\u65b0\u68c0\u67e5\u3002<\/p>\n<h4>\u65e0\u73af\u5883\u53d8\u91cf\u522b\u540d\u7684\u9009\u9879<\/h4>\n<p>Bearer Token\u3001headless \u6a21\u5f0f\u3001Web UI \u9274\u6743\u4e0e\u6d4f\u89c8\u5668\u6253\u5f00\u884c\u4e3a&#xff0c;\u5747\u901a\u8fc7\u5bf9\u5e94\u7684\u547d\u4ee4\u884c\u9009\u9879\u914d\u7f6e&#xff1b;ChatLab \u4e0d\u4e3a\u8fd9\u4e9b\u9009\u9879\u63d0\u4f9b\u73af\u5883\u53d8\u91cf\u522b\u540d\u3002\u56e0\u6b64\u5728\u5bb9\u5668\u4e2d\u8bf7\u59cb\u7ec8\u4f7f\u7528 &#8211;token\u3001&#8211;headless\u3001&#8211;require-auth\u3001&#8211;no-open \u6765\u914d\u7f6e\u3002<\/p>\n<h3>Docker Compose \u90e8\u7f72<\/h3>\n<h4>\u521b\u5efa .env \u6587\u4ef6<\/h4>\n<p>\u5728 Compose \u6587\u4ef6\u65c1\u521b\u5efa\u4e0d\u53d7\u7248\u672c\u63a7\u5236\u7684 .env&#xff1a;<\/p>\n<p>CHATLAB_HOST_DIR&#061;\/absolute\/path\/to\/.chatlab<br \/>\nCHATLAB_DOWNLOADS_DIR&#061;\/absolute\/path\/to\/Downloads<br \/>\nCHATLAB_UID&#061;1000<br \/>\nCHATLAB_GID&#061;1000<br \/>\nCHATLAB_TOKEN&#061;replace-with-a-secret-token<\/p>\n<ul>\n<li>CHATLAB_HOST_DIR&#xff1a;\u66ff\u6362\u4e3a\u5bbf\u4e3b\u673a ~\/.chatlab \u7684\u7edd\u5bf9\u8def\u5f84&#xff1b;<\/li>\n<li>CHATLAB_DOWNLOADS_DIR&#xff1a;\u8bbe\u4e3a\u5df2\u5b58\u5728\u4e14\u53ef\u5199\u7684\u76ee\u5f55&#xff0c;\u7528\u4e8e\u5bfc\u51fa\u4e0e\u622a\u56fe&#xff0c;\u5982\u5bbf\u4e3b\u7684 ~\/Downloads&#xff1b;<\/li>\n<li>macOS\/Linux \u4e0a&#xff0c;CHATLAB_UID\/CHATLAB_GID \u66ff\u6362\u4e3a id -u \u4e0e id -g \u7684\u8f93\u51fa&#xff1b;Windows Docker Desktop \u7528\u6237\u4fdd\u7559 1000 \u5373\u53ef\u3002<\/li>\n<\/ul>\n<h4>\u7f16\u5199 Compose \u6587\u4ef6<\/h4>\n<p>services:<br \/>\n  chatlab:<br \/>\n    image: ghcr.io\/chatlab\/chatlab-cli:latest<br \/>\n    restart: unless-stopped<br \/>\n    user: &#034;${CHATLAB_UID:-1000}:${CHATLAB_GID:-1000}&#034;<br \/>\n    ports:<br \/>\n      &#8211; &#034;127.0.0.1:3110:3110&#034;<br \/>\n    environment:<br \/>\n      HOME: \/home\/node<br \/>\n      CHATLAB_DATA_DIR: \/home\/node\/.chatlab\/data<br \/>\n    volumes:<br \/>\n      &#8211; &#034;${CHATLAB_HOST_DIR:?set CHATLAB_HOST_DIR in the Compose environment}:\/home\/node\/.chatlab&#034;<br \/>\n      &#8211; &#034;${CHATLAB_DOWNLOADS_DIR:?set CHATLAB_DOWNLOADS_DIR in the Compose environment}:\/home\/node\/Downloads&#034;<br \/>\n    command:<br \/>\n      &#8211; start<br \/>\n      &#8211; &#8211;port<br \/>\n      &#8211; &#034;3110&#034;<br \/>\n      &#8211; &#8211;host<br \/>\n      &#8211; 0.0.0.0<br \/>\n      &#8211; &#8211;token<br \/>\n      &#8211; ${CHATLAB_TOKEN:?set CHATLAB_TOKEN in the Compose environment}<br \/>\n      &#8211; &#8211;require-auth<br \/>\n      &#8211; &#8211;no-open<\/p>\n<p>\u8981\u70b9\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>CHATLAB_TOKEN \u7531 Docker Compose \u63d2\u503c\u540e\u4f5c\u4e3a &#8211;token \u7684\u503c\u4f20\u7ed9 ChatLab&#xff0c;\u5b83\u4e0d\u662f ChatLab \u73af\u5883\u53d8\u91cf\u3002\u8bf7\u5c06\u5176\u4fdd\u5b58\u5728\u5bc6\u94a5\u5b58\u50a8\u6216\u4e0d\u53d7\u7248\u672c\u63a7\u5236\u7684 .env \u6587\u4ef6\u4e2d&#xff1b;<\/li>\n<li>\ud83d\ude15 \u8bed\u6cd5\u7528\u4e8e\u5f3a\u5236\u6821\u9a8c&#xff1a;\u672a\u8bbe\u7f6e\u5bf9\u5e94\u53d8\u91cf\u65f6 Compose \u4f1a\u76f4\u63a5\u62a5\u9519\u9000\u51fa&#xff0c;\u907f\u514d\u56e0\u6f0f\u914d\u800c\u9759\u9ed8\u4f7f\u7528\u4e0d\u5b89\u5168\u9ed8\u8ba4\u503c&#xff1b;<\/li>\n<li>&#8211;require-auth \u786e\u4fdd Web UI \u4e0e API \u8def\u7531\u90fd\u9700\u8981 Bearer \u9274\u6743&#xff0c;\u914d\u5408 &#8211;no-open \u9002\u5408\u65e0\u5934\u670d\u52a1\u5668\u573a\u666f&#xff1b;<\/li>\n<li>\u82e5\u9700\u8981\u5b8c\u5168\u9694\u79bb\u7684\u670d\u52a1\u5668\u6570\u636e&#xff0c;\u8bf7\u6539\u7528\u4e0a\u6587&#034;\u65b9\u6848\u4e8c&#034;\u4e2d\u7684\u547d\u540d\u5377\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<h3>\u591a\u67b6\u6784\u955c\u50cf\u4e0e\u6765\u6e90\u9a8c\u8bc1<\/h3>\n<p>Docker \u4f1a\u81ea\u52a8\u9009\u62e9\u4e0e\u5bbf\u4e3b\u67b6\u6784\u5339\u914d\u7684\u955c\u50cf\u3002\u5982\u9700\u663e\u5f0f\u6307\u5b9a\u5e73\u53f0&#xff1a;<\/p>\n<p>docker pull &#8211;platform linux\/amd64 ghcr.io\/chatlab\/chatlab-cli:latest<br \/>\ndocker pull &#8211;platform linux\/arm64 ghcr.io\/chatlab\/chatlab-cli:latest<\/p>\n<p>\u955c\u50cf\u7d22\u5f15\u4e2d\u8fd8\u5305\u542b provenance \u6765\u6e90\u8bc1\u660e&#xff08;provenance attestations&#xff09;\u3002\u6ce8\u518c\u8868\u754c\u9762\u53ef\u80fd\u5c06\u8fd9\u4e9b\u5143\u6570\u636e\u6e05\u5355\u663e\u793a\u4e3a unknown\/unknown&#xff0c;\u5b83\u4eec\u4e0d\u662f\u53ef\u8fd0\u884c\u5e73\u53f0&#xff0c;\u65e0\u9700\u5355\u72ec\u62c9\u53d6\u3002<\/p>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>Docker \u90e8\u7f72\u7684\u6838\u5fc3\u51b3\u7b56\u5728\u4e8e\u6570\u636e\u8def\u5f84&#xff1a;\u5171\u4eab ~\/.chatlab \u5b9e\u73b0\u684c\u9762\u7aef\/CLI\/\u5bb9\u5668\u4e09\u7aef\u4e92\u901a&#xff0c;\u547d\u540d\u5377\u5b9e\u73b0\u670d\u52a1\u5668\u6570\u636e\u9694\u79bb&#xff0c;\u81ea\u5b9a\u4e49 CHATLAB_DATA_DIR \u9002\u914d\u975e\u9ed8\u8ba4\u6570\u636e\u5e03\u5c40\u3002\u642d\u914d start &#8211;port &#8211;host &#8211;headless &#8211;require-auth &#8211;no-open \u4e0e CHATLAB_* \u73af\u5883\u53d8\u91cf&#xff0c;\u5373\u53ef\u5728\u5bb9\u5668\u4e2d\u590d\u523b\u684c\u9762\u7aef\u5b8c\u5168\u4e00\u81f4\u7684\u914d\u7f6e\u3001AI \u6570\u636e\u4e0e\u67e5\u8be2\u80fd\u529b\u3002\u5b98\u65b9\u955c\u50cf\u5185\u7f6e\u7684\u672c\u5730\u5d4c\u5165\u6a21\u578b\u8fd0\u884c\u65f6\u4e0e\u7b80\u4f53\u4e2d\u6587\u5206\u8bcd\u8bcd\u5178&#xff0c;\u5219\u4fdd\u8bc1\u4e86\u5bb9\u5668\u542f\u52a8\u540e\u5373\u53ef\u76f4\u63a5\u4f7f\u7528\u672c\u5730\u8bed\u4e49\u7d22\u5f15&#xff0c;\u65e0\u9700\u518d\u5b89\u88c5\u6570\u767e MB \u4f9d\u8d56\u3002<\/p>\n<h3>\u5ef6\u4f38\u9605\u8bfb<\/h3>\n<ul>\n<li>\u547d\u4ee4\u884c\u67e5\u8be2\u4e0e AI \u4f7f\u7528&#xff1a;docs\/en\/usage\/cli-query.md\u3001docs\/en\/ai\/cli-query.md<\/li>\n<li>\u914d\u7f6e\u4e0e\u5bfc\u5165\u5bfc\u51fa&#xff1a;docs\/en\/standard\/chatlab-api.md\u3001docs\/en\/usage\/how-to-import.md\u3001docs\/en\/usage\/how-to-export.md<\/li>\n<li>\u5b89\u88c5\u4e0e\u6545\u969c\u6392\u67e5&#xff1a;docs\/en\/usage\/installation.md\u3001docs\/en\/usage\/troubleshooting.md<\/li>\n<li>\u76f8\u5173\u6e90\u7801&#xff1a;apps\/cli\/src\/cli.ts&#xff08;clb web\/start \u547d\u4ee4\u5b9a\u4e49&#xff09;\u3001packages\/config\/src\/loader.ts&#xff08;\u73af\u5883\u53d8\u91cf\u6620\u5c04&#xff09;\u3001packages\/node-runtime\/src\/data-dir-compat.ts&#xff08;\u6570\u636e\u76ee\u5f55\u517c\u5bb9\u6027\u95e8\u7981&#xff09;<\/li>\n<\/ul>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001084955-6abe1eb327e40.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011ChatLab<\/h3>\n<p class=\"gcb-project-desc\">Local-first chat history analyzer with AI. | \u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/cha\/ChatLab<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">ChatLab CLI \u5bb9\u5668\u5316\u90e8\u7f72\u5b8c\u5168\u6307\u5357&#xff1a;Docker \u955c\u50cf\u3001\u6570\u636e\u5171\u4eab\u4e0e\u73af\u5883\u53d8\u91cf\u8be6\u89e3<\/h5>\n<p class=\"gcb-related-item-desc\">ChatLab CLI \u5bb9\u5668\u5316\u90e8\u7f72\u5b8c\u5168\u6307\u5357&#xff1a;Docker \u955c\u50cf\u3001\u6570\u636e\u5171\u4eab\u4e0e\u73af\u5883\u53d8\u91cf\u8be6\u89e3 ChatLab \u662f\u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177&#xff0c;\u5176 CLI \u63d0\u4f9b\u4e86<\/p>\n<p>     <span class=\"gcb-tag\">\u6570\u636e\u5206\u6790<\/span><br \/>\n     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">AI \u5e94\u7528<\/span><br \/>\n     <span class=\"gcb-tag\">AI Agent<\/span><br \/>\n     <span class=\"gcb-tag\">\u684c\u9762\u5e94\u7528<\/span><br \/>\n     <span class=\"gcb-tag\">CLI<\/span><br \/>\n     <span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><br \/>\n     <span class=\"gcb-tag\">AI \u6280\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">\u672c\u5730\u90e8\u7f72<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">ChatLab Docker \u90e8\u7f72\u5b8c\u5168\u6307\u5357&#xff1a;\u955c\u50cf\u9009\u62e9\u3001\u6570\u636e\u5171\u4eab\u7b56\u7565\u3001\u73af\u5883\u53d8\u91cf\u4e0e Compose \u5b9e\u6218<\/h5>\n<p class=\"gcb-related-item-desc\">ChatLab Docker \u90e8\u7f72\u5b8c\u5168\u6307\u5357&#xff1a;\u955c\u50cf\u9009\u62e9\u3001\u6570\u636e\u5171\u4eab\u7b56\u7565\u3001\u73af\u5883\u53d8\u91cf\u4e0e Compose \u5b9e\u6218 ChatLab \u662f\u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177&#xff0c;\u5b98\u65b9<\/p>\n<p>     <span class=\"gcb-tag\">\u6570\u636e\u5206\u6790<\/span><br \/>\n     <span class=\"gcb-tag\">\u4eba\u5de5\u667a\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">AI \u5e94\u7528<\/span><br \/>\n     <span class=\"gcb-tag\">AI Agent<\/span><br \/>\n     <span class=\"gcb-tag\">\u684c\u9762\u5e94\u7528<\/span><br \/>\n     <span class=\"gcb-tag\">CLI<\/span><br \/>\n     <span class=\"gcb-tag\">MCP \u670d\u52a1<\/span><br \/>\n     <span class=\"gcb-tag\">AI \u6280\u80fd<\/span><br \/>\n     <span class=\"gcb-tag\">\u672c\u5730\u90e8\u7f72<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u5982\u4f55\u9009\u62e9\u9002\u5408\u7684PHP\u8bbe\u8ba1\u6a21\u5f0f&#xff1f;DesignPatternsPHP\u5b8c\u6574\u51b3\u7b56\u6307\u5357<\/h5>\n<p class=\"gcb-related-item-desc\">\u5982\u4f55\u9009\u62e9\u9002\u5408\u7684PHP\u8bbe\u8ba1\u6a21\u5f0f&#xff1f;DesignPatternsPHP\u5b8c\u6574\u51b3\u7b56\u6307\u5357 DesignPatternsPHP\u662f\u4e00\u4e2a\u4e13\u6ce8\u4e8ePHP 8.x\u8bbe\u8ba1\u6a21\u5f0f\u5b9e\u73b0\u7684\u5f00\u6e90\u9879\u76ee<\/p>\n<\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   DynamicCow\u7ec8\u6781\u6559\u7a0b&#xff1a;\u5728iOS 16\u8bbe\u5907\u4e0a\u89e3\u9501\u7075\u52a8\u5c9b\u5b8c\u6574\u6307\u5357 <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  Markdownify MCP&#xff1a;\u7ec8\u6781\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362\u795e\u5668 <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011ChatLab Local-first chat history analyzer with AI. | \u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177 \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/cha\/ChatLab \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u5bfc\u8bfb<br \/>\n\u672c\u6587\u662f ChatLab \u672c\u5730\u4f18\u5148 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177\u5b98\u65b9 Docker \u90e8\u7f72\u6307\u5357\u7684\u5b8c\u6574\u6280\u672f\u6587\u6863&#xff08;\u6e90\u6587\u6863\u4f4d\u4e8e docs\/en\/usage\/docker.md&amp;#xf<\/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":[],"topic":[],"class_list":["post-111704","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \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\/111704.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011ChatLab Local-first chat history analyzer with AI. | \u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177 \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/cha\/ChatLab \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb \u672c\u6587\u662f ChatLab \u672c\u5730\u4f18\u5148 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177\u5b98\u65b9 Docker \u90e8\u7f72\u6307\u5357\u7684\u5b8c\u6574\u6280\u672f\u6587\u6863&#xff08;\u6e90\u6587\u6863\u4f4d\u4e8e docs\/en\/usage\/docker.md&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111704.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-01T08:49:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001084955-6abe1eb327e40.svg\" \/>\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=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111704.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111704.html\",\"name\":\"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-01T08:49:56+00:00\",\"dateModified\":\"2026-10-01T08:49:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111704.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111704.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111704.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3\"}]},{\"@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":"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \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\/111704.html","og_locale":"zh_CN","og_type":"article","og_title":"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011ChatLab Local-first chat history analyzer with AI. | \u672c\u5730\u4f18\u5148\u7684 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177 \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/cha\/ChatLab \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u5bfc\u8bfb \u672c\u6587\u662f ChatLab \u672c\u5730\u4f18\u5148 AI \u804a\u5929\u8bb0\u5f55\u5206\u6790\u5de5\u5177\u5b98\u65b9 Docker \u90e8\u7f72\u6307\u5357\u7684\u5b8c\u6574\u6280\u672f\u6587\u6863&#xff08;\u6e90\u6587\u6863\u4f4d\u4e8e docs\/en\/usage\/docker.md&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/111704.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-01T08:49:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261001084955-6abe1eb327e40.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111704.html","url":"https:\/\/www.wsisp.com\/helps\/111704.html","name":"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-01T08:49:56+00:00","dateModified":"2026-10-01T08:49:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111704.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111704.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111704.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"ChatLab CLI Docker \u90e8\u7f72\u6307\u5357\uff1a\u6570\u636e\u5171\u4eab\u3001\u670d\u52a1\u5668\u9009\u9879\u4e0e\u73af\u5883\u53d8\u91cf\u5168\u89e3"}]},{"@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\/111704","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=111704"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111704\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111704"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}