NanoClaw vs OpenClaw:容器加精简代码库,还是大而全?
NanoClaw 与 OpenClaw 对比:每个智能体独立的 Docker 容器和用 Claude 构建的小型代码库,对上 OpenClaw 的应用、插件和 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、桌面应用、Docker 或 Railway 一键部署安装,运行在 macOS、Windows 和 Linux 上,并有原生的 iOS 和 Android 应用。它需要 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 以外的模型,想要手机和桌面应用、原生 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)

