← Back to Leaderboard
NHKUDS

HKUDS/nanobot

A self-hosted Python gateway for personal AI across web, terminal and chat.

Engineering Health (Methodology)
A+ · 100/100
Maintenance Activity
● Updated today
Latest Release
v0.4.2
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption25/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedLocal AIMCPCLIAPI1 README badge views (30d)
Total Stars
★ 50,538
24h Growth
+10
7d Growth
+157
Forks
8,799

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

HKUDS/nanobot Star History (2026-01-30 - 2026-12-04) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +50.5k in 308d · avg +164/day 53.4k 26.7k 0 2026-01-30: ★ 12026-02-21: ★ 21,8402026-03-14: ★ 32,2022026-04-04: ★ 36,6582026-04-25: ★ 39,6902026-05-16: ★ 41,5462026-06-06: ★ 42,8692026-06-27: ★ 43,9582026-07-18: ★ 45,1172026-08-08: ★ 46,1342026-08-29: ★ 47,0152026-09-19: ★ 47,9322026-10-10: ★ 48,6162026-10-31: ★ 49,5392026-11-19: ★ 50,1482026-12-04: ★ 50,538 ★ 50.5k 2026-01 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Nanobot is a self-hosted agent application built around a single Python gateway. The bundled WebUI, native TUI and chat integrations use the gateway to manage sessions and call configured model providers and tools. The same gateway handles memory, automations and security policy. Since v0.4.0, it stores model history and browser transcripts in SQLite, with support for importing existing conversations.

The nanobot-ai package requires Python 3.11+ and declares Typer, Pydantic, pydantic-settings, the Anthropic SDK and websockets. The packaged interfaces do not need a separate frontend build. MCP servers, Agent Plugins and CLI Apps extend the workbench and can be attached to topics; the Python SDK is a separate integration path for embedding nanobot in another application.

Key Capabilities & Differentiators

Nanobot can use cloud APIs such as OpenRouter, Anthropic and OpenAI, OAuth subscriptions such as OpenAI Codex and GitHub Copilot, or model servers such as Ollama, vLLM and LM Studio. More than 15 chat integrations include Telegram, Discord, Slack, Feishu and Email. The agent can read images, PDFs and Office files (.docx, .xlsx, .pptx), and edit files within the access granted to the topic.

The browser workbench can group up to four topics in resizable panes, fork a conversation from an earlier reply and reference another topic with @. Tool activity, inline diffs and context usage are inspectable in the UI. Dream provides long-term memory; temporary chats stay outside saved history and memory. Scheduled jobs, local triggers and sustained goals cover recurring work beyond interactive chat.

Trade-offs & Limitations

A chat-only model UI is simpler when all you need is conversation; a single-platform bot is simpler when one channel is enough. Nanobot trades that simplicity for a shared workbench with file access, tool integrations, memory and scheduling. Centralizing those functions also concentrates access: start with a Restricted workspace, limit who can talk to the agent on each channel, and review what an MCP server, plugin or scheduled task can access before enabling it.

A cloud endpoint shifts inference hardware off the gateway host but introduces provider charges, network dependence and external data handling. A local endpoint gives you more control but moves inference capacity and maintenance onto infrastructure you operate. The package metadata still classifies the project as Alpha; test upgrades against your chosen providers, channels and persistent state. MIT licensing permits commercial use, but connected models and services may have separate terms.

Hardware & Deployment Guide

For a packaged install, use uv tool install nanobot-ai and launch nanobot webui; configure a model preset before sending a test message. For terminal-only setup, use nanobot onboard --wizard. On a server, Compose runs gateway and mounts ~/.nanobot at /home/nanobot/.nanobot. It binds port 18790 to loopback but publishes 8765 without a loopback-only host binding. Review that exposure and configure authentication before allowing network access. An alternative is nanobot webui --no-open with port 8765 forwarded over SSH.

A self-hosted gateway still needs a supported model endpoint; put inference on a local server if you want to avoid a cloud model API. Review chat and tool connections separately if offline operation is required. v0.4.0 introduced SQLite persistence, v0.4.1 addressed TLS certificate verification, sandboxed shell execution and workspace permissions, and v0.4.2 expanded SSH support. SSH quick pairing remains Linux-only, and gateway-native TLS and trustedProxyAuth are not supported over SSH.

Gateway: One Python service manages sessions, tools, memory, automation and security policy for browser, terminal and chat clients.
Persistence: v0.4.0 adds SQLite storage for gateway model history and browser transcripts, with import of existing conversations.
Workbench: Group up to four topics, fork conversations and inspect tool activity, inline file diffs and context usage.
Model connectivity: Mix supported cloud APIs, OAuth subscriptions and local endpoints such as Ollama, vLLM and LM Studio.
Extensions and automation: Attach MCP servers, plugins or CLI Apps to topics; manage scheduled work and local script or CI triggers.
Container defaults: Persist state under ~/.nanobot, drop capabilities except the three needed for bootstrap, and apply no-new-privileges.
Best For

Individuals or small teams that want a self-hosted personal agent for file work, tool calls and recurring tasks across browser, terminal and chat, with a choice of model providers.

Skip If

You only need a chat interface, want a managed service that takes care of updates and integrations, or require verified offline operation and cannot vet every configured dependency and connection.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedLocal AIMCP
curl -fsSL https://raw.githubusercontent.com/HKUDS/nanobot/main/scripts/install.sh | sh

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
nanobot ★50.5k+157PythonMITA self-hosted Python gateway for personal AI across web, terminal and chat.
AstrBot47.9k+298PythonAGPL-3.0A self-hosted Python agent hub that connects chat platforms to model providers
QwenPaw38.5k+246PythonApache-2.0Self-hosted agent workspace for scheduled tasks and chat across apps
CowAgent48.2k+116PythonMITSelf-hosted agent harness for running and remembering work across chat channels

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/HKUDS/nanobot.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

HKUDS/nanobot Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about nanobot

How do clients and extensions connect to nanobot?

The WebUI, TUI and chat integrations use one Python gateway for sessions, tools, memory, automations and security policy. The Python SDK is the integration point for embedding nanobot in another Python application; MCP servers, plugins and CLI Apps extend what the agent can do.

Does nanobot need a GPU, and how should I size the host?

The gateway does not need to host inference when using a cloud API or a separately hosted model server. If Ollama, vLLM or LM Studio runs on the same host, size RAM and any GPU VRAM primarily for the chosen model, context length and concurrent requests, leaving headroom for the gateway and its tools. The Compose CPU cap is a deployment setting, not a benchmark or minimum requirement.

Can we use it commercially, and does self-hosting keep data on-premises?

The project is MIT-licensed, which permits commercial use and modification. Preserve the required copyright and license notices when redistributing, and review THIRD_PARTY_NOTICES.md and the terms of any models and services you add. Self-hosting the gateway does not keep all data on-premises if you use cloud inference, external MCP servers or hosted chat channels.

When is nanobot a better fit than a model chat UI or a single-platform bot?

Choose a standalone local-model chat UI if you mainly need conversation, or a single-channel bot if all work happens in one chat app. Nanobot is a better fit when users need a browser and terminal workbench backed by the same gateway, with workspace access, tools and schedules. The trade-off is more configuration and more permissions to review.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining HKUDS/nanobot? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature HKUDS/nanobot on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare