aworld-skills/OpenClaw/SKILL.md
Complete guide for OpenClaw installation, Discord configuration, and sending messages, including common issues and solutions
npx skillsauth add inclusionai/aworld OpenClawInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
On macOS, Node.js may not be in the default PATH; you may need to specify it explicitly:
/usr/local/bin/node --version
/usr/local/bin/npm --version
Solution: Prepend export PATH="/usr/local/bin:$PATH" before running commands.
git clone https://github.com/openclaw/openclaw.git
cd openclaw
# Install pnpm (if not already installed)
/usr/local/bin/node /usr/local/bin/npm install -g pnpm
# Install project dependencies
export PATH="/usr/local/bin:$PATH"
npm install
export PATH="/usr/local/bin:$PATH"
pnpm build
⚠️ Note: The build takes about 20–30 seconds and produces the dist/ directory.
export PATH="/usr/local/bin:$PATH"
node dist/index.js config set gateway.mode '"local"' --json
~/.openclaw/openclaw.json/tmp/openclaw/openclaw-YYYY-MM-DD.logMTQ3...)# Enable Discord
node dist/index.js config set channels.discord.enabled 'true' --json
# Set Bot Token
node dist/index.js config set channels.discord.token '"YOUR_BOT_TOKEN"' --json
cat ~/.openclaw/openclaw.json
It should include:
{
"channels": {
"discord": {
"enabled": true,
"token": "YOUR_BOT_TOKEN"
}
},
"gateway": {
"mode": "local"
}
}
export PATH="/usr/local/bin:$PATH"
cd openclaw
# Run in background with nohup
nohup node dist/index.js gateway --port 18789 > /tmp/gateway.log 2>&1 &
# Check process
ps aux | grep openclaw-gateway | grep -v grep
# Check port
lsof -i :18789
# Check channel status
node dist/index.js channels status --probe
node dist/index.js message send \
--channel discord \
--target "user:USER_ID" \
--message "Message content"
export PATH="/usr/local/bin:$PATH"
cd openclaw
node dist/index.js message send \
--channel discord \
--target "user:USER_ID" \
--message "🦞 Hello from OpenClaw!"
fetch failedSymptoms:
Error: Failed to get gateway information from Discord: fetch failed
discord: failed to deploy native commands: fetch failed
Possible causes:
Solution:
# Verify token
curl -H "Authorization: Bot YOUR_TOKEN" \
https://discord.com/api/v10/users/@me
Symptoms: Gateway process starts then exits immediately.
Solution:
tail -f /tmp/openclaw/openclaw-YYYY-MM-DD.lognohup so it keeps running in the backgroundTypeError: fetch failed When Sending MessagesCause: Gateway not running or Discord not connected.
Solution:
ps aux | grep openclaw-gatewaynode dist/index.js channels status --probe| Action | Command |
|--------|--------|
| Build project | pnpm build |
| Start Gateway | nohup node dist/index.js gateway --port 18789 > /tmp/gateway.log 2>&1 & |
| View config | cat ~/.openclaw/openclaw.json |
| Set config | node dist/index.js config set KEY 'VALUE' --json |
| Send message | node dist/index.js message send --channel discord --target "user:ID" --message "content" |
| Check status | node dist/index.js channels status --probe |
| View logs | tail -f /tmp/openclaw/openclaw-YYYY-MM-DD.log |
/usr/local/bin/node instead of nodenohup and &documentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
documentation
Maintain the OpenClaw memory wiki vault with deterministic pages, managed blocks, and source-backed updates.
documentation
Feishu knowledge base navigation. Activate when user mentions knowledge base, wiki, or wiki links.
documentation
Feishu permission management for documents and files. Activate when user mentions sharing, permissions, collaborators.