NanoClaw vs OpenClaw:容器加精簡程式碼庫,還是包山包海?
NanoClaw 與 OpenClaw 比較:每個代理獨立的 Docker 容器和用 Claude 打造的小型程式碼庫,對上 OpenClaw 的 App、外掛和 29 個頻道。誰該用哪個。
概覽
檢查清單
NanoClaw 一開始是對 OpenClaw 的反動:同樣是一個你可以從 WhatsApp、Telegram 或 Slack 傳訊息的個人代理,但小到可以讀完,而且每個代理都被鎖在容器裡。它於 2026 年 1 月 31 日推出,大約比 OpenClaw 晚兩個月。如今兩者對自架使用者想要什麼,押注截然不同。

隔離
這是 NanoClaw 最有力的論點。一個 Node 主機程序把訊息轉送給各個代理,每個代理都在自己的 Linux 容器中執行,只能看到你掛載的資料夾,因此 shell 存取不會落到你的主機上。對外的 API 呼叫會經過一個憑證閘道,依代理設定政策和速率限制,所以代理永遠不會持有原始金鑰。用免費帳號可以取得合作夥伴 Echo 提供的選用強化映像檔;預設方式是在本機建置映像檔。
OpenClaw 在你的主機上執行,沙箱預設關閉。它有可以開啟的沙箱和核准機制,但開箱時代理可以直接執行指令,並能存取你的電子郵件、訊息和你安裝的任何第三方技能。相關風險請參考 OpenClaw 安全嗎?。

如何客製化
這是兩者分歧最大的地方。
OpenClaw 用一般的方式設定,並透過社群技能和 142 個官方外掛擴充,有 64 個模型和媒體供應商可以選擇。
NanoClaw 刻意不使用設定檔。你透過請 Claude Code 修改程式碼來客製化自己的 fork,新增頻道也是同樣的方式,用 /add-<channel> 技能新增 Teams、Matrix、Google Chat、Signal、WeChat、電子郵件等。這讓程式碼庫保持精簡且完全屬於你,但也代表 Claude Code 是客製化、除錯和新增頻道時工具鏈的一部分。
模型
NanoClaw 建構在 Anthropic 的 Claude Agent SDK 上,預設使用 Claude。可以透過技能為每個代理加入 OpenCode、Codex 和 Ollama 供應商,所以本機模型是可行的,但 Claude 是預設路線。OpenClaw 從一開始就不綁定模型,並能透過 Ollama 執行本機模型。
安裝與平台
NanoClaw 的安裝腳本會在需要時安裝 Node、pnpm 和 Docker,然後配對一個頻道。它在 macOS 或 Linux 上執行,Windows 只能透過 WSL2。需求:Node.js 22+、pnpm 10+、Docker 和 Claude Code。
OpenClaw 可以透過腳本、npm、桌面 App、Docker 或 Railway 一鍵部署安裝,能在 macOS、Windows 和 Linux 上執行,並有原生的 iOS 和 Android App。它需要 Node 24.16+ 或 26.1+,安裝程式會自動準備。
頻道
NanoClaw 開箱即可配對 Slack、Telegram、Discord、WhatsApp 或 iMessage,更多頻道可以透過技能新增。每個頻道可以執行一個或多個代理。OpenClaw 不需要修改程式碼就能在 29 個頻道中使用。
遙測
兩者預設都會以小幅度的方式回傳資料。NanoClaw 會傳送匿名的安裝診斷資料,除非你設定 NANOCLAW_NO_DIAGNOSTICS=1。OpenClaw 會傳送帶有版本和系統資訊的每日更新檢查,除非你設定 update.checkOnStart: false。兩者都不會用你的資料訓練模型,狀態也都保存在你的機器上。
規模與成熟度
截至 2026 年 11 月 8 日,OpenClaw 有 394,193 顆 GitHub 星,NanoClaw 則是 31,096 顆,而 OpenClaw 由非營利組織 OpenClaw Foundation 管理。兩者都採用 MIT 授權且免費;不管選哪個,你都要付費給模型供應商。
結論
- 選 NanoClaw,如果你想要具備真正容器隔離和限縮範圍憑證的 OpenClaw 式聊天代理,本來就在用 Claude 和 Claude Code,而且喜歡擁有一個小型 fork,而不是設定一個大型應用程式。記得設定
NANOCLAW_NO_DIAGNOSTICS=1。 - 選 OpenClaw,如果你想預設使用 Claude 以外的模型,想要手機和桌面 App、原生 Windows 支援或外掛生態系,而且不想讓 AI 寫程式工具介入你的設定流程。請先開啟它的沙箱和核准機制。
- 如果你想要隔離又不想依賴 Claude Code,ZeroClaw 是另一個有力的選擇;在我們的 OpenClaw 替代方案中可以比較所有選項。
價格
NanoClaw
| Open source | 免費 |
|
|---|
OpenClaw
| Open source | 免費 |
|
|---|
NanoClaw
優點
- Every agent runs in its own Docker container and sees only the folders you mount, so shell access stays off your host
- Small codebase (one host process and a handful of files) that you customize by having Claude Code edit your fork
- Agents never hold raw API keys: outbound calls go through a credential gateway with per-agent policies and rate limits
- Many chat channels, including WhatsApp, Telegram, Slack, Discord, iMessage, Teams, Matrix and email, with one or several agents per channel
- Scheduled tasks with optional script gates that skip waking the agent when there's nothing to do
缺點
- Built around Claude and Claude Code: customizing, debugging and adding channels all go through Claude Code
- Sends anonymous setup diagnostics unless you set NANOCLAW_NO_DIAGNOSTICS=1
- No config files by design, so every change means editing code in your own fork
- Needs Docker, and Windows only works through WSL2
OpenClaw
優點
- Free and MIT licensed, with no paid tier
- Runs on your own hardware, and state, memory and credentials stay there
- Works in 29 chat channels, including WhatsApp, Telegram, iMessage, Slack, Discord and Microsoft Teams
- Model-agnostic: 64 model and media providers, plus local models
- Large ecosystem of skills and 142 official plugins, and very active development
缺點
- Model costs are on you and can run high: testers and users have reported spending over $100 in a day with expensive models
- Sandboxing is off by default and the agent can run commands on the host unless you turn on approvals
- Setup and upkeep expect comfort with the command line; maintainers warn it is risky for non-technical users
- Broad access to email, messages and the system makes prompt injection and malicious third-party skills a real risk
功能
來源
NanoClaw
OpenClaw
- OpenClaw homepage and Foundation section
- OpenClaw integrations: channels, providers and plugins
- openclaw/openclaw on GitHub (MIT, v2026.11.1)
- OpenClaw docs: Sandboxing (off by default)
- Wikipedia: OpenClaw
- Notebookcheck: OpenClaw can burn through hundreds of dollars per day
- OpenClaw docs: Memory overview
- OpenClaw docs: Automations
- OpenClaw docs: Chat channels
- OpenClaw docs: iMessage
- OpenClaw docs: Heartbeat, now a default Proactive check job
- OpenClaw docs: Multi-agent routing
- OpenClaw docs: Platforms (macOS, Windows, Linux, iOS and Android apps)
- OpenClaw docs: Tools (exec, browser, web search)
- OpenClaw docs: Audio and voice notes (inbound transcription)
- OpenClaw docs: Image and media support (inbound media)
- OpenClaw docs: Install (system requirements, installer script, npm, desktop apps, Docker)
- OpenClaw docs: One-click deploy on Railway
- OpenClaw docs: Usage telemetry and update checks (on by default, feature statistics opt-in)
- OpenClaw docs: Ollama provider (local models)

