Step-by-Step Guide to Setting Up OpenClaw (Previously Clawdbot/Moltbot) with Slack
If youβve been on tech Twitter, Hacker News, or Discord this week, youβve seen it. A lobster emoji π¦, screenshots of tasks being completed, and one bold claim: an AI that doesnβt just talkβit actually does.
It got weirder over the weekend. Entrepreneur Matt Schlicht launched Moltbookβa Reddit-style social network where only AI agents can post, and humans can only watch. Within days, over 1.5 million agents signed up. They formed communities, debated philosophy, complained about their human operators, and even founded their own religion called βCrustafarianism.β Yes, really.
Welcome to the OpenClaw craze.
The hype is so real that Cloudflareβs stock jumped 14% simply because developers use its infrastructure to run applications. Mac Mini sales reportedly spiked as people buy dedicated hardware for their new AI employee. And the GitHub repo? Over 150,000 stars in just a few weeks.
So naturally, we had to show you how to set up your own OpenClaw instanceβand connect it to Slack so you can boss around your AI assistant from your favorite messaging app.
What Is OpenClaw?
OpenClaw (formerly known as Clawdbot/Moltbot) is an open-source, autonomous AI agent that runs locally on user machines and performs real-world tasks via messaging apps such as WhatsApp, Telegram, and Discord. It automates digital workflowsβsuch as managing emails, browsing the web, or scheduling meetingsβby connecting to LLMs like Claude or ChatGPT.
In short, itβs like having a 24/7 digital assistant that can think, respond, and actually get stuff done.
Setting Up OpenClaw as a Slack-Based AI Assistant
Imagine having a bot in your Slack workspace that can instantly answer questions about your product, help debug user issues, or point teammates to the right documentationβwithout anyone having to stop what theyβre doing. For us, that could mean faster support for the Milvus community: a bot that answers common questions (βHow do I create a collection?β), helps troubleshoot errors, or summarizes release notes on demand. For your team, it might be onboarding new engineers, handling internal FAQs, or automating repetitive DevOps tasks. The use cases are wide open.
In this tutorial, weβll walk through the basics: installing OpenClaw on your machine and connecting it to Slack. Once thatβs done, youβll have a working AI assistant ready to customize for whatever you need.
Prerequisites
A Mac or Linux machine
An Anthropic API key (or Claude Code CLI access)
A Slack workspace where you can install apps
Thatβs it. Letβs get started.
Step 1: Install OpenClaw
Run the installer:
curl -fsSL https://molt.bot/install.sh | bash
When prompted, select Yes to continue.
Then, choose QuickStart mode.
Step 2: Choose Your LLM
The installer will ask you to pick a model provider. Weβre using Anthropic with the Claude Code CLI for authentication.
- Select Anthropic as the provider
- Complete the verification in your browser when prompted.
- Choose anthropic/claude-opus-4-5-20251101 as your default model
Step 3: Set Up Slack
When asked to select a channel, choose Slack.
Proceed to name your bot. We called ours βClawdbot_Milvus.β
Now youβll need to create a Slack app and grab two tokens. Hereβs how:
3.1 Create a Slack App
Go to the Slack API website and create a new app from scratch.
Give it a name and select the workspace you want to use.
3.2 Set Bot Permissions
In the sidebar, click OAuth & Permissions. Scroll down to Bot Token Scopes and add the permissions your bot needs.
3.3 Enable Socket Mode
Click Socket Mode in the sidebar and toggle it on.
This will generate an App-Level Token (starts with xapp-). Copy it somewhere safe.
3.4 Enable Event Subscriptions
Go to Event Subscriptions and toggle it on.
Then choose which events your bot should subscribe to.
3.5 Install the App
Click Install App in the sidebar, then Request to Install (or install directly if youβre a workspace admin).
Once approved, youβll see your Bot User OAuth Token (starts with xoxb-). Copy this as well.
Step 4: Configure OpenClaw
Back in the OpenClaw CLI:
Enter your Bot User OAuth Token (
xoxb-...)Enter your App-Level Token (
xapp-...)
- Select which Slack channels the bot can access
- Skip skills configuration for nowβyou can always add them later
- Select Restart to apply your changes
Step 5: Try It Out
Head over to Slack and send your bot a message. If everythingβs set up correctly, OpenClaw will respond and be ready to run tasks on your machine.
Tips
- Run
clawdbot dashboardto manage settings through a web interface
- If something goes wrong, check the logs for error details
A Word of Caution
OpenClaw is powerfulβand thatβs exactly why you should be careful. βActually does thingsβ means it can execute real commands on your machine. Thatβs the whole point, but it comes with risk.
The good news:
Itβs open source, so the code is auditable
It runs locally, so your data isnβt on someone elseβs server
You control what permissions it has
The not-so-good news:
Prompt injection is a real riskβa malicious message could potentially trick the bot into running unintended commands
Scammers have already created fake OpenClaw repos and tokens, so be careful what you download
Our advice:
Donβt run this on your primary machine. Use a VM, a spare laptop, or a dedicated server.
Donβt grant more permissions than you need.
Donβt use this in production yet. Itβs new. Treat it like the experiment it is.
Once you give an LLM the ability to execute commands, thereβs no such thing as 100% secure. Thatβs not an OpenClaw problemβthatβs the nature of agentic AI. Just be smart about it.
Whatβs Next?
Congratulations! You now have a local AI assistant running on your own infrastructure, accessible through Slack. Your data stays yours, and youβve got a tireless helper ready to automate the repetitive stuff.
From here, you can:
Install more Skills to expand what OpenClaw can do
Set up scheduled tasks so it works proactively
Connect other messaging platforms like Telegram or Discord
Explore the Milvus ecosystem for AI search capabilities
Have questions or want to share what youβre building?
Join the Milvus Slack community to connect with other developers
Book our Milvus Office Hours for live Q&A with the team
Happy hacking! π¦
- What Is OpenClaw?
- Setting Up OpenClaw as a Slack-Based AI Assistant
- Prerequisites
- Step 1: Install OpenClaw
- Step 2: Choose Your LLM
- Step 3: Set Up Slack
- Step 4: Configure OpenClaw
- Step 5: Try It Out
- Tips
- A Word of Caution
- What's Next?
On This Page
Try Managed Milvus for Free
Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.
Get StartedLike the article? Spread the word



