••
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
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/moltbotanddocs.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
- You send a message to the bot on WhatsApp/Telegram/etc.
- The Gateway receives it and routes to the configured agent
- The agent consults the LLM with available tools/skills
- The LLM decides what actions to take (read files, run commands, browse web)
- Actions execute on your machine
- Response returns to your chat
Skills System
Skills extend Molt Bot's capabilities. They load from three locations with this precedence:
| Priority | Location | Scope |
|---|---|---|
| Highest | <workspace>/skills | Per-agent only |
| Medium | ~/.clawdbot/skills | Shared across all agents |
| Lowest | Bundled skills | Default 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
| Risk | What Happens |
|---|---|
| Gateway exposure | Over 1,000 gateways found publicly exposed on the internet, many without authentication |
| Prompt injection | Malicious content in messages, links, or attachments can hijack agent behavior |
| Credential theft | auth-profiles.json stores API tokens in plaintext. Malware families (RedLine, Lumma, Vidar) now specifically target ~/.clawdbot/ |
| mDNS broadcasting | Default settings leak hostname, filesystem paths, and SSH availability to your local network |
| Context leakage | Without 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 Level | Monthly 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
- Stop the gateway:
pkill -f moltbotor stop the macOS app - Set
gateway.bind: "loopback"in config - Disable risky DM/group access
Rotate All Secrets
- Gateway token (
gateway.auth.token) - Remote client secrets (
gateway.remote.token) - Provider credentials (Anthropic API key, WhatsApp creds, etc.)
Investigate
- Review logs:
/tmp/moltbot/moltbot-*.log - Check session transcripts:
~/.clawdbot/agents/*/sessions/*.jsonl - Audit recent config changes
Credential Storage Reference
Know where sensitive data lives:
| Type | Location |
|---|---|
| WhatsApp credentials | ~/.clawdbot/credentials/whatsapp/<accountId>/creds.json |
| Telegram token | Config or channels.telegram.tokenFile |
| Discord token | Config/env only |
| Slack tokens | Config/env (channels.slack.*) |
| Pairing allowlists | ~/.clawdbot/credentials/<channel>-allowFrom.json |
| Model API keys | ~/.clawdbot/agents/<agentId>/agent/auth-profiles.json |
| Session transcripts | ~/.clawdbot/agents/<agentId>/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:
Security Analysis:
- Security Boulevard: When AI Gets Root Access
- SOCRadar: Is It Actually Safe?
- InfoStealers: Primary Target for Malware
Guides:
Was this helpful?
Share this content
0comments