nanobot is an ultra-lightweight, open-source, self-hosted personal AI agent framework written in Python. It runs in a browser WebUI, a terminal, or as a long-running gateway, and combines tools, long-term memory, MCP integrations, model routing, multi-agent delegation, and scheduled automation inside a small, readable core. With more than 47,000 GitHub stars and an MIT license, it is one of the most popular self-hosted agent frameworks for people who want an agent they can truly own.
Core Features
- Small agent loop: Messages come in from a chat app, the LLM decides when tools are needed, and memory or skills are pulled in only as context instead of becoming a heavy orchestration layer.
- Chat-native reach: WebUI (port 8765), terminal CLI, plus Telegram, Discord, Slack, WeChat, Feishu, Email, Mattermost, and other channels.
- Built-in tools: File read/write and patching, shell execution with configurable sandboxing, web search and fetch with SSRF checks, MCP servers, cron reminders, image generation, and subagents.
- Long-term memory: Session history plus Dream, a persistent memory system that survives long-running work; goals, memory, tools, and chat context persist across turns.
- Model freedom: Works with any OpenAI-compatible provider (OpenRouter, Anthropic, OpenAI, Bedrock, Ollama, vLLM) plus local LLMs, with model fallback chains.
- Integration surface: Python SDK, an OpenAI-compatible API via
nanobot serve(/v1/chat/completions), and Langfuse observability for tracing model calls.
Use Cases
- Personal AI assistant: A private agent that lives in your chat apps, handles email, files, and web research, and keeps its own memory.
- Automation hub: Cron schedules, heartbeat tasks, and local triggers let nanobot run long-horizon jobs and scheduled automations.
- Local-first deployment: WebUI binds to localhost by default, so your data stays on your machine; deploy as a gateway for 24/7 availability.
- Multi-agent workflows: Delegation to subagents and workspace-scoped sessions for repository-specific work.
Advantages
- Truly lightweight: A readable Python core instead of a platform-scale orchestration stack; install with
uv tool install nanobot-aiand run. - Own your stack: MIT-licensed, self-hosted, and easy to inspect and extend, from tools to channels.
- MCP and memory built in: Model Context Protocol servers, long-term memory, and multi-channel chat arrive out of the box rather than as paid add-ons.
Getting Started
- Install:
uv tool install nanobot-ai(orpython -m pip install nanobot-ai), then runnanobot webui. - Configure: In the WebUI, go to Settings to add a provider and model preset, then enable channels as needed.
- Use: Chat in the browser, connect Telegram or Discord, or script it via the Python SDK and OpenAI-compatible API.
- Secure: WebUI is localhost-only by default; review shell, workspace, and SSRF settings before exposing the gateway.
Tips
- Start with the wizard:
nanobot onboard --wizardsets up config and workspace before you edit JSON. - Use MCP for external tools: Add stdio or HTTP MCP servers in
tools.mcpServersfor GitHub, databases, and more. - Mind the security surface: The project is Alpha; sandbox shell execution and review SSRF whitelists before long-running deployments.
Conclusion
nanobot delivers a genuinely lightweight, self-hosted personal agent with memory, MCP, multi-channel chat, and automation in a package you can read and extend. If you want an agent you own rather than a platform you rent, nanobot is one of the strongest open options today.
Alternatives
Comments
No comments yet. Be the first to comment!
Related Tools
FastClaw
fastclaw.ai
Lightweight AI Agent runtime and Multi-Agent Framework written in Go. An Agent Factory that creates, manages, and runs AI agents with personalities (SOUL.md), memory, skills, and tools — single binary, any LLM, cloud-ready.
CrewAI
www.crewai.com
The leading multi-agent orchestration framework (Python). Define role-based agent teams — roles, goals, backstories — compose crews, assign tasks, and let agents collaborate. 30,000+ GitHub stars.
Google ADK
google.github.io/adk-docs
Google's open-source framework for building multi-agent AI applications. Hierarchical agent teams, shared state, code-native design, MCP support, live multimodal, and A2A interoperability — Python, Java, and Go.
Related Insights

Anthropic Subagent: The Multi-Agent Architecture Revolution
Deep dive into Anthropic multi-agent architecture design. Learn how Subagents break through context window limitations, achieve 90% performance improvements, and real-world applications in Claude Code.
Stop Cramming AI Assistants into Chat Boxes: Clawdbot Picked the Wrong Battlefield
Clawdbot is convenient, but putting it inside Slack or Discord was the wrong design choice from day one. Chat tools are not for operating tasks, and AI isn't for chatting.
After I Connected Obsidian to OpenClaw, It Started Helping Me Make Decisions
Once Obsidian stopped being just a place to store notes and started working with OpenClaw, it began helping me organize context, connect information, and improve real decisions.