OpenClaw 的含金量也在上升。
当不断的有替代品出现时,就意味着,这是一款非常好的产品,以至于开发者们不断的尝试重复造轮子,比一比,谁做的更好。
昨天OpenClaw 的轻量级替代品:nanoclaw 是一款不那么替代品的替代品,因为它只能用在 Claude 中。今天的这个,就不一样。

作为对比,OpenClaw 有 43 万行代码,nanobot 只有 4000 行代码,就实现了核心代理功能。
这也带来了更快速的响应速度(OpenClaw 在响应上就很卡,运行一个命令都要等好几秒)

nanobot 也使用 IM 与大模型交流,支持记忆和 Skills。
可以实现:
# 源码安装 git clone https://github.com/HKUDS/nanobot.git cd nanobot pip install -e . # 使用 uv 安装 uv tool install nanobot-ai # 或使用 pip 直接安装 pip install nanobot-ai
先初始化:
再配置 AI
在 ~/.nanobot/config.json 中设置 API 密钥。
{
"providers": {
"openrouter": {
"apiKey": "sk-or-v1-xxx"
}
},
"agents": {
"defaults": {
"model": "anthropic/claude-opus-4-5"
}
},
"webSearch": {
"apiKey": "BSA-xxx"
}
}
nanobot agent -m "2+2 是多少?"
就是这样! 2 分钟内你就有了一个可以工作的人工智能助手。
支持本地模型,支持 WhatsApp 与 Telegram。
openrouter 最近提供了免费模型:openrouter/free适用于 nanobot,也可以在 OpenClaw 中使用。
另外,在配置 OpenClaw 时,依旧推荐首选 Qwen 模型,成功率最高。之后再慢慢配置其他模型。
原文:https://www.appinn.com/nanobot/