Chapter 3 · Free~1 min read
Installation
Deploy OpenClaw using Docker Compose for the fastest setup experience.
Clone Repository
git clone https://github.com/openclaw/openclaw.git
cd openclaw
Configure Environment Variables
Create .env file from template:
cp .env.example .env
Edit .env with your credentials:
# LLM Provider
OPENAI_API_KEY=sk-your-key-here
# Telegram Bot
TELEGRAM_BOT_TOKEN=your-bot-token
# Admin User
ADMIN_TELEGRAM_ID=your-telegram-user-id
Start Services
docker compose up -d
This starts:
- OpenClaw gateway service
- PostgreSQL database
- Redis cache
Health Check
Verify all services are running:
docker compose ps
curl http://localhost:8080/health
Expected response: {"status":"ok"}
First Interaction
Open Telegram and message your bot. Send /start to verify it responds correctly.
Related Blog Posts
Want to practice? Join community for $50 AI credits + live Q&A
Join ¥99