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:
- You already use it — no new app to learn
- Works on mobile and desktop, synced automatically
- Supports bots with full API access
- Fast, reliable, free
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
Install OpenClaw
Open your terminal and run:
Follow the prompts. Accept defaults. The install takes 1-2 minutes.
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.
Configure Your Environment
Create or edit the environment file:
Replace "sk-or-your-key-here" with your actual API key.
Create Your Telegram Bot
Open Telegram and search for @BotFather. Start the chat and follow these commands:
- Type
/newbot - Give it a name (e.g., "My AI Assistant")
- Give it a username ending in "bot" (e.g., myai_assistant_bot)
- Copy the HTTP API token BotFather gives you
Add the token to your environment:
Want to automate your life?
Check out my OpenClaw Ultimate Setup guide — the complete blueprint for building your personal AI automation system.