nanobot:4万星轻量AI Agent本地部署教程

项目:HKUDS/nanobot · ⭐ 43k · 香港大学数据科学实验室

项目简介

nanobot由香港大学研究员Xubin Ren开发,核心理念"小而你的"——让AI Agent回归轻量和个性化。2026年2月首次提交,6月突破4.3万星。架构:小核心+大生态,支持30+LLM,一个人能跑,一群人能用。

安装

# Python 安装
pip install nanobot-agent

# 或从源码
git clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .

# 启动
nanobot init --model ollama/qwen3.8
nanobot run

核心特性

特性说明
小核心核心仅几千行,轻量启动,资源占用极低
大生态30+LLM适配器、插件市场、MCP协议支持
本地优先数据不出本地,隐私安全有保障
多模型OpenAI/Claude/Ollama/vLLM/DeepSeek等全支持

配置示例

# nanobot.yaml
model: ollama/qwen3.8
tools:
  - file_search
  - code_executor
  - web_search
memory:
  type: sqlite
  path: ~/.nanobot/memory.db
plugins:
  - name: github
    config:
      token: ${GITHUB_TOKEN}

nanobot的"小"不是功能少,而是核心精简——所有高级能力通过插件扩展,按需加载不占资源。适合个人开发者在笔记本上跑一个私人AI助手。

📚 常见问题

nanobot是什么?

nanobot由香港大学研究员Xubin Ren开发,核心理念"小而你的"——让AI Agent回归轻量和个性化。2026年2月首次提交,6月突破4.3万星。架构:小核心+大生态,支持30+LLM,一个人能跑,一群人能用。

如何上手nanobot?

OpenHuman数字分身教程