System Requirements
Before installing nanobot, ensure your system meets these requirements:Python Version
Python ≥3.11 requiredCheck your version:
Optional Dependencies
- Node.js ≥18 (for WhatsApp integration)
- Docker (for containerized deployment)
- Matrix support (install with
pip install nanobot-ai[matrix])
Installation Methods
Choose the installation method that best fits your use case:- pip (Stable)
- uv (Fast)
- Source (Latest)
- Docker
Install from PyPI
The simplest way to install nanobot is via pip:Platform-Specific Instructions
macOS
macOS
macOS Installation
Install Python 3.11+ via Homebrew:Linux (Ubuntu/Debian)
Linux (Ubuntu/Debian)
Ubuntu/Debian Installation
Install Python 3.11+ and pip:On some distributions, you may need to use
pip3 instead of pip and python3 instead of python.Linux (Fedora/RHEL)
Linux (Fedora/RHEL)
Windows
Windows
Windows Installation
Install Python 3.11+ from python.orgDuring installation:- ✅ Check “Add Python to PATH”
- ✅ Check “Install pip”
Optional Dependencies
Matrix/Element Support
For Matrix (Element) channel integration with end-to-end encryption:matrix-nio[e2e]- Matrix client with E2EE supportmistune- Markdown parsingnh3- HTML sanitization
Development Dependencies
For contributing to nanobot or running tests:pytestandpytest-asyncio- Testing frameworkruff- Fast Python linter and formatter- All Matrix dependencies
Verification Steps
After installation, verify everything is working:Initialize configuration
~/.nanobot/config.json- Configuration file~/.nanobot/workspace/- Working directory~/.nanobot/workspace/MEMORY.md- Persistent memory~/.nanobot/workspace/HEARTBEAT.md- Periodic tasks
Configuration is empty by default. You’ll need to add your API keys before using nanobot. See the Quick Start guide for next steps.
Troubleshooting
Command not found: nanobot
Command not found: nanobot
Issue: Shell can’t find the
nanobot command after installation.Solutions:-
Check if Python scripts directory is in PATH:
-
Find where pip installed nanobot:
-
Add to PATH (Linux/macOS):
-
Use Python module directly (temporary workaround):
ModuleNotFoundError: No module named 'nanobot'
ModuleNotFoundError: No module named 'nanobot'
Issue: Python can’t find the nanobot module.Solutions:
-
Verify installation:
-
Reinstall nanobot:
-
Check Python version:
-
Use virtual environment:
Permission denied errors
Permission denied errors
Issue: Permission errors during installation.Solutions:
-
Install to user directory (recommended):
-
Use virtual environment (best practice):
-
Use sudo (not recommended):
Docker: Container exits immediately
Docker: Container exits immediately
Issue: Docker container starts but exits right away.Solutions:
-
Check logs:
-
Verify config exists:
-
Check API keys are set:
-
Run in foreground for debugging:
Next Steps
Once installation is complete:Quick Start
Configure your first API key and start chatting
Configuration
Learn about providers, channels, and tools
Chat Channels
Connect Telegram, Discord, WhatsApp, and more
GitHub Issues
Get help or report installation problems