Skip to main content

nanobot

HKUDS/nanobot

healthy GitHub

An ultra-lightweight personal AI assistant that delivers core agent functionality with 99% fewer lines of code than OpenClaw. Perfect for developers who want to actually understand every line of their AI assistant's codebase.

Decision Block

Why choose nanobot over OpenClaw?

Quick recommendation layer first, deeper analysis second. Use this before diving into metrics and architecture details.

Recommendation Layer
Compare with OpenClaw
Why choose this
  • Runs far leaner than OpenClaw on constrained hardware and low-cost hosts.
  • Better fit than OpenClaw for shared workspaces, teams, or operations-heavy usage.
Tradeoffs
  • Still less proven than OpenClaw in maturity, docs depth, or production mileage.
  • Efficiency usually comes with narrower scope, fewer integrations, or rougher ergonomics.
  • Heavier operational setup than simpler solo or hobby-grade local agents.
Best fit
  • Security-sensitive self-hosters
  • Teams needing shared agent workflows
  • Edge devices and lightweight deployments
Avoid if
  • You only want battle-tested projects with a long public track record
  • You care more about broad integrations than minimal footprint
  • You just need a personal assistant, not a team workflow layer
Confidence / Evidence
Mixed Evidence 35%
Freshly Reviewed
Quick Refresh

Limited evidence available. Use the primary sources before making a production decision.

AI decision layer last reviewed Apr 20, 2026. Helpful, but still inference-heavy enough to double-check primary sources.

Last generated Mar 13, 2026
Last reviewed Apr 20, 2026
Refresh mode Quick Refresh

Source window: GitHub metadata, README, recent commits, latest release, Reddit, Brave search

Measured Security
78
Measured Memory
1.8 MB
GitHub Stars
40,363
Boot Time
85 ms
Memory
1.8 MB
Language
Python

Community Pulse

82% Positive
7 Reddit Mentions

Security Radar

Security radar summary for nanobot.

  • nanobot: Sandboxing 5 of 10, API Security 7 of 10, Network Isolation 6 of 10, Telemetry Safety 8 of 10, Shell Protection 4 of 10.

Evaluation Scale: 10 = Maximum Safety / 1 = High Risk

Star Growth (2026)

Star history summary.

  • nanobot: 104 recorded points. From -5 stars on 2026-01-01 to 40,363 on 2026-04-21.
Last Scan: 4/21/2026, 12:16:05 PM
#ultra-lightweight #openclaw-alternative #personal-assistant #python #minimal-code

Overview

nanobot is an ultra-lightweight personal AI assistant developed by HKUDS that positions itself as a dramatically simplified alternative to OpenClaw. The project's core philosophy is delivering essential agent functionality with approximately 99% fewer lines of code than OpenClaw, making it an ideal choice for developers who want transparency and understandability in their AI assistant stack. The codebase is small enough that users can realistically audit every line, with a real-time line count verification script included.

Architecture & Features

Built entirely in Python (requiring ≥3.11), nanobot focuses on core agent capabilities without the bloat. Key features include multi-channel support (Telegram, Feishu, WeChat, Discord, WhatsApp, QQ, DingTalk, Matrix), MCP (Model Context Protocol) integration with SSE support, experimental thinking mode, and robust session management with poisoning fixes. The project emphasizes safer defaults with hardened access controls, sturdier Cron job handling, and improved multi-instance support.

Comparison to OpenClaw

Unlike OpenClaw's enterprise-focused, feature-heavy approach with 23+ channel integrations and complex containerization, nanobot targets individual developers and learners. It trades breadth for clarity—offering a ~4,000-line core codebase versus OpenClaw's massive footprint. Security-wise, nanobot implements safer file reads and session handling but lacks the container-isolated security model of alternatives like NanoClaw. The project is ideal for personal use, learning AI agent architecture, or as a foundation for custom assistant development.

Live Data Partner OpenClaw Seismograph
Threat Level elevated