OpenClaw Framework: Open-Source Telegram AI Bot

OpenClaw Setup Guide: Step-by-Step

Step-by-step guide to installing and configuring OpenClaw. From BotFather registration to first message, complete installation walkthrough.

2 min

setup in minutes

Free

no credit card needed

3 AI

Claude · GPT-5.5 · Gemini

PREREQUISITES

Prerequisites

Before starting, you'll need: a Telegram account, a server or VPS (or local development machine for testing), Node.js 18+ installed, and API keys for at least one AI model (Anthropic Claude, OpenAI, or Google Gemini).

Skip setup with TeleClaw
Prerequisites

STEP 1: BOTFATHER

Step 1: Register with BotFather

Open @BotFather in Telegram, send /newbot, and follow the prompts to create your bot. You'll receive an API token. Store this securely, it's your bot's authentication credential.

Get the managed version
Step 1: Register with BotFather

How it works

3 Steps to Install and Run OpenClaw Locally

Step 1

Register with BotFather

Create your bot token via @BotFather. Clone the OpenClaw repo and fill in your environment variables. The entire prerequisite checklist takes under 15 minutes.

Step 2

Add your bot to a group

Run docker-compose up, add your freshly deployed bot to a Telegram group as admin, and send /start to confirm the installation is live.

Step 3

Delegate your tasks

Write your custom instructions and let OpenClaw handle AI responses, group management, and webhooks. Extend the framework only where your use case demands it.

STEP 2: INSTALL

Step 2: Install and Configure OpenClaw

Clone the OpenClaw repository and copy the example environment file. Set your Telegram Bot Token, choose your AI model providers, and configure your database connection (SQLite for development, PostgreSQL for production).

Try TeleClaw instead
Step 2: Install and Configure OpenClaw

STEP 3: DEPLOY

Step 3: Deploy and Test

Start OpenClaw with npm start or docker-compose up. Send /start to your bot in Telegram to verify it's running. Test basic conversation, then add it to a test group to verify group functionality.

Go live in 2 minutes
Step 3: Deploy and Test

Try TeleClaw Free

Add AI to your Telegram in under two minutes. No setup needed.

Open TeleClaw Dashboard