Index / nanobot · updated Aug 17, 2026
nanobot
HKUDS/nanobot · healthy · rank 3 of 43 by stars
An ultra-lightweight (~4K lines) Python AI agent framework from HKU that packs WebUI, MCP, multi-agent workflows, and memory into a single self-hosted binary. It positions itself as a dramatically leaner OpenClaw alternative with a focus on readability and fast local iteration.
Facts
Repository
Runtime
Posture
Community
Security breakdown
Composite 62 / 100 · how these are scored
higher is safer
higher is safer
higher is safer
higher is safer
higher is riskier
Model access
Read from the repository, not written by a model · 72 files examined
5 providers · gateway support
Pinned models
claude-opus-4-7 released 2026-04-16 — 4 months old (from the public model catalogue)
Pin last edited 19 days ago
Several defaults are pinned; the project picks one per provider rather than shipping a single default.
Evidence
Decision
Why choose nanobot over OpenClaw?
Why choose this
- Dramatically smaller codebase (~4K lines vs OpenClaw's much larger surface) for easier auditing
- Faster local iteration with Python's ecosystem and simpler dependency tree
- Built-in WebUI eliminates need for separate frontend setup
Tradeoffs
- No container-native sandboxing or security scanning patterns (unlike nanoclaw/RustyClaw)
- Lacks OpenClaw's broader messaging platform integrations (WhatsApp, Telegram, Slack, Discord, Gmail)
- Smaller community and contributor base compared to OpenClaw's established ecosystem
Best fit
- Developers who want a readable, hackable Python agent they can fully audit
- Teams needing quick local prototyping with WebUI, MCP, and multi-agent delegation
- Users migrating from OpenClaw who prefer a lighter, single-service architecture
Avoid if
- You need strong container sandboxing or network isolation by default
- You require production-grade multi-user auth and RBAC
- You depend on a mature plugin ecosystem with community extensions
Evidence is strong from the README, recent commits, and web search results confirming nanobot as a direct OpenClaw alternative. Reddit signal is weak (1 match, unrelated gaming subreddit), but Brave search and GitHub ecosystem references provide solid corroboration. Confidence is tempered by limited independent community reviews.
AI layer reviewed Aug 2, 2026 · how this is written
Star activity
47,067 stars today
Overview
nanobot is an ultra-lightweight, self-hosted personal AI agent framework developed at the University of Hong Kong (HKUDS). Written in Python and distributed under the MIT license, it compresses the core agent loop, tool execution, long-term memory, MCP (Model Context Protocol) integration, model routing, multi-agent delegation, and scheduled automation into approximately 4,000 lines of code — roughly 99% fewer than OpenClaw. It ships with a built-in WebUI, a terminal CLI, and an OpenAI-compatible API, making it accessible across multiple interfaces without additional frontend tooling.
The architecture centers on a single gateway process that manages sessions, tool execution, memory consolidation, and provider routing. Recent commits show active hardening: a provider routing fix prevents local Ollama from hijacking cloud-namespaced models (e.g., NVIDIA NIM), memory compaction now tolerates malformed persisted summaries, and cron jobs preserve completion state during manual execution. The project supports multi-agent workflows where a primary agent can delegate subtasks to specialized sub-agents, and includes scheduled automation for recurring tasks.
Compared to OpenClaw, nanobot prioritizes codebase minimalism and auditability over breadth of integrations. It lacks OpenClaw's extensive messaging platform connectors (WhatsApp, Telegram, Slack, Discord, Gmail) and its plugin ecosystem is still emerging. However, for teams that value transparency, fast local iteration, and a Python-native stack, nanobot delivers the core agent experience with significantly lower operational complexity. The project is actively maintained with frequent commits, a growing documentation wiki in multiple languages, and a PyPI package (nanobot-ai) for straightforward pip installation.