经 AI Skill Hub 精选评估,纳米机器人AI助手 获评「强烈推荐」。在 GitHub 上收获超过 42.3k 颗 Star,这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.2 分,适合有一定技术背景的用户使用。
超轻量级开源个人AI智能体框架,支持多大模型集成(Claude、ChatGPT等),提供工作流编排和自动化能力。适合开发者、产品经理快速构建AI助手原型和自动化任务。
纳米机器人AI助手 是一款基于 Python 开发的开源工具,专注于 AI智能体、工作流自动化、多模型集成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
超轻量级开源个人AI智能体框架,支持多大模型集成(Claude、ChatGPT等),提供工作流编排和自动化能力。适合开发者、产品经理快速构建AI助手原型和自动化任务。
纳米机器人AI助手 是一款基于 Python 开发的开源工具,专注于 AI智能体、工作流自动化、多模型集成 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install nanobot
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install nanobot
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/HKUDS/nanobot
cd nanobot
pip install -e .
# 验证安装
python -c "import nanobot; print('安装成功')"
# 命令行使用
nanobot --help
# 基本用法
nanobot input_file -o output_file
# Python 代码中调用
import nanobot
# 示例
result = nanobot.process("input")
print(result)
# nanobot 配置文件示例(config.yml) app: name: "nanobot" debug: false log_level: "INFO" # 运行时指定配置文件 nanobot --config config.yml # 或通过环境变量配置 export NANOBOT_API_KEY="your-key" export NANOBOT_OUTPUT_DIR="./output"
<picture> <source media="(prefers-color-scheme: dark)" srcset="./images/readme-cover-dark.svg"> <img alt="nanobot README cover" src="./images/readme-cover-light.svg"> </picture>
English | 简体中文 | 繁體中文 | Español | Français | Bahasa Indonesia | 日本語 | 한국어 | Русский | Tiếng Việt
Discord · X · WeChat / Feishu
You need Python 3.11 or newer and access to a supported model provider or local model server. Model fees or local hardware requirements depend on the service you choose; nanobot does not supply a model account.
Choose the stable release for everyday use or current source for development and the latest features. This README describes current source; published documentation covers the released version.
New to terminals or model credentials? Follow Start Without Technical Background. Updating an existing instance? Back up its config directory and workspace, stop every old nanobot process using that workspace, then update and restart through the original launcher or service. See session storage and version changes.
Stable release: automatic setup (recommended)
The installer chooses an isolated Python environment and opens setup for you. The two commands below are the same installation method for different operating systems; run only the one for your system.
<details> <summary>macOS / Linux</summary>
curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh
</details>
<details> <summary>Windows PowerShell</summary>
irm https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.ps1 | iex
</details>
<details> <summary>Installer details, preview, and script review</summary>
The installer installs or upgrades nanobot-ai using an active virtual environment, uv, pipx, or a managed venv under ~/.nanobot/venv. Fresh local desktops open the WebUI; SSH, headless, existing-config, and older-release paths use the terminal setup wizard. Keep the printed command: it identifies the environment that owns the installation.
To preview the plan without changing your environment, pass --dry-run.
curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh -s -- --dry-run
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.ps1))) --dry-run
If you prefer to inspect the script first, open scripts/install.sh or scripts/install.ps1.
</details>
<details> <summary>Already use uv or pip? Install the stable package yourself</summary>
Use this instead of the recommended installer when you already manage your own Python environment. These commands install the same stable nanobot-ai package; they do not launch setup.
uv: isolated CLI installation
uv tool install nanobot-ai
pip: activate your virtual environment first
python -m pip install nanobot-ai
Then run nanobot webui for browser setup, or nanobot onboard --wizard for terminal-only setup. For the Python SDK, install nanobot-ai in your application's virtual environment so the application can import it; a separate uv tool environment does not make the SDK importable there.
If pip reports externally-managed-environment, use the recommended installer, uv tool install nanobot-ai, pipx install nanobot-ai, or an activated virtual environment. Upgrade with the same method; for uv use uv tool upgrade nanobot-ai, and for pip use python -m pip install -U nanobot-ai.
</details>
Current source: development checkout
<details> <summary>Install current source with Git and Bun</summary>
Clone the repository and install it in editable mode. A source install requires Git and Bun; Bun runs the matching TUI directly from the checkout instead of downloading an older release binary.
git clone https://github.com/HKUDS/nanobot.git
cd nanobot
python -m venv .venv
Activate it with source .venv/bin/activate on macOS/Linux or .venv\Scripts\Activate.ps1 in Windows PowerShell, then run:
python -m pip install -e .
After that, the normal commands are identical to a stable install. nanobot runs the TUI from this checkout, and nanobot webui rebuilds stale frontend assets automatically. After stopping the old instance, git pull --ff-only updates the Python, TUI, and WebUI source together; rerun python -m pip install -e . when Python dependencies change, then restart the instance. Contributors should also read CONTRIBUTING.md.
</details>
<details> <summary>Supported platforms, bundled UIs, and release tracks</summary>
Published packages include the WebUI, and supported platform wheels also include the native TUI. A source-distribution install can fetch a checksummed, version-matched TUI archive—with its licenses, notices, corresponding application source, source offer, and relinking instructions—on first use.
Platform wheels include both the WebUI and the native terminal UI: macOS 13+ (Apple Silicon and Intel), glibc 2.17+ Linux (ARM64 and x64), and Windows x64. The x64 runtime requires SSE4.2. Pip selects the matching wheel; opening the TUI does not need a separate GitHub download or Bun installation. A source-distribution install on a supported target can use the matching checksummed GitHub release archive. On other platforms, use nanobot --classic or the WebUI.
[!IMPORTANT] If you want the newest features and experiments, install from source. If you want the most stable day-to-day experience, install from PyPI or with uv.
Pick one install method:
| Track | Install with | Update with | What runs |
|---|---|---|---|
| Stable | installer, uv, or pip | [same installation method](./docs/quick-start.md#updating) | one released Python/WebUI/TUI version |
| Current source | editable Git checkout | git pull --ff-only + editable dependency sync | Python, WebUI, and TUI from that checkout |
</details>
<details> <summary>Verify the installation or locate the nanobot command</summary>
Verify the install:
nanobot --version
If nanobot is not on PATH, invoke it through the method that installed it: reuse the recommended installer's command, use uv tool run --from nanobot-ai nanobot ... or pipx run --spec nanobot-ai nanobot ..., or use the Python executable from the environment where pip installed the package.
</details>
After installation, continue with Quick Start. Use the exact command printed by the installer if nanobot is not on PATH.
Render — one click
Deploy nanobot's gateway and bundled WebUI from the repository's ready-to-use Blueprint:
Render will ask for ANTHROPIC_API_KEY and a private NANOBOT_WEB_TOKEN, then provision persistent storage for sessions, memory, and WebUI history. Persistent disks require a paid Render service.
Self-host
Prefer your own infrastructure? Follow the deployment guide for Docker, Docker Compose, Linux services, and macOS LaunchAgent setup.
Open nanobot in your browser
If the installer already opened the WebUI, continue there. Otherwise run:
nanobot webui
Keep the launcher terminal open while using the browser. It starts or joins the shared local gateway and binds the first-run WebUI to localhost. If the browser does not open, copy the complete login link printed in the terminal, including everything after #; keep this credential private. For SSH or a headless host, use the remote-browser or terminal-only instructions below.
Your first three steps
Hello! to verify the model connection.notes.txt in a practice folder, select that folder and Restricted access, and ask: "Read notes.txt and write a short summary to summary.md." Open summary.md in that folder to check the result. See Your first file task.A normal reply verifies the provider/model and browser connection. The file task separately checks the selected project and its file permissions. Attaching a file sends it to the conversation; it does not change the selected project folder.
Then describe your next goal in the same chat, for example: "I am already using the WebUI. Help me connect Telegram and allow only my account." An enabled nanobot-document skill can consult the documentation bundled with your installation; see Continue with nanobot for examples, explicit invocation, and availability.
<details> <summary>Open the WebUI on a remote server through SSH</summary>
After installing nanobot on the server, start its WebUI without opening a server-side browser:
nanobot webui --no-open
Keep that server terminal running. In a second terminal on your own computer, forward the default WebUI port through SSH:
ssh -N -L 127.0.0.1:8765:127.0.0.1:8765 user@SERVER
Replace user@SERVER with your SSH login and leave the tunnel open. In your local browser, open the complete login link printed by the server launcher, preserving its # fragment. It uses http://127.0.0.1:8765, which now reaches the server through the tunnel. Complete Settings → Models and send Hello!. If local port 8765 is occupied, use another local port in the tunnel and change only the port in the browser link. Keep the server listener on localhost. For Docker, public endpoints, or service management, see Deployment.
</details>
<details> <summary>Terminal-only setup, one-shot checks, and the TUI</summary>
If a model is not configured yet, use the terminal wizard:
nanobot onboard --wizard
Check one reply without opening the browser:
nanobot -m "Hello!"
For interactive work, open the terminal client:
nanobot
The native TUI uses the launch directory as its project workspace and shares saved conversations and the local gateway with the WebUI. The explicit nanobot agent form remains available for compatibility.
/ to discover commands, /sessions to switch conversations, or @ to mention an app, MCP server, or saved session.Ctrl+V or Alt+V, and use $ to complete skill references./diff to inspect file changes, /context to inspect session context, or /branch to continue from a completed reply in a new session.Enter to send. While nanobot is working, Enter sends now and Tab sends after the current response. Press Shift+Enter to add a newline (Ctrl+J works in terminals that cannot distinguish modified Enter keys)./detach to promote the gateway to background mode and close the TUI while work continues.Each launch starts a new session by default. Use --session to resume one and --workspace to choose another project workspace. See the CLI reference for session branching, diffs, history, shortcuts, gateway lifecycle, and compatibility options.
</details>
<details> <summary>Save and check a preference</summary>
State a specific preference in your chat, for example: "For release notes, use concise bullet points." To consolidate it now, send /compact and then /dream, waiting for each to finish, and review /dream-log. Check the actual changes to USER.md or memory/MEMORY.md in the configured agent workspace, then test reuse in a new topic in the same instance. Dream may decide that no durable change is needed; a conversational acknowledgement alone does not prove the preference was saved. See Save and Check a Preference for file access, correction, and restoration steps.
</details>
<details> <summary>Start and stop a sustained goal</summary>
Use a regular topic for a bounded objective with a clear completion condition, for example:
/goal Review this project's tests and list the smallest missing test case.
The goal lets nanobot continue work across model turns while the gateway runs; a scheduled automation instead starts a turn at specified times. Use /stop to interrupt the current work, and ask nanobot to cancel the goal if you want to abandon it. Keep the gateway running for unattended work using the background or service options below.
After a gateway restart, reopen the original topic and review saved results before explicitly continuing any interrupted work. Recovery does not blindly replay uncertain tool actions. See the long-running agent guide for starting conditions and related automation options.
</details>
<details> <summary>Keep the gateway running after closing interactive clients</summary>
After model setup, keep channels and automations running when interactive launchers close:
nanobot gateway --background
This starts or promotes the shared gateway to a detached process. From the TUI, /detach does the same before closing that client. Background mode does not configure startup after a machine reboot or restart after a crash; use an OS-managed service for that. Interrupted subagent tasks are not automatically relaunched after a restart, and missed scheduled times are not replayed; see subagent recovery and automation delivery.
Manage the background gateway with:
nanobot gateway status
nanobot gateway logs
nanobot gateway restart
nanobot gateway stop
To reopen the browser, run nanobot webui against the same instance and use its complete printed login link.
</details>
<details> <summary>Run a configured gateway directly</summary>
Use this once a model is configured and you want to run the gateway directly in the current terminal:
nanobot gateway
It skips guided WebUI setup and browser opening. The WebUI remains available when its channel is configured. Use nanobot gateway --background for a detached process, or follow Deployment for startup and supervision by the operating system.
</details>
<details> <summary>Read task guides or look up configuration details</summary>
</details>
If nanobot worked for you, a star on GitHub is the simplest way to support the project.
<a id="deploy-to-render"></a>
设计精简高效,42k星标证明社区认可。Python实现易集成,多模型支持灵活性强,是构建个人AI工具的优选方案。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:纳米机器人AI助手 的核心功能完整,质量优秀。对于AI爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | nanobot |
| 原始描述 | 开源AI工作流:"🐈 nanobot: The Ultra-Lightweight Personal AI Agent"。⭐42.3k · Python |
| Topics | AI智能体工作流自动化多模型集成轻量级框架 |
| GitHub | https://github.com/HKUDS/nanobot |
| License | MIT |
| 语言 | Python |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。