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
Mastra
mastra.ai
Open-source TypeScript agent framework: agents, workflows, RAG, memory, MCP, and eval with a hosted platform. About 27,437 GitHub stars (2026-08-25).
NVIDIA NOOA
github.com/NVIDIA-NeMo/labs-OO-Agents
NVIDIA's open-source agent framework that turns an agent into one Python class: methods are actions, docstrings are prompts, at 82.2% SWE-bench Verified.
CrewAI
www.crewai.com
Python multi-agent framework with crews, flows, and an Enterprise Cloud from $99/seat. AMP is now that cloud, not a separate product name.
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.

Grok Bot and Hermes Bot: one person finally gets a think tank and a secretariat
Grok Bot now ships with Cursor Pro+. Hermes Bot runs on a VPS. They are not smarter chat boxes. The think tank advises, the secretariat executes, and you still make the call.