Clawbot Matthew Berman channel



https://www.youtube.com/watch?v=3GrG-dOmrLU

Here is a comprehensive Markdown guide based on the video content, detailing how to set up, configure, and master Clawdbot (OpenClaw).

The Ultimate Guide to Clawdbot (OpenClaw)

Clawdbot is a personal, highly capable AI assistant that runs on your own infrastructure. It connects to services like Gmail, Asana, Slack, and Telegram, allowing you to execute real-world tasks through a simple chat interface.


1. Installation & Setup (via Hostinger)

The video recommends using a Virtual Private Server (VPS) for security, uptime, and ease of use.

Steps to Deploy:

  1. Get a VPS: Go to Hostinger (Use code MATTHEWB for 10% off).
  2. Select Plan: Choose a KVM VPS plan (KVM 2 is recommended).
  3. One-Click Deploy: Look for the OpenClaw template.
  4. Configuration: During setup, you will enter your API keys:
  5. Connect Interface: Open the terminal in Hostinger and follow the onboarding to connect your preferred chat interface (e.g., Telegram).

2. Core Architecture (The Files that Make the Bot)

Clawdbot defines its behavior through specific Markdown (.md) files located in your directory. You can edit these via natural language chat.

  • **SOUL.md**: Defines the personality, core truths, and beliefs of the bot.
  • **IDENTITY.md**: Defines interaction style, name, vibe, emojis, and avatar.
  • **SKILLS.md**: The capabilities library. Defines how the bot browses the web, checks email, etc.
  • **TOOLS**: The actual code (usually .js) referenced by skills to execute tasks (e.g., asana-fetch.js).
  • **MEMORY/**: A folder where the bot stores long-term memories about the user.
  • **HEARTBEAT.md**: Defines tasks that run on a recurring basis (system heartbeat).

3. Model Management & Routing

Clawdbot allows for sophisticated model routing to balance cost, speed, and intelligence.

Hierarchy Example:

  • Primary Model: Claude 3.5 Sonnet (The workhorse).
  • Complex Tasks: Routes to Claude 3 Opus (e.g., heavy coding).
  • Fast/Cheap Tasks: Routes to Claude 3 Haiku or Gemini Flash.
  • Fallback: If a model hits a rate limit, it automatically falls back to the next one in the chain.

How to Switch Models:

  • Natural Language: Just ask, “Switch to Sonnet 4.5.”
  • Command: Type /model to view current logic or force a switch.
  • Auto-Routing: The bot assesses task complexity and chooses the best model automatically.

4. Skills & Tools

Skills are repeatable processes. If Clawdbot doesn’t know how to do something, you can simply tell it to, and it will write the skill itself.

  • Custom Skills: You can ask it to interact with almost any API (Gmail, Calendar, Asana, Hubspot).
  • ClawHub: Visit clawhub.com to browse community-made skills.
    • Warning: Always verify code from community skills before running them.
  • Cursor Agent Integration: You can install the Cursor Agent on your VPS and control it via Clawdbot to perform complex coding tasks remotely.

5. Automation & Scheduling (Cron Jobs)

You can schedule tasks using natural language. Clawdbot converts these requests into Cron jobs.

  • One-off reminders: “In 1 hour, remind me to drink water.”
  • Recurring tasks: “Every Sunday, tell me which recycling bin (paper or plastic) goes out based on this schedule photo.”

6. Advanced Workflows: Telegram Topics

To prevent “infinite context” issues and keep conversations organized, use Telegram Groups with Topics.

  1. Create a Telegram Group.
  2. Add Clawdbot as an Admin (give it permission to see all messages).
  3. Create separate Topics for different workflows (e.g., “Video Research,” “Server Updates,” “YouTube Analytics”).
  4. Benefit: This isolates context. The bot only loads the memory relevant to that specific topic, saving tokens and reducing confusion.

7. Security Best Practices

Because Clawdbot runs code and accesses your data, security is paramount.

The “Clean vs. Dirty Data” Concept

  • Clean Data: Internal files, trusted inputs.
  • Dirty Data: Incoming emails, web content, tweets.
  • Risk: Prompt Injection. A malicious email could contain hidden text telling the bot to export your API keys.
  • Mitigation: Use smarter models (Opus) for reading external data as they are more resistant to injection.

Security Audits

OpenClaw has a built-in security checker. Run this periodically in your terminal:

openclaw security audit


To automatically fix issues (like permissions):

openclaw security audit --fix


General Tips

  • Plan Mode: For complex tasks, ask the bot to propose a plan before executing it.
  • Environment Variables: Never store API keys in plain text files; ensure they are in .env.
  • Daily Review: Set up a scheduled task where the bot reviews its own memory and agent files daily to propose cleanup and check for errors.

8. Real-World Use Cases

A. Video Idea Pipeline

  • Trigger: Drop a link (X post, website) into Telegram.
  • Process: Clawdbot uses Brave API to research the link + Grok API to check social sentiment.
  • Output: Creates a formatted task in Asana for the team.

B. YouTube Analyst

  • Setup: Give Clawdbot access to YouTube Data & Analytics APIs.
  • Action: Ask “How are my last 3 videos performing?”
  • Output: Fetches view counts/metrics and posts a summary to Telegram and Slack.

C. Meeting Prep

  • Trigger: Cron job runs every morning.
  • Process: Checks Google Calendar for external meetings Searches Gmail for context on those people.
  • Output: Sends a briefing document to Telegram before the day starts.

Multimedia Generation

Clawdbot can handle multimedia via tools like Nano Banana (images) or ElevenLabs (voice).

  • Command: “Create an image of a lobster.”
  • Result: Generates and sends the image directly in the chat.