SCRIPT

nanobot: Your Personal AI Agent Framework in Python

nanobot is an ultra-lightweight, open-source framework for building personal AI agents with a powerful web interface. Perfect for developers and AI enthusiasts.

nanobot ai-agent chatbot automation python open-source agent-framework
nanobot: Your Personal AI Agent Framework in Python

📦 Get nanobot: Your Personal AI Agent Framework in Python

vmain· MIT License· ⭐ 46.5K stars · Updated Aug 2, 2026

In a world where we juggle multiple tasks and seek automation to enhance productivity, having a personal AI agent can be a game-changer. Whether you’re a developer wanting to automate mundane tasks, or an AI enthusiast eager to explore chatbot capabilities, nanobot offers an ultra-lightweight, self-hosted solution that fits the bill.

What Is nanobot?

nanobot is an open-source framework built in Python for creating personal AI agents. It provides a comprehensive set of tools, including memory management, multi-agent workflows, and a WebUI, allowing users to develop and customize chat applications effortlessly. With its modular architecture, nanobot empowers developers to build tailored AI solutions without the overhead of complex setups.

Key Features

  • Ultra-Lightweight: Designed to be minimalistic, nanobot ensures quick installations and low resource consumption, making it ideal for personal devices.
  • WebUI: The built-in WebUI provides an intuitive interface for managing agents, workflows, and configurations, streamlining the development process.
  • Memory and MCP: Utilizing memory management and a multi-channel protocol (MCP), nanobot helps maintain context across conversations and interactions.
  • Multi-Agent Workflows: You can create complex workflows involving multiple agents, enhancing the capability of your AI solutions.
  • Automation Tools: With built-in automation features, nanobot simplifies tasks from scheduling to notifications, integrating seamlessly into your day-to-day activities.
  • Chat App Integration: nanobot is compatible with various chat platforms, including Discord, allowing you to create interactive and engaging AI chatbots.
  • Easy Customization: Developers can easily modify and extend functionalities based on specific use cases, making it a flexible solution for various applications.

Installation & Setup

Setting up nanobot is straightforward. Ensure you have Python 3.11 or newer installed on your system. You can install nanobot using pip. Here’s how:

CODE
git clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -r requirements.txt

Once installed, you can start the WebUI server by executing:

CODE
python -m nanobot

This will launch the application, and you can access the WebUI by navigating to http://localhost:5000 in your browser.

How to Use It

Let’s walk through a practical example of creating a simple chatbot using nanobot. First, you define your agent with a basic configuration:

CODE
from nanobot import Agent

class MyChatbot(Agent):
    def respond(self, message):
        return f'You said: {message}'

if __name__ == '__main__':
    chatbot = MyChatbot()
    chatbot.start()

This script initializes a basic chatbot that echoes back the user’s input. You can expand upon this by integrating APIs or adding more complex logic to your response function.

Who Should Use nanobot?

nanobot is perfect for:

  • Developers looking for a lightweight framework to build custom AI agents.
  • AI enthusiasts interested in experimenting with chatbots and automation tools.
  • Businesses seeking a self-hosted solution for automating customer interactions.
  • Educators and students wanting to explore AI concepts in a practical manner.

Final Thoughts

nanobot stands out as a versatile, open-source framework for personal AI agents. Its lightweight nature and rich feature set make it an attractive choice for developers and hobbyists alike. While there are other tools available, nanobot’s combination of simplicity, flexibility, and powerful features provides a solid foundation for anyone interested in building AI-driven applications. I encourage you to explore it and see how it can fit into your projects!

ScriptForge Admin

Senior developer and curator of the ScriptForge platform. Specializing in PHP, Laravel, and full-stack JavaScript development.

gh
𝕏
🌐

Related Scripts