March 13, 2026

How to Set Up a Personal AI Assistant on Telegram (Free)

Imagine having an AI assistant in your pocket. You message it on Telegram, it responds instantly, and it handles tasks for you — research, writing, scheduling, coding. All from your phone.

This is not a product you need to buy. You can build it yourself in about 20 minutes using free tools. Here is exactly how.

What you need before starting:

  • A Telegram account (free, on mobile or desktop)
  • A computer to run the setup (can be a laptop, not a server)
  • 10-15 minutes of focused time

Why Telegram?

Telegram is the best interface for a personal AI assistant because:

Your AI assistant becomes just another chat contact. You message it the same way you message anyone else.

The Approach

We will use OpenClaw — an open-source AI agent framework that runs locally on your machine. It connects to Telegram and gives you a powerful assistant powered by free models.

Alternative approaches exist (like BotFather + custom code), but OpenClaw is faster to set up and comes with tool support built-in.

Step-by-Step Setup

1

Install OpenClaw

Open your terminal and run:

curl -sSL https://get.openclaw.com | sh

Follow the prompts. Accept defaults. The install takes 1-2 minutes.

2

Get a Free API Key

Go to openrouter.ai and sign up (free, no credit card). Create an API key at openrouter.ai/keys.

Copy the key. You will paste it in the next step.

3

Configure Your Environment

Create or edit the environment file:

# ~/.openclaw/.env OPENROUTER_API_KEY=sk-or-your-key-here

Replace "sk-or-your-key-here" with your actual API key.

4

Create Your Telegram Bot

Open Telegram and search for @BotFather. Start the chat and follow these commands:

  1. Type /newbot
  2. Give it a name (e.g., "My AI Assistant")
  3. Give it a username ending in "bot" (e.g., myai_assistant_bot)
  4. Copy the HTTP API token BotFather gives you

Add the token to your environment:

# ~/.openclaw/.env (add this line) TELEGRAM_BOT_TOKEN=your-token-here

Want to automate your life?

Check out my OpenClaw Ultimate Setup guide — the complete blueprint for building your personal AI automation system.