nanobot is an ultra-lightweight, open-source, self-hostable personal AI agent framework written in Python. It can be used in a browser, terminal, or chat app to help users handle files, remember preferences, and schedule tasks. Users need to connect a supported model provider or local model server to provide AI capabilities.
Main capabilities
- Run in the browser WebUI or terminal.
- Connect to channels such as Telegram, Discord, Slack, WeChat, Email, Mattermost, Linear, and more.
- Use built-in file tools to read PDF, Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) files for tasks such as summarizing reports.
- Use shell, web search/scraping, MCP integration, cron, image generation, and multi-agent delegation.
- Maintain conversation history and long-term memory through Dream.
- Run long-term goals and scheduled automation.
- Expose a Python SDK and OpenAI-compatible API for integration.
- Deploy as a long-running local or server-side agent gateway.
Usage
nanobot requires Python 3.11 or later, as well as access to a supported model provider or local model server. Model costs or local hardware requirements depend on the service chosen by the user; nanobot does not provide model accounts.
Installation methods include:
- Stable automatic installation (recommended): the installer selects an isolated Python environment and opens settings.
- Install the stable nanobot-ai package using uv or pip.
- Install from source: clone the repository and install in editable mode, requiring Git and Bun.
After installation, run nanobot webui to open the browser WebUI, or run nanobot onboard --wizard for terminal setup. First-time steps: save the model provider/model preset and credentials in settings, start a new topic and send Hello! to verify the model connection, then try a file task.
The terminal client supports commands such as / to discover commands,/sessions to switch conversations,@ to mention apps, MCP servers, or saved sessions. It supports pasting clipboard images,/diff to check file changes,/context to check session context,/branch to continue a new session from a completed reply.
Use cases
- Personal assistant: handle files, remember preferences, schedule tasks.
- Long-running goals: continue work across model turns while the gateway is running.
- Scheduled automation: start turns at specified times.
- Multi-platform chat: access via WebUI, API, Telegram, Feishu, Slack, Discord, Teams, email, Mattermost, and Linear.
- Self-hosted deployment: use Docker, Docker Compose, a Linux service, or macOS LaunchAgent.
Limitations
- Requires Python 3.11 or later.
- Requires users to provide their own model provider or local model server; nanobot does not provide model accounts.
- Model costs or local hardware requirements depend on the service chosen by the user.
- Background mode does not configure startup after machine restart or restart after a crash; an operating system-managed service is required.
- Interrupted sub-agent tasks will not automatically restart after a restart, and missed scheduled times will not be replayed.
- WebUI access grants administrative privileges for the same agent instance and should only be shared with trusted operators.
- Persistent disks require a paid Render service.
- Platform wheels support macOS 13+, glibc 2.17+ Linux, and Windows x64; other platforms must use
nanobot --classicor the WebUI.