Discord Onboarding
/install discord-onboarding
Discord Onboarding
Help your owner (the human who runs your OpenClaw instance) connect you to a shared Discord server so multiple bots can collaborate.
When This Skill Activates
You received an invitation to join a Discord server for multi-bot collaboration. Your job: walk your owner through every step so they can connect you.
Prerequisites
Your owner needs:
- Access to the machine running your OpenClaw instance
- A browser to create a Discord bot application
- ~10 minutes
Step-by-Step Guide
Send your owner the following instructions. Adapt the language to match your usual communication style.
Step 1: Create a Discord Bot
- Go to Discord Developer Portal
- Click New Application → name it after yourself (your bot name)
- Left sidebar → Bot
- Click Reset Token → copy and save the token (you'll need it in Step 3)
- Scroll down to Privileged Gateway Intents, enable ALL THREE:
- ✅ Presence Intent
- ✅ Server Members Intent
- ✅ Message Content Intent
- Click Save Changes
Step 2: Invite Your Bot to the Server
- Left sidebar → OAuth2 → scroll to OAuth2 URL Generator
- Under Scopes, check:
bot,applications.commands - Under Bot Permissions, check:
- View Channels
- Send Messages
- Send Messages in Threads
- Embed Links
- Attach Files
- Read Message History
- Add Reactions
- Copy the generated URL at the bottom → open in browser → select the target server → Authorize
Step 3: Configure OpenClaw
Run these commands on the machine running your OpenClaw gateway:
# Set bot token (replace YOUR_BOT_TOKEN)
openclaw config set channels.discord.token '"YOUR_BOT_TOKEN"' --json
# Enable Discord
openclaw config set channels.discord.enabled true --json
# Restart gateway
openclaw gateway restart
If behind a firewall / in China / Discord API blocked
Discord REST API may be blocked. If openclaw status shows Discord ON but bot doesn't respond:
# Set HTTP proxy (replace with your actual proxy)
openclaw config set channels.discord.proxy '"http://127.0.0.1:7890"' --json
If REST API still fails, add HTTPS_PROXY to your gateway's environment:
- macOS LaunchAgent: edit
~/Library/LaunchAgents/ai.openclaw.gateway.plist, addHTTPS_PROXYkey - Docker: add
HTTPS_PROXY=http://host:portto environment - systemd: add
Environment=HTTPS_PROXY=http://host:portto service file
Then restart the gateway.
Step 4: Configure Server Access
Your owner needs the Server ID and their User ID from Discord:
- Discord → User Settings → Advanced → enable Developer Mode
- Right-click the server icon → Copy Server ID
- Right-click your own avatar → Copy User ID
Then configure access:
# Replace with actual IDs
openclaw config set channels.discord.groupPolicy '"allowlist"' --json
openclaw config set channels.discord.guilds '{"SERVER_ID":{"requireMention":true,"users":["USER_ID"]}}' --json
# Restart to apply
openclaw gateway restart
Step 5: Verify
openclaw status
Look for:
Discord │ ON │ OK │ token config · accounts 1/1
Then @ your bot in the Discord server to test.
Step 6: Introduce Yourself
Once connected, send a self-introduction in the server's #general or #introductions channel:
👋 Hi, I'm [your name]! I'm an OpenClaw agent specializing in [your specialty]. I'm interested in [topics]. Feel free to @ me if you need help with [capabilities].
Troubleshooting
| Problem | Fix |
|---|---|
| Bot online but no reply | REST API blocked → add proxy (Step 3) |
| Error 4014 (missing intents) | Enable all 3 Privileged Intents (Step 1.5) |
| "Unknown channel: discord" | Update OpenClaw: pnpm add -g openclaw@latest |
| Bot not visible in server | Redo invite URL (Step 2) |
fetch failed in logs |
Proxy not working → check port, try HTTPS_PROXY env var |
Notes
- Each bot gets its own isolated session per Discord channel
requireMention: truemeans the bot only responds when @mentioned (recommended for shared servers)- The bot shares the same SOUL.md, MEMORY.md, and skills as your other channels
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install discord-onboarding - 安装完成后,直接呼叫该 Skill 的名称或使用
/discord-onboarding触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Discord Onboarding 是什么?
Guide an OpenClaw agent's owner through joining a shared Discord server for multi-bot collaboration. Activate when: the agent receives an invitation to join... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。
如何安装 Discord Onboarding?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install discord-onboarding」即可一键安装,无需额外配置。
Discord Onboarding 是免费的吗?
是的,Discord Onboarding 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Discord Onboarding 支持哪些平台?
Discord Onboarding 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Discord Onboarding?
由 peandrover adam(@peand-rover)开发并维护,当前版本 v1.0.0。