Fully production-grade implementation of AI-Agent-Nanobot, refactored by the 69-Agent Opencode Collective.
- CI/CD: Automated GitHub Actions with Gitleaks security scans.
- Security: Standardized SECURITY.md protocol.
- Design: Opencode Premium Design Tokens integrated.
- Initialize infrastructure via
.github/workflows. - Set your secrets in GitHub Environment settings.
- Deploy to production via Vercel/Docker.
~4,000 lines. Infinite possibilities. The ultra-light personal AI lab.
π Live Website Β· π Docs Β· π Quick Start
Nanobot is a minimalist but powerful AI agent built in Python. It delivers 99% of the functionality of larger frameworks like OpenClaw with a fraction of the code complexity. Designed to run on everything from a Raspberry Pi Zero to a high-end cloud VM.
- Ultra-Lightweight: Core agent logic is under 4,000 lines of readable Python.
- Multi-Channel: Native support for Telegram, Discord, Slack, WhatsApp, and Email.
- MCP Integration: Full support for Model Context Protocol (MCP) toolkits.
graph LR
subgraph Input["9 Channels"]
TG[Telegram]
DC[Discord]
SL[Slack]
WA[WhatsApp]
FE[Feishu]
WC[WeChat]
EM[Email]
WB[WebChat]
SS[Signal]
end
subgraph Core["nanobot Core (~4,000 lines)"]
RT[Message Router]
AG[Agent Loop]
MM[Memory Manager]
HB[Heartbeat]
PC[Prompt Cache]
end
subgraph Providers["22+ LLM Providers"]
CL[Claude / Anthropic]
OR[OpenRouter]
DS[DeepSeek Coder]
VL[Local vLLM]
OA[OpenAI]
end
subgraph Tools["MCP Tools"]
GH[GitHub API]
SB[Supabase]
BS[Brave Search]
FS[Filesystem]
end
Input --> RT
RT --> AG
AG --> MM
AG --> HB
AG --> Providers
AG --> Tools
Nanobot's power comes from its modular skills. Each skill is designed for high-fidelity task execution.
| Skill | Description | Status |
|---|---|---|
web-searcher |
Brave Search + AI synthesis. Performs live research with citations. | π‘οΈ New |
notion-sync |
Two-way sync for tasks, notes, and research into Notion. | π‘οΈ New |
code-reviewer |
Reads git diff, analyzes quality, checks security, auto-comments PRs. Uses DeepSeek Coder via OpenRouter | β Active |
git-automator |
Automated branching: feature branches, PR management, auto-merge on CI pass, changelog generation | β Active |
data-pipeline |
CSV/JSON ingestion, clean/transform, analysis reports, visualizations on scheduled cron | β Active |
api-tester |
Reads OpenAPI spec β generates test cases β runs automated tests β reports with latency metrics | β Active |
doc-generator |
Scans Python/TypeScript codebases, extracts docstrings + types, generates Markdown API docs | β Active |
Automate complex pipelines with simple Markdown definitions.
| Workflow | Trigger | Output |
|---|---|---|
hr-campaign |
Autonomous HR outreach pipeline. Scrapes leads, personalize drafts, and rotates sending. | β Active |
mcp-tool-chain |
GitHub API + Supabase + Brave Search orchestrated in one session | β Active |
multi-channel-bot |
Single nanobot instance across 9 channels with scoped permissions | β Active |
clawwork-coworker |
Professional task completion, token cost tracking, income reports | β Active |
memory-optimization |
Tune memory for low-RAM devices (RPi Zero, SBC) | β Active |
How I use Nanobot daily:
Autonomous expense tracking via Telegram/WhatsApp. Categories spending from receipt photos and transaction logs.
- Docs: Finance Monitor Use Case
A morning briefing (news + calendar) and real-time task manager running on 24/7 edge hardware.
A specialized system using REPO_UPGRADE_TRACKER.md to manage the evolution of 80+ repositories.
Coding help bot deployed in my Discord server:
- Answer questions about my tech stack (Next.js, FastAPI, Supabase)
- Review code snippets in threads
- Generate boilerplate from descriptions
- Run quick API tests on demand
AI-Agent-Nanobot/
βββ config/ # nanobot config templates
β βββ config.example.json
βββ docs/ # Deployment & Provider guides
β βββ deployment.md # SBC & Cloud setup
β βββ providers.md # LLM config (Claude, OpenRouter)
β βββ REPO_UPGRADE_TRACKER.md # Portfolio management system
βββ providers/ # Provider setup guides
β βββ openrouter-setup.md
β βββ local-vllm.md
β βββ deepseek-coder.md
βββ skills/ # High-fidelity skill definitions
β βββ web-searcher/ # Live search engine
β βββ notion-sync/ # Notion workspace integration
β βββ code-reviewer/ # Logic analysis
β βββ git-automator/
β βββ data-pipeline/
β βββ api-tester/
β βββ doc-generator/
βββ use-cases/ # Real-world deployment examples
β βββ personal-finance-monitor/
β βββ telegram-productivity-bot/
β βββ discord-code-assistant/
β βββ clawwork-coworker/
βββ workflows/ # Automation pipelines
β βββ hr-campaign.md # HR outreach system
β βββ mcp-tool-chain.md
β βββ multi-channel-bot.md
β βββ clawwork-coworker.md
β βββ memory-optimization.md
βββ website/ # Next.js β Vercel
βββ assets/ # Premium branding & assets
# Install from PyPI
pip install nanobot-ai
# Or from source
git clone https://github.com/HKUDS/nanobot.git
cd nanobot
pip install -e .
# Configure
cp config.example.json config.json
# Edit: model, channels, API keys
# Run
python -m nanobot
# Verify line count
bash core_agent_lines.sh- Multi-channel deployment (9 channels)
- OpenRouter provider routing
- MCP tool chain integration
- Heartbeat redesign (v0.1.4)
- Local vLLM guide for RPi
- Cost tracking dashboard
- Nanobot β ZeroClaw migration guide
- Community skill registry
| Repo | Focus |
|---|---|
| AI-Agent-OpenClaw | π¦ Full-stack Hub |
| AI-Agent-Nanobot | π Lightweight Lab Β· β You are here |
| AI-Agent-ZeroClaw | π¦ Rust Runtime |
| AI-Agent-PicoClaw | π¦ Edge/IoT |
| AI-Agent-NanoClaw | π Swarm Agent |
Part of the Claw Ecosystem by mk-knight23
MIT Β© mk-knight23
This project follows security best practices:
- No hardcoded credentials
- Dependency scanning enabled
- Security headers configured
- Regular security audits performed
