Summary: A complete walkthrough from zero to a running AI agent. We'll install OpenClaw on a Raspberry Pi, connect it to Ollama for LLM inference, create a Telegram bot, and have your agent respond to messages โ€” all in under an hour.

What You'll Need

Step 1: Install Ollama

Ollama runs LLMs locally โ€” no API keys, no cloud dependencies, your data stays on your hardware.

curl -fsSL https://ollama.com/install.sh | sh

Verify installation:

ollama --version

Step 2: Install OpenClaw

OpenClaw is the agent runtime that orchestrates LLM calls, manages memory, and connects to messaging platforms.

npm install -g openclaw
openclaw init
openclaw gateway start

Step 3: Create a Telegram Bot

Open Telegram, search for @BotFather, send /newbot, and follow the prompts. Save the bot token securely.

Step 4: Connect Telegram to OpenClaw

Edit your gateway configuration to add the Telegram provider:

providers:
  telegram:
    enabled: true
    botToken: "YOUR_BOT_TOKEN"

Restart the gateway:

openclaw gateway restart

Step 5: Talk to Your Agent

Find your bot in Telegram, send /start, and say hello. Your AI agent is now live.

Next Steps

โœจ

Digital Futures Consultancy

Singapore-based AI-native consultancy. We build production-grade AI systems for SMEs. digitalfutures.asia

โ† Back to Insights