Skip to main content

System Requirements

Before installing nanobot, ensure your system meets these requirements:

Python Version

Python ≥3.11 requiredCheck your version:
python --version

Optional Dependencies

  • Node.js ≥18 (for WhatsApp integration)
  • Docker (for containerized deployment)
  • Matrix support (install with pip install nanobot-ai[matrix])
Python 3.10 and earlier are not supported. nanobot requires Python 3.11 or newer for optimal performance and modern language features.

Installation Methods

Choose the installation method that best fits your use case:

Install from PyPI

The simplest way to install nanobot is via pip:
pip install nanobot-ai
This installs the latest stable release from PyPI.
Use a virtual environment to avoid conflicts with other Python packages:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install nanobot-ai
Verify installation:
nanobot --version
You should see output like:
🐈 nanobot v0.1.4.post3

Platform-Specific Instructions

macOS Installation

Install Python 3.11+ via Homebrew:
brew install [email protected]
Install nanobot:
pip3 install nanobot-ai
# or
uv tool install nanobot-ai
For WhatsApp support (requires Node.js):
brew install node
macOS includes Python 2.7 by default. Make sure you’re using Python 3.11+ with python3 --version.

Ubuntu/Debian Installation

Install Python 3.11+ and pip:
sudo apt update
sudo apt install python3.11 python3.11-venv python3-pip
Install nanobot:
pip install nanobot-ai
# or
uv tool install nanobot-ai
For WhatsApp support:
# Install Node.js 18+
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs
On some distributions, you may need to use pip3 instead of pip and python3 instead of python.

Fedora/RHEL Installation

Install Python 3.11+ and pip:
sudo dnf install python3.11 python3-pip
Install nanobot:
pip install nanobot-ai
# or
uv tool install nanobot-ai
For WhatsApp support:
sudo dnf install nodejs npm

Windows Installation

Install Python 3.11+ from python.orgDuring installation:
  • ✅ Check “Add Python to PATH”
  • ✅ Check “Install pip”
Install nanobot via PowerShell or Command Prompt:
pip install nanobot-ai
For WhatsApp support, install Node.js from nodejs.org
Windows paths with spaces may cause issues. Use quotes when specifying paths:
nanobot agent --workspace "C:\Users\Your Name\.nanobot\workspace"

Optional Dependencies

Matrix/Element Support

For Matrix (Element) channel integration with end-to-end encryption:
pip install nanobot-ai[matrix]
This installs:
  • matrix-nio[e2e] - Matrix client with E2EE support
  • mistune - Markdown parsing
  • nh3 - HTML sanitization

Development Dependencies

For contributing to nanobot or running tests:
pip install nanobot-ai[dev]
This includes:
  • pytest and pytest-asyncio - Testing framework
  • ruff - Fast Python linter and formatter
  • All Matrix dependencies

Verification Steps

After installation, verify everything is working:
1

Check version

nanobot --version
Expected output:
🐈 nanobot v0.1.4.post3
2

Initialize configuration

nanobot onboard
This creates:
  • ~/.nanobot/config.json - Configuration file
  • ~/.nanobot/workspace/ - Working directory
  • ~/.nanobot/workspace/MEMORY.md - Persistent memory
  • ~/.nanobot/workspace/HEARTBEAT.md - Periodic tasks
3

Check status

nanobot status
You should see:
🐈 nanobot Status

Config: /home/user/.nanobot/config.json ✓
Workspace: /home/user/.nanobot/workspace ✓
Model: anthropic/claude-opus-4-5
OpenRouter: not set
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

Issue: Shell can’t find the nanobot command after installation.Solutions:
  1. Check if Python scripts directory is in PATH:
    # Linux/macOS
    echo $PATH | grep -o "[^:]*python[^:]*"
    
    # Windows PowerShell
    $env:PATH -split ';' | Select-String python
    
  2. Find where pip installed nanobot:
    pip show nanobot-ai | grep Location
    
  3. Add to PATH (Linux/macOS):
    # Add to ~/.bashrc or ~/.zshrc
    export PATH="$HOME/.local/bin:$PATH"
    
  4. Use Python module directly (temporary workaround):
    python -m nanobot.cli.commands --version
    
Issue: Python can’t find the nanobot module.Solutions:
  1. Verify installation:
    pip list | grep nanobot
    
  2. Reinstall nanobot:
    pip uninstall nanobot-ai
    pip install nanobot-ai
    
  3. Check Python version:
    python --version  # Must be 3.11+
    
  4. Use virtual environment:
    python -m venv venv
    source venv/bin/activate
    pip install nanobot-ai
    
Issue: Permission errors during installation.Solutions:
  1. Install to user directory (recommended):
    pip install --user nanobot-ai
    
  2. Use virtual environment (best practice):
    python -m venv venv
    source venv/bin/activate
    pip install nanobot-ai
    
  3. Use sudo (not recommended):
    sudo pip install nanobot-ai
    
Avoid using sudo pip install as it can cause conflicts with system packages. Use virtual environments instead.
Issue: Docker container starts but exits right away.Solutions:
  1. Check logs:
    docker compose logs nanobot-gateway
    
  2. Verify config exists:
    ls -la ~/.nanobot/config.json
    
  3. Check API keys are set:
    cat ~/.nanobot/config.json | grep apiKey
    
  4. Run in foreground for debugging:
    docker compose up nanobot-gateway
    

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

Pro tip: Bookmark the GitHub releases page to stay updated on new features and bug fixes.

Build docs developers (and LLMs) love