繁體中文

nanobot 評測:HKUDS 的輕量級自架 AI 代理

nanobot 是香港大學推出的小型 MIT 授權 Python 代理,有精緻的 WebUI。本文介紹安裝、沙箱、本機模型以及維護方式。

前往 nanobot

nanobot 是香港大學資料智慧實驗室(HKUDS)推出的個人代理框架。它於 2026 年 2 月 2 日正式推出,我們在 2026 年 11 月 8 日查看時有 49,932 顆 GitHub 星,在我們清單上的代理中僅次於 OpenClaw 和 Hermes Agent。這篇評測討論的是 HKUDS/nanobot 代理。

它的理念是一個小巧、方便閱讀和修改的 Python 核心,外面再包上一個完成度出乎意料高的瀏覽器介面。

nanobot WebUI new-topic screen with Apps, Skills, Automations and Channels in the sidebar, project-grouped topics, and a composer with permission and microphone controls
nanobot's bundled browser WebUIgithub.com

安裝方式

共有四種途徑:安裝腳本、pip、Docker,或一鍵雲端部署(部署文件涵蓋 Render)。它需要 Python 3.11 或更新版本,支援 macOS 13 以上、Linux 或 Windows,而安裝腳本會建立自己的 Python 環境,你不必自己管理。工作階段、記憶和設定都保存在 ~/.nanobot。

執行起來之後,你可以選擇和它互動的方式:在瀏覽器中使用內建的 WebUI、終端機介面,或聊天應用程式。WebUI 是最大亮點。它會把對話分組成專案、顯示檔案差異、有 MCP App 目錄,還會把排程自動化放在行事曆上。最多可以同時並排四個對話(README)。

它沒有原生的行動或桌面 App。在手機上,你可以用瀏覽器開 WebUI,或使用其中一個聊天應用程式。

沙箱要你自己處理

nanobot 會執行 shell 指令,並在專案資料夾中處理檔案。預設情況下這些指令沒有沙箱。設定文件描述了 Linux 上的 bubblewrap 沙箱和 macOS 上的 Seatbelt,都需要你自己開啟,而 Windows 上沒有沙箱。

如果你把 nanobot 裝在主要電腦上,請在連接任何聊天應用程式之前先開啟沙箱,因為聊天頻道代表外部訊息可以傳到一個會執行指令的代理。在 Windows 上,請改在 Docker 或另一台機器上執行它。相比之下,ZeroClaw 建議的設定檔一開始就開啟作業系統沙箱,NanoClaw 則把每個代理放進容器。

nanobot WebUI workbench showing three conversations side by side: a release plan, quick-start work and a documentation review
Several nanobot conversations open side by sidegithub.com

遙測與隱私

nanobot 不傳送使用遙測。文件中沒有描述任何遙測,程式碼裡沒有分析用戶端,它在呼叫第三方技能安裝程式時甚至會設定 DISABLE_TELEMETRY(原始碼)。雖然有 Langfuse 追蹤功能,但只有在你用自己的金鑰啟用時才會執行。提示詞和附加檔案會送到你選擇的模型供應商和聊天平台。

本機模型

它支援 OpenAI、Anthropic、DeepSeek、OpenRouter、AWS Bedrock 或任何相容 OpenAI 的端點,也能透過 Ollama、vLLM 或 LM Studio 使用本機模型(供應商文件)。這代表只要你的硬體撐得起一個夠用的本機模型,就能完全不用雲端模型來執行它。nanobot 不販售任何託管服務,所以唯一的帳單來自你的模型供應商。語音訊息需要另外的轉錄供應商,例如 Groq 或 OpenAI。

在你不在時繼續工作

這是 nanobot 值得一席之地的原因。它能執行排程自動化和長期目標,而 heartbeat 只會把有用的結果回報到你最後使用的聊天中。一個名為 Dream 的背景程序會把長期記憶整理成純 Markdown 檔案(記憶文件),你可以自己閱讀和編輯。對自架使用者來說這是很好的特性:你的代理的記憶不會被鎖在一個你無法檢視的資料庫裡。

無人值守使用時有兩個缺口,都出自概念文件:錯過的排程執行不會補跑,而被中斷的子代理任務在重新啟動後也不會重新執行。如果主機在 9:00 重新開機,9:00 的報告就直接不會產生。請在一台持續運作的機器上把它當作服務執行。

nanobot Automations calendar for October 2026 with completed scheduled runs such as a release checklist and a weekly reading list
Scheduled automations in nanobot's calendar viewgithub.com

頻道與擴充

聊天應用程式包括 Telegram、Discord、Slack、WhatsApp、WeChat、Feishu、Microsoft Teams、Matrix 和電子郵件。它也能以多個執行個體執行(多執行個體文件),開發者還能使用 Python SDK 和相容 OpenAI 的 API,讓其他工具可以像呼叫模型一樣呼叫 nanobot。

適合誰使用

nanobot 適合想要一個能用 Python 閱讀和擴充的輕量級代理的開發者,以及想要一個有真正瀏覽器介面、又能透過聊天應用程式存取的自架助理的人。如果你想要不必設定就有隔離,或想要原生手機 App,它就比較不適合。

比較

  • PicoClaw 受到 nanobot 啟發,用 Go 重寫,只需要幾 MB 記憶體就能執行。它用 nanobot 較豐富的介面和 Python 擴充性,換取極小的資源占用。
  • OpenClaw 有更大的生態系和行動 App,但預設會傳送遙測;兩者預設都沒有開啟沙箱。
  • Hermes Agent 同樣是 Python 和 MIT 授權,有桌面 App 和自我改進的技能系統,預設也沒有遙測。
  • QwenPaw 在形態上最接近:Python、網頁主控台、多代理、本機模型,而且對中文聊天應用程式的支援更完整。

更多內容請參考 OpenClaw 替代方案和最佳開源 AI 代理清單。

價格

nanobot: 價格
Open source免費
  • MIT licensed and free to self-host
  • No hosted plan; you pay your chosen model provider or run a local model

功能

功能
網路搜尋是
圖像生成是
語音模式是
檔案上傳是
記憶是
代你執行操作是
應用程式整合是
自主運作是
主動傳訊息給你是
可執行多個機器人是

優點

  • Free and MIT licensed, with a small Python core that is meant to be read and modified
  • Polished bundled WebUI with projects, file diffs, an MCP app catalog and an automations calendar, plus a terminal UI
  • Many chat channels, including Telegram, Discord, Slack, WhatsApp, WeChat, Feishu, Teams, Matrix and email
  • Scheduled automations, long-running goals and a heartbeat that reports only useful results to your last chat
  • Works with local models through Ollama, vLLM or LM Studio

缺點

  • Shell commands are not sandboxed by default; the bubblewrap or macOS Seatbelt sandbox must be turned on, and Windows has none
  • Model costs are on you, and voice messages need a separate transcription provider such as Groq or OpenAI
  • No native mobile or desktop app; on a phone you use the WebUI in a browser or a chat app
  • Missed scheduled runs are not replayed and interrupted subagent tasks are not relaunched after a restart

適合對象

  • Developers who want a lightweight agent they can read and extend in Python
  • People who want a self-hosted assistant with a browser UI and chat-app access
  • Running scheduled checks and reports with a local or cloud model

來源