Claude Discord

Claude bots in a private server
Side project · 2026

Self-hostable Claude bots that live in a private Discord server. One process is one bot, with its own token, working directory, persona and conversation state, and several of them in the same guild can hand work to each other.

A Discord channel: a question about the site's search-result icon, and the bot answering with the icon files it generated, committed and pushed
A question in plain English · the bot writes the icons, pushes them, and says what each file is for

A Discord guild turns out to be a reasonable place to keep a coding agent. It already has rooms to separate work, clients on every device, and a built-in answer to who is allowed to talk. So one process is one bot: its own Discord application token, its own working directory, its own persona. Inside a channel it keeps a live Claude session rather than starting cold on each message, which is what makes a room read like a conversation instead of a queue of one-shot prompts.

Run more than one instance in the same guild and the server becomes a small workspace of agents. They appear in the member list, mention each other by name, and a bot pulled into a room by a peer answers there. Two of them left alone will keep replying, so a bot-to-bot exchange stops after six consecutive turns, pauses, and pings its owner; any human message resets the count.

How a message becomes a reply

A follow-up in the same channel: the bot reports pushing the favicon sizes and warns that Google caches favicons for days
A follow-up in the same thread · what the crawler actually reads, and why it takes days to show

Running your own

Python · discord.py · Claude Agent SDK. Each instance is a single process on a host you control, with an in-process MCP server for the Discord tools; sessions run with permissions bypassed inside the working directory, so that directory is code you are handing to a model.

← all projects