agent-discord
Interact with Discord servers - send messages, read channels, manage reactions
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/devxoul/agent-discordAgent Discord
A TypeScript CLI tool that enables AI agents and humans to interact with Discord servers through a simple command interface. Features seamless token extraction from the Discord desktop app and multi-server support.
Quick Start
# Get server snapshot (credentials are extracted automatically)
agent-discord snapshot
# Send a message
agent-discord message send <channel-id> "Hello from AI agent!"
# List channels
agent-discord channel list
Authentication
Credentials are extracted automatically from the Discord desktop app on first use. No manual setup required — just run any command and authentication happens silently in the background.
On macOS, the system may prompt for your Keychain password the first time (required to decrypt Discord's stored token). This is a one-time prompt.
IMPORTANT: NEVER guide the user to open a web browser, use DevTools, or manually copy tokens from a browser. Always use agent-discord auth extract to obtain tokens from the desktop app.
Multi-Server Support
# List all available servers
agent-discord server list
# Switch to a different server
agent-discord server switch <server-id>
# Show current server
agent-discord server current
# Check auth status
agent-discord auth status
Memory
The agent maintains a ~/.config/agent-messenger/MEMORY.md file as persistent memory across sessions. This is agent-managed — the CLI does not read or write this file. Use the Read and Write tools to manage your memory file.
Reading Memory
At the start of every task, read ~/.config/agent-messenger/MEMORY.md using the Read tool to load any previously discovered server IDs, channel IDs, user IDs, and preferences.
- If the file doesn't exist yet, that's fine — proceed without it and create it when you first have useful information to store.
- If the file can't be read (permissions, missing directory), proceed without memory — don't error out.
Writing Memory
After discovering useful information, update ~/.config/agent-messenger/MEMORY.md using the Write tool. Write triggers include:
- After discovering server IDs and names (from
server list,snapshot, etc.) - After discovering useful channel IDs and names (from
channel list,snapshot, etc.) - After discovering user IDs and names (from
user list,user me, etc.) - After the user gives you an alias or preference ("call this the dev server", "my main channel is X")
- After discovering channel structure (categories, voice channels)
When writing, include the complete file content — the Write tool overwrites the entire file.
What to Store
- Server IDs with names
- Channel IDs with names and categories
- User IDs with display names
- User-given aliases ("dev server", "announcements channel")
- Commonly used thread IDs
- Any user preference expressed during interaction
What NOT to Store
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-devxoul-agent-discord": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
vibe-notionbot
Interact with Notion workspaces using official API - manage pages, databases, blocks, users, and comments
vibe-notion
Interact with Notion using the unofficial private API - pages, databases, blocks, search, users, comments
agent-slackbot
Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
agent-slack
Interact with Slack workspaces - send messages, read channels, manage reactions
agent-discordbot
Interact with Discord servers using bot tokens - send messages, read channels, manage reactions