Looking to automate your daily tasks with AI? This complete OpenClaw AI automation setup guide will show you how to install and configure OpenClaw—the viral open-source AI agent that runs locally on your hardware and connects to messaging apps like WhatsApp, Telegram, Discord, and more. By the end of this tutorial, you’ll have a fully functional personal AI assistant that can manage files, browse the web, send emails, and execute complex automation workflows in 2026.
What is OpenClaw and Why It’s Different
OpenClaw (formerly Clawdbot/Moltbot) is an open-source AI agent platform that exploded in popularity in early 2026, gaining over 60,000 GitHub stars within days. Unlike cloud-based AI assistants, OpenClaw runs entirely on your local machine—whether that’s a Mac, Windows PC, Linux server, or even a Raspberry Pi.
What makes OpenClaw unique:
- Local-first execution – Your data stays on your hardware, no cloud dependency
- LLM flexibility – Works with Claude, OpenAI, DeepSeek, or local models via Ollama
- Messaging integrations – Control via WhatsApp, Telegram, Discord, Slack, Signal, iMessage
- Self-extensible Skills – 100+ pre-built automation bundles plus community plugins
- Proactive automation – 24/7 monitoring with heartbeat schedulers and cron jobs
This OpenClaw AI automation setup tutorial covers everything from installation to creating your first automation workflow.
Prerequisites for OpenClaw Installation
Before starting your OpenClaw AI automation setup, gather these requirements:
System Requirements
- Operating System: macOS 10.15+, Windows 10/11, Linux (Ubuntu 20.04+, Debian, RHEL)
- RAM: Minimum 4GB, recommended 8GB+ for complex workflows
- Disk Space: 2GB for base installation, more for local LLM models
- Node.js: Version 18 or higher (LTS recommended)
Required Accounts
- LLM API Key: Anthropic Claude (recommended), OpenAI, or DeepSeek account
- Messaging Platform: WhatsApp Business API, Telegram Bot Token, or Discord Bot
- Optional: ElevenLabs (for TTS), GitHub (for version control), email SMTP credentials
Recommended Skills
- Basic command-line/terminal usage
- Understanding of API keys and environment variables
- Familiarity with JSON configuration files
Step-by-Step OpenClaw Installation
Step 1: Install Node.js
OpenClaw requires Node.js 18 or higher. Check your version:
node --version
If you need to install or update Node.js:
On Ubuntu/Debian Linux:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
On macOS (using Homebrew):
brew install node@20
node --version
On Windows:
Download the installer from nodejs.org and run it, or use winget:
winget install OpenJS.NodeJS.LTS
Step 2: Install OpenClaw via NPM
Install OpenClaw globally using npm (Node Package Manager):
npm install -g openclaw
Verify installation:
openclaw --version
You should see the OpenClaw version number. If you encounter permissions errors on Linux/Mac, use:
sudo npm install -g openclaw
Step 3: Initialize Your OpenClaw Workspace
Create a dedicated directory for your OpenClaw configuration:
mkdir ~/openclaw-workspace
cd ~/openclaw-workspace
openclaw init
This creates the essential configuration structure:
openclaw.json– Main configuration fileAGENTS.md– Your agent’s behavior guidelinesSOUL.md– Personality and tone configurationUSER.md– Information about you for contextmemory/– Long-term memory storageskills/– Custom automation skills
Step 4: Configure LLM Provider
Edit openclaw.json to add your LLM API credentials. For Claude (recommended):
{
"llm": {
"provider": "anthropic",
"model": "claude-sonnet-4-5",
"apiKey": "YOUR_ANTHROPIC_API_KEY_HERE"
},
"workspace": "~/openclaw-workspace"
}
For OpenAI:
{
"llm": {
"provider": "openai",
"model": "gpt-4-turbo",
"apiKey": "YOUR_OPENAI_API_KEY_HERE"
}
}
Get API keys:
- Anthropic Claude: console.anthropic.com
- OpenAI: platform.openai.com/api-keys
Step 5: Set Up Messaging Integration
Configure at least one messaging platform for interacting with your AI agent. Telegram is the easiest to start with.
Setting Up Telegram Bot
1. Open Telegram and search for @BotFather
2. Send /newbot and follow prompts to create your bot
3. Copy the bot token (looks like: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
4. Add to openclaw.json:
{
"channels": {
"telegram": {
"enabled": true,
"token": "YOUR_TELEGRAM_BOT_TOKEN",
"allowedUsers": ["your_telegram_username"]
}
}
}
Setting Up WhatsApp (Advanced)
WhatsApp integration requires more setup. Options include:
- WhatsApp Business API (official, paid)
- Baileys library (unofficial, requires QR code pairing)
- WhatsApp Web multi-device (community solution)
See the official OpenClaw WhatsApp documentation for detailed setup instructions.
Step 6: Start the OpenClaw Gateway
The OpenClaw gateway handles messaging connections and agent runtime. Start it with:
openclaw gateway start
Check status:
openclaw gateway status
You should see output indicating the gateway is running and connected channels are active.
Step 7: Test Your AI Agent
Send a message to your configured channel (Telegram bot, Discord, etc.):
Hello! Can you tell me about yourself?
Your OpenClaw agent should respond based on your SOUL.md personality configuration. Try these test commands:
/status– View agent status and token usageWhat's the weather today?– Test web search skillCreate a file called test.txt with the text "Hello World"– Test file operationsRun: ls -la– Test shell command execution (if enabled)
Configuring Your AI Agent’s Personality
OpenClaw uses markdown files to define your agent’s behavior. This makes your OpenClaw AI automation setup unique to your needs.
SOUL.md – Defining Personality
Edit SOUL.md to customize how your agent communicates:
# SOUL.md - Who You Are
## Role
You are Alex, a helpful personal assistant focused on productivity and automation.
## Tone
- Professional but friendly
- Concise and clear
- Proactive with suggestions
## Principles
- Privacy first - never share personal data
- Ask before destructive operations
- Learn from mistakes and document them
USER.md – Teaching Context About You
Help your agent understand you better:
# USER.md - About Your Human
- **Name:** John Smith
- **Timezone:** America/New_York
- **Work Schedule:** Mon-Fri, 9am-5pm
- **Preferences:**
- Communication: Direct, no filler phrases
- Morning coffee at 7am (remind me!)
- Afternoon focus time: 2-4pm (no interruptions)
AGENTS.md – Behavioral Guidelines
Define operating procedures:
# AGENTS.md - Your Workspace
## Daily Routine
- Check emails at 8am and 2pm
- Review calendar for next 24 hours
- Weekly summary every Friday at 4pm
## Safety Rules
- Never send emails without explicit confirmation
- Don't run system commands that modify files
- Ask before purchases or financial transactions
Essential OpenClaw Skills and Automation
OpenClaw’s power comes from its extensible Skills system. Skills are plugins that add capabilities to your agent.
Installing Skills from ClawHub
Browse available skills at clawhub.com. Install using the CLI:
clawhub install weather
clawhub install email-sender
clawhub install calendar-sync
List installed skills:
clawhub list
Popular Skills for Productivity
- weather – Get weather forecasts via wttr.in
- web-search – Search the web with Brave or Perplexity
- web-fetch – Extract content from URLs
- email-sender – Send emails via SMTP
- calendar-sync – Google Calendar integration
- github-manager – Create issues, review PRs
- youtube-dl – Download and transcribe videos
Creating Custom Skills
Create a skill directory:
mkdir -p skills/my-custom-skill
cd skills/my-custom-skill
Create SKILL.md:
# My Custom Skill
## Description
This skill does X when Y happens.
## Usage
When the user asks "do the thing", execute the script.
## Scripts
- `script.sh` - Main automation script
Add your script and OpenClaw will automatically load it on restart.
Setting Up Proactive Automation
One of the most powerful features of your OpenClaw AI automation setup is proactive behavior—your agent acts without being asked.
Heartbeat Monitoring
Heartbeats allow your agent to periodically check things and alert you. Edit HEARTBEAT.md:
# HEARTBEAT.md
## Every 30 Minutes
- Check for urgent emails (unread from VIPs)
- Look for calendar events in next 2 hours
- Check server status if uptime < 99%
## Once Daily (8am)
- Weather forecast for the day
- News summary on topics: AI, Linux, productivity
- GitHub notifications summary
Configure heartbeat interval in openclaw.json:
{
"heartbeat": {
"enabled": true,
"intervalMinutes": 30,
"quietHours": {
"start": "23:00",
"end": "07:00"
}
}
}
Cron Jobs for Scheduled Tasks
Create scheduled automations using OpenClaw’s cron system (similar to how Windows Start Menu manages startup programs, but for automation tasks):
openclaw cron add "Daily backup" "0 2 * * *" "Run backup script and email results"
List cron jobs:
openclaw cron list
Real-World Automation Examples
Here are practical automation workflows to implement in your OpenClaw AI automation setup:
Example 1: Morning Briefing Automation
# Daily at 7:30am
1. Check weather for your location
2. Summarize unread emails (VIP senders only)
3. List today's calendar events
4. Top 3 news stories in your interests
5. Send formatted briefing to Telegram
Example 2: Smart Email Triage
# Every 2 hours during work hours
1. Scan new emails
2. Categorize: Urgent / Action Needed / FYI / Spam
3. Auto-respond to meeting requests
4. Flag emails requiring action
5. Notify on urgent items only
Example 3: Content Research Assistant
# On-demand via chat command
1. User: "Research AI agents for blog post"
2. Agent searches web for latest trends
3. Extracts key points from top 10 articles
4. Generates outline with citations
5. Saves to workspace as markdown file
6. Notifies when complete
Example 4: DevOps Monitoring
# Continuous monitoring
1. Check server uptime every 5 minutes
2. Monitor disk space, RAM, CPU
3. Alert on threshold breaches
4. Auto-restart failed services
5. Log issues to GitHub
6. Send summary to Discord channel
Security and Privacy Best Practices
Running a local AI agent requires careful security configuration:
Protecting API Keys
Never commit openclaw.json with API keys to public repositories. Use environment variables:
export ANTHROPIC_API_KEY="your-key-here"
export TELEGRAM_BOT_TOKEN="your-token-here"
Reference in config:
{
"llm": {
"apiKey": "${ANTHROPIC_API_KEY}"
}
}
Restricting Command Execution
Limit dangerous operations by configuring tool policies in openclaw.json:
{
"tools": {
"exec": {
"enabled": true,
"security": "allowlist",
"allowedCommands": ["ls", "cat", "grep", "systemctl status"]
}
}
}
Channel Authentication
Always restrict messaging channels to authorized users:
{
"channels": {
"telegram": {
"allowedUsers": ["your_username"],
"allowedChatIds": [123456789]
}
}
}
Data Retention Policies
Configure how long OpenClaw keeps memory and logs:
{
"memory": {
"retentionDays": 90,
"autoCleanup": true
},
"logging": {
"maxSizeMB": 100,
"rotateDaily": true
}
}
Troubleshooting Common Issues
Gateway Won’t Start
Problem: openclaw gateway start fails
Solutions:
- Check Node.js version:
node --version(must be 18+) - Verify config syntax:
openclaw config validate - Check logs:
openclaw logs --tail 50 - Kill zombie processes:
pkill -9 openclaw && openclaw gateway start
Agent Not Responding
Problem: Messages sent to Telegram/WhatsApp get no response
Solutions:
- Check gateway status:
openclaw gateway status - Verify channel config:
openclaw config show channels - Test LLM connection:
openclaw test llm - Check user permissions in
openclaw.json
High API Costs
Problem: LLM API bills are unexpectedly high
Solutions:
- Switch to smaller models:
claude-haikuorgpt-3.5-turbo - Reduce heartbeat frequency in config
- Disable verbose logging:
thinking: "off" - Set token budgets per session
- Consider local models via Ollama for routine tasks
Advanced Configuration Options
Multi-Model Strategy
Use different models for different tasks to optimize costs:
{
"models": {
"default": "claude-sonnet-4-5",
"thinking": "claude-opus-4",
"quick": "claude-haiku",
"coding": "gpt-4-turbo"
},
"modelSelection": {
"autoSelect": true,
"rules": [
{"task": "code", "model": "coding"},
{"task": "research", "model": "thinking"},
{"task": "chat", "model": "quick"}
]
}
}
Sub-Agent Orchestration
Spawn specialized sub-agents for complex tasks:
# In your main agent chat:
"Spawn a research agent to analyze the top 10 AI papers this week"
# OpenClaw creates isolated sub-agent:
- Runs in parallel session
- Uses different model (e.g., thinking model)
- Reports back when complete
- Can be monitored with: openclaw subagents list
Custom Skill Development
Create enterprise-grade skills with proper error handling, like managing complex systems similar to Microsoft Intune for device management:
skills/
my-enterprise-skill/
SKILL.md # Documentation
skill.json # Metadata
scripts/
main.py # Primary logic
utils.py # Helper functions
tests/
test_main.py # Unit tests
README.md # Usage guide
Integration with Other Tools
Home Assistant Integration
Control smart home devices through OpenClaw:
"Turn off living room lights and set thermostat to 68°F"
GitHub Workflow Automation
"Create issue for bug in main branch, assign to John, label: urgent"
Calendar and Email Sync
"Schedule meeting with Jane next Tuesday at 2pm, send calendar invite"
Cloud Infrastructure Management
"Check AWS EC2 instance status and restart any stopped instances"
Resources and Community
Continue learning and get support:
- Official Docs: docs.openclaw.ai
- GitHub Repo: github.com/openclaw/openclaw
- Discord Community: discord.com/invite/clawd
- Skill Repository: clawhub.com
- YouTube Tutorials: Search “OpenClaw tutorial 2026”
For related automation topics, check out our guides on Office Suite productivity and network basics.
Conclusion: Your AI Automation Journey Begins
Congratulations! You’ve completed this comprehensive OpenClaw AI automation setup guide. You now have a powerful, local-first AI assistant capable of automating tasks across messaging platforms, managing files, browsing the web, and executing custom workflows.
Key takeaways from this tutorial:
- OpenClaw runs locally with full data privacy and control
- Works with any LLM (Claude, OpenAI, DeepSeek, or local models)
- Integrates with messaging apps for natural interaction
- Extensible via Skills for unlimited automation possibilities
- Proactive monitoring with heartbeats and cron jobs
- Security-first approach with command restrictions and auth controls
Start with simple automations—morning briefings, email triage, or weather alerts—then gradually build more complex workflows. The OpenClaw community on Discord and GitHub is incredibly helpful for troubleshooting and sharing automation ideas.
What will you automate first? Share your OpenClaw setup and automation stories in the comments below, and don’t forget to explore the ClawHub repository for pre-built skills that can jumpstart your productivity!
Ready to level up? Check out our advanced guides on sub-agent orchestration, custom skill development, and enterprise deployment strategies coming soon.
Hi, I’m Mark, the author of Clever IT Solutions: Mastering Technology for Success. I am passionate about empowering individuals to navigate the ever-changing world of information technology. With years of experience in the industry, I have honed my skills and knowledge to share with you. At Clever IT Solutions, we are dedicated to teaching you how to tackle any IT challenge, helping you stay ahead in today’s digital world. From troubleshooting common issues to mastering complex technologies, I am here to guide you every step of the way. Join me on this journey as we unlock the secrets to IT success.


