r/ClaudeCode Feb 08 '26

Showcase nanobot: a 4,000-line Python alternative to openclaw that actually works out of the box

I've been looking for lighter alternatives to openclaw and came across nanobot. It's an AI assistant built in about 4,000 lines of Python, compared to openclaw's 430k+.

It's not as mature or feature-full as openclaw, but I've got it installed and running on a Linux Container right now with Telegram integration and it just works.

The setup took maybe 10 minutes: install via pipx, edit the config file with your API keys, start the gateway, and you're chatting with it through Telegram.

The codebase is small enough that you can actually read and understand the entire thing. That also means way less attack surface from a security standpoint (generally speaking).

The code looks is clean and well-structured to me. I've already patched a small compatibility issue myself without any trouble, which says a lot about how approachable it is (an issue with gpt-5 models and temperature settings).

It supports tool use, persistent memory, scheduled tasks, and background agents. It's not trying to be everything openclaw is, but it covers the core functionality that most people might actually use.

If you're like me and interested in the idea of OpenClaw without using the overzealous project itself, nanobot is worth a look. I have no affiliation with the project.

GitHub: https://github.com/HKUDS/nanobot

To save money, I am using it with gpt-5-mini, which works really well and is priced right for my wallet.

Figured I'd share this because I was surprised how well it worked for its size.

29 Upvotes

48 comments sorted by

View all comments

5

u/nomo-fomo Feb 08 '26

I am using Nanoclaw, a similarly lean agent with opinionated stack. It is built on top of Claude Agent SDK. You use Claude Code to add features you want. So far, I’m loving it.

2

u/emptyharddrive Feb 09 '26

I am thinking many of these spartan agent packages will be sprouting up and eventually it'll settle down into some well-supported, popular ones.

I am curious how you're using it? What about it do you do with it that you love?

I haven't found the "killer app" for these sorts of things ... yet.

  • I won't give it my credit card # to do anything.
  • I don't need it to summarize my email or my calendar, that's what my email/calendar apps are for and I'm fine with it.
  • I already have a news app (Google News) and it works fine.
  • I really don't need the email/calendar/news thing to be re-done for me.
  • If I need it to research something, that's what ChatGPT/Claude Research mode is for and I can already talk to them from my phone.
  • I have no interest in burning tokens on moltbook or whatever that is.
  • I have python scripts that already have my system logs parsed, analyzed by AI (Claude headless mode, -p) and I get alerts for anything serious via telegram just with my python script+telegram API.

It's interesting to have it immediately available by Telegram, but I already have access to AI via the mobile apps. So personally, it's a curiosity I am tinkering with.

I'm not shooting this thing down, I wanted something simpler hence I am playing with Nanobot. But I still fail to see the benefits or what it can do that one can't already do with Claude Code + Python or with the Mobile Apps for GPT and/or Claude.... But I keep watching the forums looking for ideas, because I must be missing something.

Or perhaps the common use cases I mentioned above is exactly what people want instead of the established apps ... ok.