A beginner-friendly deployment tutorial for Clawdbot (now OpenClaw), covering installation, configuration, and setup on Mac Mini, Windows, Linux, or VPS.
Clawdbot Step-by-Step Deployment Tutorial
Clawdbot (now OpenClaw) is a highly integrated open-source AI agent that has gained popularity recently. It can understand instructions like a human, break them down, and automatically run through entire task workflows you assign.
This tutorial teaches you how to deploy Clawdbot yourself.
You can use:
- Mac Mini
- Windows / Linux host / VPS
Step 1: Run Installation Script
The easiest way to get started. Open your terminal and run:
curl -fsSL https://install.clawdbot.dev | bashOr for OpenClaw:
npm install -g openclawStep 2: Initialize Configuration
After installation, run the onboarding wizard:
clawdbot onboard
# Or for OpenClaw
openclaw onboardThis will guide you through:
- Selecting your AI provider (Anthropic Claude or OpenAI)
- Configuring your API key
- Setting up your preferred messaging platform
Step 3: Configure AI Model
Choose your preferred AI model:
Recommended: Claude 3.5 Sonnet
- Better long-context understanding
- More reliable for complex multi-step tasks
Alternative: GPT-4
- Good performance
- More widely available
Step 4: Configure API Key and Port
Set up your API credentials:
- For Claude: Get API key from console.anthropic.com
- For OpenAI: Get API key from platform.openai.com
Default port is 18789. You can customize this in the configuration.
Step 5: Configure Chat Channel
Connect to your preferred messaging platform:
Telegram (Recommended for Beginners)
- Message @BotFather on Telegram
- Send
/newbotcommand - Set bot name and username (must end with 'bot')
- Copy the Bot Token provided
- Paste it in the ClawdBot configuration
Discord
- Go to Discord Developer Portal
- Create New Application
- Go to Bot section, create bot
- Copy Bot Token
- Configure in ClawdBot
Requires phone QR code login. More complex setup.
Step 6: Configure Skills
Skills extend ClawdBot's capabilities:
# List available skills
clawdbot skills list
# Install a skill
clawdbot skills install google-calendar
clawdbot skills install github
clawdbot skills install slackCommon skills:
- google-calendar: Manage calendar events
- gmail: Read and send emails
- github: View issues, PRs, code
- slack: Send messages to Slack channels
Step 7: Extended Configuration
Additional configuration options:
Memory System
Enable persistent memory:
{
"memory": {
"enabled": true,
"storage": "local"
}
}Sub-agents
Enable parallel task execution:
{
"subAgents": {
"enabled": true,
"maxConcurrent": 3
}
}Cron Jobs
Set up automated tasks:
openclaw cron create --name "daily-briefing" --schedule "0 8 * * *"Step 8: Complete Configuration and Start
After configuration, start the service:
clawdbot start
# Or
openclaw startCheck if running:
ss -lntp | grep 18789If you see output, the service started successfully!
Step 9: Start Using
- Open your messaging app (Telegram, Discord, etc.)
- Find your bot
- Send
/startor any message - Start chatting with your AI agent!
Example Commands
- "Check my calendar for today"
- "Summarize my unread emails"
- "Create a task in Linear: Fix login bug"
- "Search for recent AI news"
Troubleshooting
Service won't start:
- Check if port 18789 is available
- Verify Node.js version (must be 22+)
- Check logs:
clawdbot logs
Can't connect to messaging platform:
- Verify bot token is correct
- Check firewall settings
- Ensure webhook URL is accessible
API errors:
- Verify API key is valid
- Check API rate limits
- Ensure billing is set up
Security Best Practices
- Restrict access: Use
allowFromto limit who can use your bot - Use environment variables: Don't hardcode API keys
- Enable approval mode: Require confirmation for destructive actions
- Regular backups: Back up your workspace and configuration
- Monitor logs: Regularly check for unusual activity
Next Steps
- Explore more Skills on ClawHub
- Set up automated workflows with Cron
- Configure sub-agents for parallel processing
- Customize your AI's personality with SOUL.md
Happy automating with your AI agent!