AIPaths Academy
CourseGuidesBlogVideosResources

Resources

  • Documentation
  • Video Library
  • Blog
AIPaths Academy

Empowering developers to build the future with AI.

Legal

  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • Cookie Policy

© 2026 AIPaths Academy. All rights reserved.

    Related Content

    Videos
    How to Create a Research Agent with ClaudeHow to Make Your AI Agent Access Your Data (n8n - RAG)
    Guides
    Context Engineering: The Evolution You Need to UnderstandSuperClaude FrameworkComplete RAG Guide: 4 Methods to Connect Your Agents with Data
    Blog Posts
    Moltbook: The Social Network Where AI Agents Talk to Each Othern8n is Now an AI-First Platform: 75% of Users Build AI Workflows

    Related Content

    Videos
    How to Create a Research Agent with ClaudeHow to Make Your AI Agent Access Your Data (n8n - RAG)
    Guides
    Context Engineering: The Evolution You Need to UnderstandSuperClaude FrameworkComplete RAG Guide: 4 Methods to Connect Your Agents with Data
    Blog Posts
    Moltbook: The Social Network Where AI Agents Talk to Each Othern8n is Now an AI-First Platform: 75% of Users Build AI Workflows
    1. Home
    2. Guides
    3. Molt Bot: The Autonomous AI Agent Guide
    •Published 2/11/2026•
    7 min read

    Molt Bot: The Autonomous AI Agent Guide

    Understand what Molt Bot is, how it works, the risks involved, and how to use it safely as a developer.

    intermediateai-agentsautomationclaudetoolsguide
    Table of Contents(12 sections)

    On This Page

    What Is Molt Bot?How It WorksThe RisksInstallationSecurity HardeningBest PracticesUseful CommandsIncident ResponseCredential Storage ReferenceSecure Baseline ConfigurationFinal ThoughtsResources

    Molt Bot: The Autonomous AI Agent Guide

    A conceptual guide for developers who want to understand Molt Bot before running it.

    What Is Molt Bot?

    Molt Bot (formerly Clawdbot) is an open-source, self-hosted AI assistant that turns LLMs like Claude into autonomous agents with full system access. Created by Peter Steinberger (founder of PSPDFKit), it launched January 26, 2026 and became one of GitHub's fastest-growing projects—60,000+ stars in three days.

    Think of it as "Claude with hands." Unlike browser-based AI that just chats, Molt Bot runs on your hardware and can:

    • Install software and run scripts
    • Manage files and directories
    • Send emails and messages
    • Control browsers
    • Execute terminal commands
    • Interact with APIs

    All triggered from a simple chat message on WhatsApp, Telegram, Discord, iMessage, or Slack.

    Note: The project was originally called "Clawdbot" and was rebranded to Molt Bot after Anthropic requested a name change (trademark). The legitimate project now lives at github.com/moltbot/moltbot and docs.molt.bot.

    How It Works

    Architecture Overview

    Molt Bot follows a local-first architecture with these core components:

    ┌─────────────────────────────────────────────────────────┐
    │                    Your Device                          │
    │  ┌─────────────┐    ┌─────────────┐    ┌─────────────┐ │
    │  │   Gateway   │───▶│    Agent    │───▶│   Skills    │ │
    │  │  (Node.js)  │    │   (LLM)     │    │  (Tools)    │ │
    │  └──────┬──────┘    └─────────────┘    └─────────────┘ │
    │         │                                               │
    └─────────┼───────────────────────────────────────────────┘
              │
              ▼
    ┌─────────────────────────────────────────────────────────┐
    │              Messaging Channels                         │
    │  WhatsApp │ Telegram │ Discord │ Slack │ iMessage │ ...│
    └─────────────────────────────────────────────────────────┘
    

    Gateway: A WebSocket-based control plane running on your machine. Requires Node.js >= 22.

    Multi-Channel Bridge: Connects to messaging apps you already use. Supported channels include WhatsApp, Telegram, Slack, Discord, Signal, iMessage, Microsoft Teams, and WebChat.

    Agent: Routes messages to configured LLMs (Claude, GPT-4o, Gemini) with access to tools and skills.

    Skills: Modular TypeScript/JavaScript plugins that grant controlled access to system resources.

    The Flow

    1. You send a message to the bot on WhatsApp/Telegram/etc.
    2. The Gateway receives it and routes to the configured agent
    3. The agent consults the LLM with available tools/skills
    4. The LLM decides what actions to take (read files, run commands, browse web)
    5. Actions execute on your machine
    6. Response returns to your chat

    Skills System

    Skills extend Molt Bot's capabilities. They load from three locations with this precedence:

    PriorityLocationScope
    Highest<workspace>/skillsPer-agent only
    Medium~/.clawdbot/skillsShared across all agents
    LowestBundled skillsDefault installation

    ClawdHub (clawdhub.com) is the public registry where you can discover and install community skills.

    Skills are gated at load time using metadata conditions—they can require specific binaries, environment variables, or operating systems before activating.

    The Risks

    Molt Bot is powerful. With power comes risk. Understand these before running it.

    Security Risks

    The fundamental issue: Molt Bot has root-level access to your system. If compromised, attackers control everything.

    Known Attack Vectors

    RiskWhat Happens
    Gateway exposureOver 1,000 gateways found publicly exposed on the internet, many without authentication
    Prompt injectionMalicious content in messages, links, or attachments can hijack agent behavior
    Credential theftauth-profiles.json stores API tokens in plaintext. Malware families (RedLine, Lumma, Vidar) now specifically target ~/.clawdbot/
    mDNS broadcastingDefault settings leak hostname, filesystem paths, and SSH availability to your local network
    Context leakageWithout session isolation, multi-user setups can expose private conversations

    Security researchers describe Molt Bot as a "primary target for infostealers in the AI era."

    Treat Molt Bot like a production server, not a weekend side project.

    Cost Risks

    API costs can escalate quickly with autonomous agents.

    Usage LevelMonthly Cost
    Light (casual queries)$20-50
    Moderate (daily automation)$50-100
    Heavy (complex multi-agent)$100-300
    Extreme$3,600+

    Claude Opus 4.5 pricing: $5 per million input tokens, $25 per million output tokens.

    Costs compound with:

    • Long conversations (context accumulates)
    • Frequent tool use (each action = more tokens)
    • Multi-agent setups (parallel processing)

    Mitigation: Use prompt caching (0.1x cost for cached reads), batch API (50% discount), and set hard spending limits in your Anthropic dashboard.

    Reliability Risks

    Agent drift: LLMs can misinterpret instructions, especially with ambiguous commands, untrusted content, or complex multi-step tasks.

    Model susceptibility: Older and smaller models are more vulnerable to prompt injection. Anthropic's Opus 4.5 has the strongest resistance.

    No undo: If the agent deletes files, runs destructive commands, or sends embarrassing messages—there's no rollback.

    Installation

    npm install -g moltbot@latest && moltbot onboard --install-daemon
    

    Requirements:

    • Node.js >= 22 (check with node -v)
    • A 24/7 device (Mac Mini, Linux box, Raspberry Pi, or cloud VM)
    • API key from Anthropic, OpenAI, or another supported provider

    The onboarding wizard will guide you through initial configuration.

    Security Hardening

    Do this before exposing Molt Bot to any messaging channel.

    1. Bind to Localhost Only

    // ~/.clawdbot/moltbot.json
    {
      gateway: {
        bind: "loopback",
        port: 18789
      }
    }
    

    This prevents external network access to your gateway.

    2. Enable Authentication

    Generate a secure token:

    moltbot doctor --generate-gateway-token
    

    Configure it:

    {
      gateway: {
        auth: {
          mode: "token",
          token: "your-long-random-token"
        }
      }
    }
    

    3. Run the Security Audit

    moltbot security audit --deep --fix
    

    This identifies vulnerabilities and auto-fixes common issues like file permissions.

    4. Enable Sandboxing

    Run tools in isolated Docker containers:

    {
      agents: {
        defaults: {
          sandbox: {
            mode: "all",
            workspaceAccess: "ro"  // read-only
          }
        }
      }
    }
    

    Workspace access options:

    • "none": Most restrictive, sandbox only
    • "ro": Read-only access to agent workspace
    • "rw": Read/write access (use with caution)

    5. Restrict DM Access

    Keep pairing mode enabled (default):

    {
      channels: {
        whatsapp: {
          dmPolicy: "pairing"
        }
      }
    }
    

    Unknown senders must complete a pairing handshake before the bot processes their messages.

    6. Require Mentions in Groups

    Prevent the bot from responding to every message:

    {
      channels: {
        whatsapp: {
          groups: {
            "*": { requireMention: true }
          }
        }
      },
      agents: {
        list: [{
          id: "main",
          groupChat: {
            mentionPatterns: ["@moltbot", "@mybot"]
          }
        }]
      }
    }
    

    7. Disable mDNS Broadcasting

    Stop leaking information to your local network:

    export MOLTBOT_DISABLE_BONJOUR=1
    

    Or in config:

    {
      discovery: {
        mdns: { mode: "off" }
      }
    }
    

    8. Lock Down File Permissions

    chmod 700 ~/.clawdbot/
    chmod 600 ~/.clawdbot/moltbot.json
    chmod 600 ~/.clawdbot/agents/*/agent/auth-profiles.json
    

    Or let the tool fix it:

    moltbot security audit --fix
    

    Best Practices

    Do

    • Use a dedicated device or VM for Molt Bot
    • Create bot-specific accounts with limited permissions
    • Set API spending limits in your provider dashboard
    • Review skills before installing from ClawdHub
    • Use latest-gen models (Opus 4.5) for tool-enabled agents
    • Keep secrets in environment variables, not prompts
    • Start with read-only access, expand cautiously

    Don't

    • Run on your primary machine with sensitive data
    • Use your personal WhatsApp or email account
    • Let API costs run unchecked
    • Blindly trust third-party skills
    • Use legacy models for sensitive operations
    • Paste API keys into conversations
    • Grant full write/exec permissions from day one
    • Set allowFrom: "*" unless you want the internet controlling your PC

    Useful Commands

    # Check overall status
    moltbot status --all
    
    # Diagnose configuration issues
    moltbot doctor
    
    # Security scan
    moltbot security audit
    moltbot security audit --deep
    moltbot security audit --fix
    
    # Manage pairing requests
    moltbot pairing list <channel>
    moltbot pairing approve <channel> <code>
    
    # Open web dashboard
    moltbot dashboard
    # Then visit http://127.0.0.1:18789/
    

    Incident Response

    If you suspect compromise:

    Immediate Containment

    1. Stop the gateway: pkill -f moltbot or stop the macOS app
    2. Set gateway.bind: "loopback" in config
    3. Disable risky DM/group access

    Rotate All Secrets

    1. Gateway token (gateway.auth.token)
    2. Remote client secrets (gateway.remote.token)
    3. Provider credentials (Anthropic API key, WhatsApp creds, etc.)

    Investigate

    1. Review logs: /tmp/moltbot/moltbot-*.log
    2. Check session transcripts: ~/.clawdbot/agents/*/sessions/*.jsonl
    3. Audit recent config changes

    Credential Storage Reference

    Know where sensitive data lives:

    TypeLocation
    WhatsApp credentials~/.clawdbot/credentials/whatsapp/&lt;accountId&gt;/creds.json
    Telegram tokenConfig or channels.telegram.tokenFile
    Discord tokenConfig/env only
    Slack tokensConfig/env (channels.slack.*)
    Pairing allowlists~/.clawdbot/credentials/&lt;channel&gt;-allowFrom.json
    Model API keys~/.clawdbot/agents/&lt;agentId&gt;/agent/auth-profiles.json
    Session transcripts~/.clawdbot/agents/&lt;agentId&gt;/sessions/*.jsonl

    Secure Baseline Configuration

    A hardened starting point:

    // ~/.clawdbot/moltbot.json
    {
      gateway: {
        mode: "local",
        bind: "loopback",
        port: 18789,
        auth: {
          mode: "token",
          token: "your-long-random-token"
        }
      },
      channels: {
        whatsapp: {
          dmPolicy: "pairing",
          groups: {
            "*": { requireMention: true }
          }
        }
      },
      logging: {
        redactSensitive: "tools"
      },
      discovery: {
        mdns: { mode: "minimal" }
      },
      agents: {
        defaults: {
          sandbox: {
            mode: "all",
            workspaceAccess: "ro"
          }
        }
      }
    }
    

    Final Thoughts

    Molt Bot is a powerful tool with legitimate use cases. Developers are running it on Mac Minis as "24/7 AI employees." But it requires serious operational security.

    The official docs say it best:

    "There is no perfectly secure setup."

    Start minimal. Expand only as confidence grows. And remember: if an AI agent has access to your system, treat its security like you would a production server exposed to the internet.

    Resources

    Official:

    • Moltbot Documentation
    • GitHub Repository
    • ClawdHub Skills Registry

    Security Analysis:

    • Security Boulevard: When AI Gets Root Access
    • SOCRadar: Is It Actually Safe?
    • InfoStealers: Primary Target for Malware

    Guides:

    • MacStories: Future of Personal AI Assistants
    • iWeaver: Ultimate Guide
    • DEV Community: Getting Started
    Was this helpful?
    Share this content
    0comments

    On This Page

    What Is Molt Bot?How It WorksThe RisksInstallationSecurity HardeningBest PracticesUseful CommandsIncident ResponseCredential Storage ReferenceSecure Baseline ConfigurationFinal ThoughtsResources