HKUDS/nanobot

★ 49,617⑂ 8,696

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps

About HKUDS/nanobot

HKUDS/nanobot is an open-source project on GitHub, mainly written in Python. Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation It currently holds 49,617 stars and 8,696 forks with 868 open issues, and was last pushed on 2026-10-29 (repository created 2026-02-01).

Project Overview

Git Homed tracks it on the AI Agent Skills Trending board and on the AI AI Agent Skills Trending list.

GitHub Repository Details

Repository HKUDS/nanobot · default branch main · size 81016 KB · watchers 207 · source: GitHub REST API and repository README

README

https://github.com/HKUDS/nanobot/blob/HEAD/nanobot README cover

English | 简体中文 | 繁體中文 | Español | Français | Bahasa Indonesia | 日本語 | 한국어 | Русский | Tiếng Việt

https://github.com/HKUDS/nanobot/blob/HEAD/GitHub stars https://github.com/HKUDS/nanobot/blob/HEAD/PyPI version https://github.com/HKUDS/nanobot/blob/HEAD/PyPI downloads https://github.com/HKUDS/nanobot/blob/HEAD/Test Suite https://github.com/HKUDS/nanobot/blob/HEAD/Python 3.11 or newer https://github.com/HKUDS/nanobot/blob/HEAD/MIT License https://github.com/HKUDS/nanobot/blob/HEAD/nanobot documentation

Discord · X · WeChat 微信交流群 · Feishu

nanobot

🐈 nanobot is a lightweight, open-source, self-hosted personal AI agent written in Python. Chat with it from your browser, terminal, or favorite chat app to work with files, remember preferences, use tools, and run scheduled tasks—powered by any supported cloud or local AI model.

💡 Why nanobot

Start Here

| What you want to do | Where to go | |---|---| | Install nanobot with no terminal or config experience | Start Without Technical Background | | Install quickly and get your first reply | Install → Quick Start | | Explore the browser workbench | WebUI | | Connect Telegram, Discord, Slack, Feishu, WeChat, Email, Linear, or others | Chat Apps Guide | | Configure models, MCP tools, memory, or security | Documentation · Configuration | | Run nanobot continuously or on a server | Deploy · Deployment Guide | | Embed nanobot in Python | Python SDK | | Contribute or extend nanobot | Architecture · Contributing |

📦 Install

Requires Python 3.11 or newer and an account on a supported AI provider or local model server. Packaged installs include both the WebUI and terminal UI—no frontend build tools required.

[!NOTE]
This README tracks the latest development branch; the installer below installs the latest stable release. For published release docs, visit nanobot.wiki.

Recommended: one-command installer (installs into an isolated environment and opens the WebUI automatically on desktop)

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh

Windows PowerShell

irm https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.ps1 | iex
Preview the installer or inspect the scripts first

Preview what the installer will do without changing anything:

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh -s -- --dry-run
# Windows PowerShell
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.ps1))) --dry-run

Or read scripts/install.sh and scripts/install.ps1 directly.

Other install methods: uv, pip, or from source

uv

uv tool install nanobot-ai
nanobot webui

pip (inside a virtual environment)

python -m pip install nanobot-ai
nanobot webui

From source (latest main, requires Git)

git clone https://github.com/HKUDS/nanobot.git
cd nanobot
python3 -m venv .venv
source .venv/bin/activate   # Windows PowerShell: .venv\Scripts\Activate.ps1
python -m pip install -e .
nanobot webui

For full install options, troubleshooting nanobot: command not found, or updating an existing install, see Install and Quick Start and Updating nanobot.

🚀 Quick Start

If the installer already opened the WebUI in your browser, continue right there. Otherwise run:

nanobot webui

Your first three steps:

1. Open Settings → Models, create a preset, and add your provider API key (or sign in with OAuth). See Configure Your Model. 2. Start a new topic and send Hello! to verify your model connection. 3. Try a file task: pick a practice folder with Restricted access and ask "Read notes.txt and write a short summary to summary.md." See Your first file task.

Once that works, you can ask nanobot right in chat to help configure your next feature—for example: "I am using the WebUI. Help me connect Telegram and allow only my account." (See Continue with nanobot.)

Terminal-only setup and interactive TUI

Configure a model without a browser:

nanobot onboard --wizard

Send a single test message or launch the interactive terminal UI (shares history and gateway with the WebUI):

nanobot agent -m "Hello!"
nanobot

Useful TUI shortcuts: type / for commands, @ for apps/topics, $ for skills, Ctrl+V / Alt+V to paste images, /diff to view edits, /context to inspect usage, and /detach to keep the gateway running in the background after closing the TUI. See CLI Reference.

Open a remote server's WebUI over SSH

On the remote server:

nanobot webui --no-open

On your computer, forward port 8765:

ssh -N -L 127.0.0.1:8765:127.0.0.1:8765 user@SERVER

Then open the complete login link printed on the server (including everything after #) in your local browser. You can also connect to existing remote servers directly from your local WebUI via Manage connections…—see Connect to an Existing Remote nanobot.

Keep nanobot running in the background

With the official installer, nanobot already stays running in the background after you close the browser or terminal. For other installs, run:

nanobot gateway --background

Manage the background gateway anytime:

nanobot gateway status
nanobot gateway logs
nanobot gateway restart
nanobot gateway stop

For automatic startup across reboots, see Deployment.

If nanobot is helpful to you, giving the repo a star on GitHub is the simplest way to support the project!

☁️ Deploy

One-click on Render

Deploy the gateway and bundled WebUI with persistent storage (requires a paid Render Starter plan for the persistent disk):

Deploy to Render

Self-host

See the Deployment Guide for Docker Compose, Docker, Linux systemd, and macOS LaunchAgent setup.

🌐 WebUI

The WebUI is included out of the box—just run nanobot webui.

https://github.com/HKUDS/nanobot/blob/HEAD/Three conversations in one WebUI workbench

Mobile WebUI · dark theme

https://github.com/HKUDS/nanobot/blob/HEAD/Mobile WebUI in dark theme

Keep related work side by side

Group up to four topics in resizable panes, fork any conversation from an earlier reply, or mention another topic with @ to pull in its context. Pick a project folder and access mode per topic—and use Temporary chats for throwaway questions outside saved history and memory. Explore topics and panes →

Inspect every step and token

Expand agent activity to inspect reasoning, tool calls, inline file diffs, and read-only file previews. Click the context indicator to review token usage, cache reuse, and the file graph across turns.

https://github.com/HKUDS/nanobot/blob/HEAD/Expanded file-edit diff and context usage chart

Explore activity and context →

Connect tools, skills, and chat apps

Use Apps to add MCP servers (with built-in OAuth and keyless presets), Agent Plugins, and CLI Apps, then attach them in chat with @. Manage built-in and marketplace skills in Skills, and connect chat platforms with guided setup in Channels.

https://github.com/HKUDS/nanobot/blob/HEAD/The Apps MCP catalog with searchable integration presets

Explore Apps → · Discover Skills → · Connect chat apps →

Automate recurring work

Ask nanobot in any topic to schedule reminders or recurring reports, or create local triggers (/trigger) for scripts and CI jobs. Manage everything from Automations with list and calendar views.

https://github.com/HKUDS/nanobot/blob/HEAD/The Automations calendar view

Explore Automations → · Full WebUI Guide →

Architecture

https://github.com/HKUDS/nanobot/blob/HEAD/nanobot architecture

A single Python gateway powers the WebUI, terminal UI, and all chat apps—handling sessions, tools, memory, automations, and security policy in one place. Use the Python SDK to embed nanobot in your own Python applications, or read Architecture for source-level details.

Docs

Browse the documentation index (or nanobot.wiki for the latest stable release):

Releases

Latest release: v0.4.1 — improves workspace permissions, sandboxed commands, connection recovery, file-context previews, and navigation. See release notes, Updating nanobot, and the release archive.

Open Source Partners

https://github.com/HKUDS/nanobot/blob/HEAD/Kimi Open Source Friends https://github.com/HKUDS/nanobot/blob/HEAD/MiniMax

🤝 Contribute

Everyone is welcome to open an issue with a bug, reproduction, use case, or suggestion. Discuss the problem first; pull requests are currently limited to repository collaborators. See CONTRIBUTING.md for the contribution process and recognition.

Maintainers

https://github.com/HKUDS/nanobot/blob/HEAD/Xubin Ren
Xubin Ren

https://github.com/HKUDS/nanobot/blob/HEAD/Xubin Ren on X
https://github.com/HKUDS/nanobot/blob/HEAD/Yongru Cheng
Yongru Cheng

https://github.com/HKUDS/nanobot/blob/HEAD/Yongru Cheng on X

Community Contributors

https://github.com/HKUDS/nanobot/blob/HEAD/Athemis https://github.com/HKUDS/nanobot/blob/HEAD/axelray-dev https://github.com/HKUDS/nanobot/blob/HEAD/yorkhellen https://github.com/HKUDS/nanobot/blob/HEAD/yu-xin-c https://github.com/HKUDS/nanobot/blob/HEAD/04cb https://github.com/HKUDS/nanobot/blob/HEAD/santhreal https://github.com/HKUDS/nanobot/blob/HEAD/xcosmosbox https://github.com/HKUDS/nanobot/blob/HEAD/KDB-Wind https://github.com/HKUDS/nanobot/blob/HEAD/kunalk16 https://github.com/HKUDS/nanobot/blob/HEAD/chaohuang-ai https://github.com/HKUDS/nanobot/blob/HEAD/zayfod https://github.com/HKUDS/nanobot/blob/HEAD/nikolasdehor https://github.com/HKUDS/nanobot/blob/HEAD/JiajunBernoulli https://github.com/HKUDS/nanobot/blob/HEAD/flobo3 https://github.com/HKUDS/nanobot/blob/HEAD/hamb1y https://github.com/HKUDS/nanobot/blob/HEAD/SergioSV96 https://github.com/HKUDS/nanobot/blob/HEAD/morandot https://github.com/HKUDS/nanobot/blob/HEAD/michaelxer https://github.com/HKUDS/nanobot/blob/HEAD/coldxiangyu163 https://github.com/HKUDS/nanobot/blob/HEAD/boogieLing https://github.com/HKUDS/nanobot/blob/HEAD/aiguozhi123456 https://github.com/HKUDS/nanobot/blob/HEAD/pinhua33 https://github.com/HKUDS/nanobot/blob/HEAD/pixan-ai https://github.com/HKUDS/nanobot/blob/HEAD/hussein1362 https://github.com/HKUDS/nanobot/blob/HEAD/alekwo https://github.com/HKUDS/nanobot/blob/HEAD/haosenwang1018 https://github.com/HKUDS/nanobot/blob/HEAD/IlyaGusev https://github.com/HKUDS/nanobot/blob/HEAD/T3chC0wb0y https://github.com/HKUDS/nanobot/blob/HEAD/VITOHJL https://github.com/HKUDS/nanobot/blob/HEAD/KailBug https://github.com/HKUDS/nanobot/blob/HEAD/macroadster https://github.com/HKUDS/nanobot/blob/HEAD/Hinotoi-agent https://github.com/HKUDS/nanobot/blob/HEAD/kingassune https://github.com/HKUDS/nanobot/blob/HEAD/goodtiding5 https://github.com/HKUDS/nanobot/blob/HEAD/kiplangatkorir https://github.com/HKUDS/nanobot/blob/HEAD/elkaix https://github.com/HKUDS/nanobot/blob/HEAD/KimGLee https://github.com/HKUDS/nanobot/blob/HEAD/m11y https://github.com/HKUDS/nanobot/blob/HEAD/LingaoM https://github.com/HKUDS/nanobot/blob/HEAD/DaryeDev https://github.com/HKUDS/nanobot/blob/HEAD/CJWTRUST https://github.com/HKUDS/nanobot/blob/HEAD/xzq-xu https://github.com/HKUDS/nanobot/blob/HEAD/pikaxinge https://github.com/HKUDS/nanobot/blob/HEAD/arcdrake22 https://github.com/HKUDS/nanobot/blob/HEAD/JackLuguibin https://github.com/HKUDS/nanobot/blob/HEAD/HaisamAbbas https://github.com/HKUDS/nanobot/blob/HEAD/anunay999 https://github.com/HKUDS/nanobot/blob/HEAD/flaviovs https://github.com/HKUDS/nanobot/blob/HEAD/dajiaohuang https://github.com/HKUDS/nanobot/blob/HEAD/C-Li https://github.com/HKUDS/nanobot/blob/HEAD/Ho1yShif https://github.com/HKUDS/nanobot/blob/HEAD/pjhoberman

GitHub Stars & Activity

49,617Stars
8,696Forks
868Open issues
PythonLanguage

GitHub Popularity

GitHub stars49,617
Forks8,696
Open issues868
Primary languagePython
LicenseMIT
Stars gained today0
Created2026-02-01
Last pushed2026-10-29

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

NousResearch / hermes-agent

Python★ 265,999⑂ 0
→
2

anthropics / skills

Python★ 200,223⑂ 0
→
3
→
4

Graphify-Labs / graphify

Python★ 153,153⑂ 0
→
5

langchain-ai / langchain

Python★ 149,971⑂ 0
→
6

browser-use / browser-use

Python★ 121,999⑂ 0
→
7

Panniantong / Agent-Reach

Python★ 114,618⑂ 0
→
8

unclecode / crawl4ai

Python★ 87,820⑂ 0
→

More Trending Repositories