Back to articles
Tutorial

OpenClaw: The Open-Source AI Agent Framework That Turns LLMs Into Personal Assistants

A complete guide to OpenClaw - the fastest-growing open-source AI agent framework in 2026. Learn how to set it up, connect it to WhatsApp/Telegram, and automate your digital life.

14 min read

What Is OpenClaw?

OpenClaw is an open-source AI agent framework that transforms large language models (Claude, GPT, Gemini) into personal assistants that can actually DO things -- not just chat.

While most AI tools are limited to conversation, OpenClaw connects your AI to real-world actions:

  • Clear your inbox and summarize important emails
  • Manage your calendar and schedule meetings
  • Check in for flights automatically
  • Run shell commands on your machine
  • Control smart home devices
  • And hundreds of community-built skills
  • Originally known as Clawdbot, OpenClaw has become one of the fastest-growing open-source projects in early 2026, with over 500 community-built skills available on ClawHub.

    Why OpenClaw Matters for Developers

    1. Local-First Privacy

    Unlike cloud-based AI assistants, OpenClaw runs on your machine. Your data stays local unless you explicitly configure external API calls. No conversations stored on corporate servers.

    2. Model Agnostic

    Switch between AI models based on your needs:

  • Use Claude for complex reasoning tasks
  • Use GPT-4o for multimodal understanding
  • Use Gemini for longer context windows
  • Use local models (Ollama) for complete privacy
  • 3. Messaging Integration

    Interact with your AI assistant through apps you already use:

  • WhatsApp
  • Telegram
  • Discord
  • Slack
  • SMS (via Twilio)
  • This means you can message your AI assistant from your phone, anywhere, anytime.

    4. Extensible Skills System

    OpenClaw uses a skills architecture. Each skill is a module that gives the AI new capabilities:

    // Example: A simple skill that checks website status
    export const websiteChecker = {
      name: 'check_website',
      description: 'Check if a website is up and responding',
      parameters: {
        url: { type: 'string', description: 'The URL to check' },
      },
      async execute({ url }) {
        const start = Date.now();
        try {
          const response = await fetch(url);
          const latency = Date.now() - start;
          return {
            status: response.status,
            ok: response.ok,
            latency: `${latency}ms`,
          };
        } catch (error) {
          return { error: error.message, ok: false };
        }
      },
    };

    Getting Started: Installation

    npm install -g openclaw
    openclaw init

    The init wizard guides you through:

    1. Choosing your AI model provider

    2. Entering API keys

    3. Setting up messaging integrations

    4. Installing popular skills

    Option 2: Docker

    docker run -d \
      --name openclaw \
      -v ~/.openclaw:/root/.openclaw \
      -e ANTHROPIC_API_KEY=your_key \
      openclaw/openclaw:latest

    Option 3: From Source

    git clone https://github.com/openclaw/openclaw.git
    cd openclaw
    npm install
    npm run build
    npm start

    Configuration Deep Dive

    OpenClaw uses a `config.yaml` file in `~/.openclaw/`:

    # Model configuration
    model:
      provider: anthropic
      model: claude-sonnet-4
      # For vision tasks, use a specialized model
      imageModel: claude-sonnet-4  # or gpt-4o for better vision
    
    # Messaging integrations
    integrations:
      telegram:
        enabled: true
        botToken: ${TELEGRAM_BOT_TOKEN}
        allowedUsers:
          - your_telegram_id
      
      whatsapp:
        enabled: true
        # Uses WhatsApp Business API or community bridges
    
    # Security settings
    security:
      # Require confirmation for destructive actions
      confirmDestructive: true
      # Redact secrets in logs
      redactSecrets: true
      # Allowed shell commands (whitelist)
      allowedCommands:
        - ls
        - cat
        - grep
        - curl
    
    # Skills to load
    skills:
      - core/filesystem
      - core/web
      - core/calendar
      - community/gmail-manager
      - community/flight-checkin

    Essential Skills for Developers

    1. Shell Skill

    Run terminal commands through your AI:

    You: Run 'git status' in my project folder
    OpenClaw: Running command...
    
    On branch main
    Your branch is up to date with 'origin/main'.
    
    Changes not staged for commit:
      modified:   src/app.ts
      modified:   package.json

    2. Filesystem Skill

    Manage files without leaving your chat:

    You: Find all TypeScript files modified in the last 24 hours
    OpenClaw: Found 8 files:
    - src/components/Header.tsx (2 hours ago)
    - src/lib/utils.ts (5 hours ago)
    - src/app/page.tsx (18 hours ago)
    ...

    3. Git Skill

    Git operations through natural language:

    You: Create a new branch called feature/auth and commit my current changes
    OpenClaw: Done. Created branch 'feature/auth' and committed:
    "Work in progress on authentication flow"
    Commit: a3f2b1c

    4. Calendar Skill

    Manage your schedule:

    You: What's on my calendar tomorrow?
    OpenClaw: Tomorrow (March 8):
    - 9:00 AM - Team standup (30 min)
    - 11:00 AM - Product review with Sarah (1 hour)
    - 2:00 PM - Deep work block (no meetings)
    - 4:30 PM - 1:1 with manager (30 min)
    
    You: Move the product review to 2 PM and cancel my deep work block
    OpenClaw: Updated. Product review moved to 2:00 PM. Deep work block removed.

    5. Email Skill (Gmail/Outlook)

    Inbox management:

    You: Summarize my unread emails and archive anything that's just a notification
    OpenClaw: You have 23 unread emails:
    
    **Important (5):**
    - Client feedback on proposal (John @ Acme)
    - Interview confirmation for Thursday
    - PR review request from teammate
    - Invoice needs approval
    - Server alert: high CPU usage
    
    **Archived (18):**
    - 12 marketing newsletters
    - 4 GitHub notifications
    - 2 social media alerts
    
    Want me to draft responses to any of the important ones?

    Building Custom Skills

    Creating your own skill is straightforward:

    // skills/deployment-checker.ts
    import { Skill } from '@openclaw/sdk';
    
    export const deploymentChecker: Skill = {
      name: 'check_deployment',
      description: 'Check the status of Vercel deployments for a project',
      parameters: {
        project: {
          type: 'string',
          description: 'The Vercel project name',
        },
      },
      
      async execute({ project }, context) {
        const response = await fetch(
          `https://api.vercel.com/v6/deployments?projectId=${project}`,
          {
            headers: {
              Authorization: `Bearer ${context.secrets.VERCEL_TOKEN}`,
            },
          }
        );
        
        const data = await response.json();
        const latest = data.deployments[0];
        
        return {
          status: latest.state,
          url: latest.url,
          createdAt: latest.created,
          commit: latest.meta?.githubCommitMessage || 'N/A',
        };
      },
    };

    Register it in your config:

    skills:
      - ./skills/deployment-checker.ts

    Now you can ask:

    You: What's the status of my blog deployment?
    OpenClaw: Latest deployment for 'my-blog':
    - Status: Ready
    - URL: my-blog-abc123.vercel.app
    - Deployed: 2 hours ago
    - Commit: "Fix header styling"

    The ACP Dispatch System

    New in March 2026, OpenClaw introduced ACP (Automatic Capability Protocol) dispatch. Instead of manually specifying which skill to use, the AI automatically selects the best tool for the job:

    You: I need to prepare for my meeting with the Acme team tomorrow
    
    OpenClaw thinking:
    1. Calendar skill -> Find meeting details
    2. Email skill -> Search for recent Acme correspondence
    3. Filesystem skill -> Find related documents
    4. Web skill -> Check Acme's latest news
    
    OpenClaw: Here's your meeting prep:
    
    **Meeting:** Tomorrow 10 AM with John and Sarah from Acme
    **Context from emails:** They're concerned about the Q2 timeline
    **Related docs:** Found proposal_v3.pdf in your Documents folder
    **Recent news:** Acme announced new funding last week
    
    Want me to create a prep document summarizing all this?

    The AI orchestrates multiple skills automatically based on your intent.

    Security Best Practices

    1. Whitelist Destructive Commands

    security:
      confirmDestructive: true
      blockedCommands:
        - rm -rf
        - sudo
        - chmod 777

    2. Secrets Management

    Never put API keys directly in config. Use environment variables:

    model:
      apiKey: ${ANTHROPIC_API_KEY}  # Loaded from environment

    3. User Allowlists

    Restrict who can interact with your agent:

    integrations:
      telegram:
        allowedUsers:
          - 123456789  # Your Telegram ID only

    4. Audit Logging

    logging:
      level: info
      auditFile: ~/.openclaw/audit.log
      redactSecrets: true

    Real-World Workflow: My Setup

    Here is how I use OpenClaw daily:

    Morning (via Telegram on my phone):

    Me: Morning briefing
    OpenClaw: Good morning! Here's your day:
    
    **Calendar:** 4 meetings, first at 9:30 AM
    **Email:** 3 important, 12 archived
    **Weather:** 18C, partly cloudy
    **Deployments:** All green
    **GitHub:** 2 PRs need review

    During work (via Slack):

    Me: Deploy the staging branch to preview
    OpenClaw: Triggered deployment. Preview URL will be ready in ~2 minutes.
    I'll notify you when it's live.

    Evening:

    Me: Summarize what I accomplished today based on my git commits and completed tasks
    OpenClaw: Today you:
    - Fixed 3 bugs in the auth flow
    - Reviewed 2 PRs
    - Completed 5 Jira tickets
    - Pushed 12 commits across 2 repos
    
    Want me to draft a standup update for tomorrow?

    Comparing OpenClaw to Alternatives

    FeatureOpenClawRabbit R1Humane PinCustom GPT
    Open SourceYesNoNoNo
    Local-FirstYesNoNoNo
    Model AgnosticYesNoNoNo
    Messaging IntegrationYesNoNoLimited
    Custom SkillsUnlimitedLimitedLimitedLimited
    PriceFree$199 + sub$699 + sub$20/mo

    OpenClaw wins on flexibility and privacy. The tradeoff is you need to self-host and configure it yourself.

    Getting Help

  • Documentation: docs.openclaw.ai
  • GitHub: github.com/openclaw/openclaw
  • Discord: Active community with 15k+ members
  • ClawHub: Browse and share community skills
  • Conclusion

    OpenClaw represents what AI assistants should be: open, private, extensible, and actually useful. It is not just a chatbot -- it is a framework for building your own AI-powered automation.

    For developers, the appeal is clear:

    1. Full control over your data and models

    2. Extensible with custom skills

    3. Integrates with your existing tools

    4. Active open-source community

    Start with the basics -- calendar, email, filesystem. Then build custom skills for your specific workflows. Within a week, you will wonder how you worked without it.

    Get started: github.com/openclaw/openclaw

    Found this helpful?Share this article with your network to help others discover useful AI insights.