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.

#ai-agent#self-hosted#openclaw-alternative#mcp#multi-agent
Compare vs OpenClaw
GitHub ↗

Facts

Repository

Contributors423
Open issues704
Last commitAug 16, 2026
Release cadence~15 days
Latest releasev0.3.0

Runtime

LanguagePython
Memory60 MB
Boot time150 ms
Deploymentself-hosted · desktop · cloud
Setup difficultyLow
Plugin ecosystemEmerging

Posture

LicenseMIT
Local-firstYes
Cloud dependencyOptional
Multi-userNo
Privacy postureStrong

Community

Sentiment72% positive
Reddit mentions1
Web results10

Security breakdown

Composite 62 / 100 · how these are scored

Sandboxing3 / 10

higher is safer

API security5 / 10

higher is safer

Network isolation4 / 10

higher is safer

Telemetry safety7 / 10

higher is safer

Shell access risk7 / 10

higher is riskier

Model access

Read from the repository, not written by a model · 72 files examined

5 providers · gateway support

Direct
AnthropicAzure OpenAIAWS BedrockGroqOpenAI
Gateway
LiteLLMOpenRouter
Compatible
OpenAI-compatible

Pinned models

gpt-4oOpenAI
gpt-4.1OpenAI

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
Good Confidence78%

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.

Nominate a clone

Add a new Claw

Paste a GitHub repository and tell us why it belongs on the tracker.

Opens a prefilled issue on GitHub — every nomination is public. Comfortable with a PR? Adding the repo to projects.json is faster.