Connect Local Claude Code, Codex & Multiple AI Bots to Discord Servers
TagTag connects your local harnesses (Codex, Claude Code, AGY) to Discord through the native Gateway WebSocket (handling IDENTIFY, HEARTBEAT, and MESSAGE_CREATE) with REST replies. Map dedicated Discord channels or multiple Bots inside one server without paying cloud relay fees or exposing local ports.
Multi-Bot group chats
Ideal for the popular “multi-channel personal server + Obsidian vault” setup: invite different Bots (Research, Coding, Ops) into one Discord server, keep every memory and file edit visible locally via fswatch, and swap engines anytime with /model.
@ResearchBot Read the new markdown note saved in my Obsidian inbox and extract open tasks
@CoderBot /new
Setup & config
Generate manifest →- 1. Create a Discord Application & Enable Message Content Intent
In the Bot tab of Discord Developer Portal, generate a Bot Token and enable the MESSAGE CONTENT privileged intent so the Bot can read channel messages.
- 2. Invite Bot to Your Server via OAuth2 URL Generator
Select the bot scope with Send Messages, Read Message History, and View Channels permissions, then authorize it into your server.
- 3. Configure connectors.json & Verify Locally
Add DISCORD_BOT_TOKEN to env_keys and run tagtag connector check discord:lab to verify handshake health.
{
"id": "discord:lab",
"type": "discord",
"enabled": true,
"bot_id": "lab-bot",
"access": "send",
"env_keys": ["DISCORD_BOT_TOKEN"],
"config": {}
}Connector recipes
Obsidian Local Folder (fswatch) + Discord Knowledge Channels
Watch local folders with TagTag’s built-in fswatch connector (path + mtime dedup) and sync updates or summaries to your private Discord server.
Verified pitfalls
Enable MESSAGE CONTENT INTENT under Bot → Privileged Gateway Intents in the Discord Developer Portal.
FAQ
Why use TagTag with Discord instead of a single-vendor plugin?
You are never locked into one vendor. Swap between Claude Code, Codex, and AGY per channel or with /model, while keeping your Bot schedules and 30 other connectors intact.