# nanobot

> Lightweight, self-hosted personal AI agent in Python with WebUI, terminal UI, tools, memory and chat app support.

- Type: agent or tool
- Field: Assistants & Chat
- Repository: https://github.com/HKUDS/nanobot
- GitHub stars: 50464
- Licence: MIT
- Language: Python
- Last push: 2026-11-30
- Page: https://imutechz.in/agents/nanobot

## What it is
nanobot is a small open-source personal AI agent written in Python. You can chat with it from a browser, terminal or chat apps such as Telegram, Discord and Slack to work with files, use tools, remember preferences and run scheduled tasks. It supports cloud APIs, OAuth subscriptions and local model servers. It requires Python 3.11 or newer and a supported model provider.

## Features
- WebUI and terminal UI included
- 15+ chat app connections
- Reads images, PDFs and Office files
- MCP servers and plugins
- Long-term memory called Dream
- Scheduled tasks, local triggers and goals

## Best for
- Running a personal agent on a laptop or small VPS
- Chatting with an agent in Telegram or Slack
- Scheduled automations
- Embedding an agent in Python

## Pros
- One-command installer into an isolated environment
- Works with cloud and local models
- Python SDK available

## Cons
- Needs Python 3.11+ and a model provider account

## Install
```
curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh
irm https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.ps1 | iex
uv tool install nanobot-ai
python -m pip install nanobot-ai
```

## Usage
```
nanobot webui
```

Tags: ai-agent, self-hosted, python, webui, chat-apps, mcp, automation, agent-framework
