ScriptsApr 4, 2026·3 min read

NanoClaw — Lightweight Personal AI Assistant

A minimal alternative to OpenClaw that runs Claude agents in isolated containers. Connects to WhatsApp, Telegram, Slack, Discord, and Gmail with just 500 lines of TypeScript.

TL;DR
NanoClaw runs Claude agents in containers and connects them to WhatsApp, Telegram, Slack, Discord, and Gmail with minimal code.
§01

What it is

NanoClaw is a lightweight personal AI assistant that runs Claude agents in isolated Docker containers and connects them to messaging platforms. It supports WhatsApp, Telegram, Slack, Discord, and Gmail as communication channels. The entire codebase is roughly 500 lines of TypeScript, making it easy to understand and modify.

Individuals who want a personal AI assistant accessible across their messaging apps and developers looking for a minimal, self-hosted alternative to heavier AI assistant frameworks will find NanoClaw practical. It is designed as a simpler alternative to OpenClaw.

§02

How it saves time or tokens

Setting up an AI assistant that works across multiple messaging platforms typically requires building separate integrations for each service. NanoClaw provides pre-built connectors for five platforms in a single project. Running in Docker containers provides isolation and reproducibility. The minimal codebase means you can customize behavior without navigating a large framework.

§03

How to use

  1. Clone the repository:
git clone https://github.com/qwibitai/nanoclaw.git
cd nanoclaw
  1. Run Claude Code in the project directory:
claude
  1. Inside the Claude session, run the setup skill:
/setup
  1. Claude Code reads the project CLAUDE.md and walks you through configuring messaging platform credentials and environment variables.
§04

Example

# Clone and set up
git clone https://github.com/qwibitai/nanoclaw.git
cd nanoclaw

# Configure environment
cp .env.example .env
# Edit .env with your API keys:
# ANTHROPIC_API_KEY=your-key
# TELEGRAM_BOT_TOKEN=your-token
# SLACK_BOT_TOKEN=xoxb-your-token

# Build and run
docker compose up -d

# The assistant is now reachable on your configured platforms
§05

Related on TokRepo

§06

Common pitfalls

  • Each messaging platform requires its own API credentials. Set up bot tokens for Telegram, app tokens for Slack, and OAuth for Gmail before starting the service.
  • Docker is required for container isolation. NanoClaw does not run natively without containerization.
  • The assistant uses Claude as its LLM backend, so you need a valid Anthropic API key. Token costs depend on conversation volume across all connected platforms.

Frequently Asked Questions

What messaging platforms does NanoClaw support?+

NanoClaw supports WhatsApp, Telegram, Slack, Discord, and Gmail. Each platform requires its own API credentials configured in the environment file. The assistant maintains separate conversation contexts per platform and per user.

How does NanoClaw compare to OpenClaw?+

NanoClaw is a minimal alternative to OpenClaw, built with roughly 500 lines of TypeScript compared to OpenClaw larger codebase. It focuses on simplicity and ease of modification while providing the core functionality of running Claude agents with multi-platform messaging integration.

Does NanoClaw require Docker?+

Yes. NanoClaw runs Claude agents in isolated Docker containers for security and reproducibility. Docker and Docker Compose are prerequisites. The container setup handles dependency management and environment isolation.

Can I customize the AI assistant behavior?+

Yes. The codebase is intentionally small (around 500 lines of TypeScript) to make customization straightforward. You can modify the system prompt, add custom tools, change conversation handling logic, or add new messaging platform connectors.

What LLM does NanoClaw use?+

NanoClaw uses Anthropic Claude as its LLM backend. You need a valid ANTHROPIC_API_KEY in your environment configuration. The assistant sends messages from your connected platforms to Claude and returns the responses through the same channel.

Citations (3)
🙏

Source & Thanks

Created by qwibitai. Licensed under MIT.

nanoclaw — ⭐ 26,400+

Thank you to the Qwibit team for building a clean, minimal alternative to OpenClaw.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets