How to Install OpenClaw and Connect Telegram: Step-by-Step Beginner Guide
This is Day 2 of the OpenClaw Bootcamp, a 16-day series where you build a real AI agent from scratch. By the end of today, you will have a fully working AI agent running on your machine that you can message from your phone through Telegram.
I recorded a full video walkthrough for this session. If you prefer watching, here it is:
What You Are Building Today
By the end of this session, you will have four things:
- A fully installed OpenClaw agent running locally on your machine
- A live AI system connected to a real language model
- A Telegram bot and personal account connected to your agent
- Your first real back-and-forth conversation with your AI employee
This is not a simulation or a demo. This is a real system you own and control.
Step 1: Install Node.js
Node.js is the only prerequisite. OpenClaw runs on Node, so you need it installed before anything else. Head to the official Node.js website and install the LTS (Long Term Support) version. It takes two minutes.
You can verify the installation by opening a terminal and running node --version. If you see a version number, you are good to go.
Step 2: Run the OpenClaw Installer
OpenClaw ships with an installer and an onboarding wizard that walks you through the initial configuration. The wizard handles your model provider selection, API key setup, and workspace creation. Follow the prompts, it is designed to get you to a working state with minimal friction.
During the onboarding, you will choose your AI model provider (Anthropic, OpenAI, etc.) and enter your API key. This is the model your agent will use for thinking and responding. If you are unsure which to pick, start with whichever provider you already have an API key for.
Step 3: Start the Gateway and Open the Dashboard
Once installation is complete, start the OpenClaw gateway. This is the core process that keeps your agent running and handles all communication between your agent and the outside world. The dashboard gives you a web-based view of your agent's status, conversations, and configuration.
Send a test message through the dashboard to confirm everything is connected. If your agent responds, your system is live.
Step 4: Understand the Workspace
Before connecting Telegram, take a minute to understand your workspace files. OpenClaw creates a directory structure that contains your agent's configuration, memory, and personality files. The key file is your config, this is where model settings, channel configurations, and tool access are defined.
Understanding this structure early saves you hours of confusion later. Everything your agent knows, does, and connects to flows through these files.
Step 5: Connect Telegram
Telegram is the best starting channel for OpenClaw because it is free, fast, and supports both bot and personal account connections. You will set up two things:
- A Telegram Bot, created through BotFather, this gives your agent a dedicated bot account that anyone with the link can message.
- Personal Account Pairing, this connects your agent to your own Telegram account so you can message it directly in a private chat, just like texting a friend.
The combination of both gives you maximum flexibility. Use the bot for public-facing interactions and the personal pairing for your own private access.
Why Telegram Is the Right First Channel
People often ask why the bootcamp starts with Telegram instead of a website widget, WhatsApp, or voice. The answer is friction. Telegram has no phone-number provisioning, no billing setup, and no app-review queue standing between you and a working agent. BotFather hands you a token in under a minute, and the personal pairing gives you a private line to your agent that feels exactly like texting a contact.
That speed matters more than it sounds. The goal of Day 2 is not a polished product, it is the moment your agent replies to a message you sent from your phone. Once you have felt that, every later channel makes sense because you already understand the loop. OpenClaw is designed to run the same agent across many surfaces, so Telegram is a starting point rather than a limitation. When you are ready to expand, our guide on how to run OpenClaw across channels covers WhatsApp, web, and voice, and the OpenClaw framework overview explains what makes this portability possible.
Common Setup Errors and Fixes
The most common issues people hit during installation are:
- Wrong Node version, make sure you are on the LTS version, not an older one.
- API key issues, double-check your key is active and has the right permissions in your provider's dashboard.
- Telegram bot token errors, make sure you copy the full token from BotFather, including the colon and everything after it.
- Port conflicts, if the gateway fails to start, check that nothing else is running on the same port.
Where First-Time OpenClaw Installs Get Stuck
Security Habits to Build Now
Your agent has access to real APIs and real accounts. Build these habits from day one:
- Never share your API keys or bot tokens publicly
- Use environment variables instead of hardcoding secrets in config files
- Set up allowlists so only approved users can interact with your agent
- Review your agent's actions regularly through the dashboard
What You Have Now
At this point, you have a real AI agent running on your machine. You can message it from your phone. It responds with intelligence. And you fully own and control the entire system. This is the foundation everything else builds on.
In Day 3, we will dive into model selection, comparing cloud vs local models, understanding the tradeoffs, and connecting a fully local model so your agent can run for free on your own hardware. If you want to read ahead, our breakdown of the best OpenClaw model, cloud vs local, covers exactly that decision.
From Local Agent to Production: What Changes
The agent you built today runs on your laptop and answers only you. That is perfect for learning, but a production agent, one that handles real customer messages or runs unattended, needs three things this setup does not yet have: reliability, so it stays up when your laptop sleeps; observability, so you can see every action it took and why; and guardrails, so it cannot do something expensive or embarrassing without a check. OpenClaw is built with these concerns in mind, which is a large part of why it is used for serious deployments rather than toys.
Practically, that means hosting the gateway somewhere always-on, keeping secrets in a proper environment rather than a local file, and adding logging and allowlists before you point the agent at anything that matters. None of it is complicated, but skipping it is how weekend projects turn into 2 AM incidents. If you plan to run agents for a business rather than for yourself, our overview of the OpenClaw framework explains why production-readiness is the whole point.
What You Have Now, and What Is Next
By the end of Day 2 you own a real, running AI agent you can message from your phone. That foundation, a live agent connected to a real model over a real channel, is what every later lesson builds on. Get it working, message it a few times, and let the fact that you now have your own AI system sink in before moving on.
Need help with your OpenClaw setup? OpenClaw Consult offers setup, troubleshooting, and custom implementation services. Verify fit, scope, and evidence before selecting any provider.
FAQ
Frequently Asked Questions
How long does it take to install OpenClaw and connect Telegram?
For most people, under an hour. Node.js takes about two minutes, the OpenClaw onboarding wizard walks you through model and API-key setup, and the Telegram side is a BotFather bot plus a personal pairing. The slow part is usually double-checking your API key and bot token rather than the install itself.
Do I need to know how to code to run OpenClaw?
No. Day 2 of the bootcamp is deliberately no-code beyond running a couple of terminal commands. The onboarding wizard handles configuration, and you interact with your agent through Telegram like any chat app. Coding becomes useful later when you start writing custom tools, but it is not required to get a working agent live today.
Why connect Telegram instead of another channel first?
Telegram is free, fast, and supports both a public bot and a private personal pairing, so you get a shareable agent and your own direct line to it in one setup. There is no phone-number provisioning, no billing, and no approval queue. That low friction is exactly what you want for your very first working agent.
Is my OpenClaw agent secure if it has my API keys?
It is as secure as your habits. Keep keys and bot tokens in environment variables rather than hardcoded config, never share them publicly, set an allowlist so only approved users can message the agent, and review its actions in the dashboard. Because the agent can call real APIs and accounts, those habits matter from day one, not later.
What comes after Telegram in the OpenClaw Bootcamp?
Day 3 covers model selection, comparing cloud and local models and connecting a fully local model so your agent can run for free on your own hardware. From there the series moves into tools, memory, and multi-channel deployment. Telegram is the foundation the rest of the build sits on.
Program · 90 days
Client Accelerator bundles the demo software with live coaching.
A one-time $1,499 purchase, or 4 interest-free payments of $374.75. Includes 90 days of Ciela Core with 150 personalized demos a month, two live group coaching calls a week, the private Client Accelerator spaces, priority approval to Kingstone AI Operators, and 200+ n8n workflow templates.
See what is includedCiela is the demo platform for AI agencies and AI consultants. It turns any prospect's website into a live, personalized AI demo (chat, voice, or missed-call text-back) you can send before the first call.
Start Client AcceleratorCiela pricingAgent builds by nicheAll articles
Community · Training
Join Kingstone AI Operators free.
Kingstone AI Operators is the free community for people building and growing AI service businesses. Learn alongside other operators as you package, demonstrate, sell, and deliver practical AI systems.
Join Kingstone AI Operators free