Logo
Getting Started

Introduction

What BabyClaw is, why it exists, and what you need to get started.

What is BabyClaw?

BabyClaw is a self-hosted gateway that connects an AI agent to Telegram. You run a single process on your machine (or a server), and it becomes a bridge between your messaging app and an AI model. You message it, it thinks, it can use tools, and it messages you back.

Why BabyClaw?

OpenClaw is a great project, but it's also a beast -- dozens of channels, companion apps, voice wake, canvas, sandboxing, and a codebase that moves fast. BabyClaw exists because sometimes you just want a personal AI assistant that you can understand end-to-end, hack on, and keep running without chasing upstream changes.

It's not a fork. It's a reimplementation of the parts that matter most for a single-user personal assistant.

Same workspace concept. Same skill ecosystem (ClawHub compatible). Just ~5% of the complexity.

What's included

  • Agent loop built on the Vercel AI SDK -- streaming tool calls, multi-provider support
  • SQLite database managed with Drizzle -- sessions, messages, schedules, heartbeats, all in one file
  • Telegram channel via grammY -- text, photos, streaming replies, command approval buttons
  • Scheduler -- one-off and recurring cron tasks with timezone support and overlap prevention
  • Heartbeat system -- periodic proactive check-ins with configurable active hours
  • Memory extraction -- automatic daily memory files
  • Workspace and skills -- personality files, agent instructions, and the full ClawHub skill ecosystem
  • Shell tool with allowlist/approval modes
  • Web search via Brave Search API
  • Cross-chat messaging -- link chats with aliases, send messages between them
  • CLI with interactive setup wizard, service management, and diagnostics

Architecture

flowchart TB
    Telegram["Telegram (grammY)"] --> Gateway
    Gateway --> AgentLoop["Agent Loop (Vercel AI SDK)"]
    Gateway --> SQLite["SQLite (Drizzle)"]
    Gateway --> Scheduler
    Gateway --> Heartbeat
    Gateway --> MemorySystem["Memory System"]
    Gateway --> Skills["Skills / ClawHub"]
    AgentLoop --> Providers["Anthropic / OpenAI / Google / Mistral / xAI / OpenRouter"]

BabyClaw vs OpenClaw

BabyClawOpenClaw
Codebase~5% of OpenClaw's sizeLarge (TypeScript + Swift + Kotlin)
Agent loopVercel AI SDKCustom Pi agent runtime
DatabaseSQLite (Drizzle)In-memory + file-based
ChannelsTelegram (extensible)13+ channels
Companion appsNonemacOS, iOS, Android
VoiceNoWake word + Talk Mode
CanvasNoA2UI visual workspace
SandboxingNoDocker per-session
SkillsClawHub compatibleClawHub compatible
WorkspaceSame conceptSame concept

What you need

  • Node.js 20 or newer
  • A Telegram bot token (free, from @BotFather)
  • An AI provider API key (Anthropic recommended, but OpenAI, Google, Mistral, xAI, and OpenRouter all work)

Ready to set it up? Run the one-liner or head to Installation for the full guide:

curl -fsSL https://babyclaw.org/install.sh | bash