Discord AI Agent

A self-hosted Discord bot bringing customizable, LLM-powered assistants to community servers.

  • Python 3.12
  • discord.py
  • Anthropic
  • OpenAI
  • SQLModel
  • SQLite
  • Docker

Enabling server managers to deploy customizable, LLM-powered assistants for Q&A, moderation, and channel management — without requiring machine-learning expertise.

  • Accessible — configure and run an AI agent with no ML background.
  • Customizable — pick your LLM provider and model, write your own system prompt, and enable/disable modules per server.
  • Privacy-first — your knowledge base and logs stay in your database; nothing leaves your host except the calls you make to your chosen LLM API.
  • Provider-agnostic — Anthropic (Claude) and OpenAI are interchangeable behind a common LLMProvider interface.

Self-hosted only — not a SaaS product; does not train or fine-tune models. As a Discord bot rather than a web application, it has no browser UI to embed here — see the source for setup instructions and architecture.

Tech stack

LayerChoice
RuntimePython 3.12 · asyncio
Discord integrationdiscord.py ≥ 2.4 (native slash commands)
LLM providersAnthropic (claude-opus-4-8) / OpenAI (gpt-4o) via a common LLMProvider protocol
DataSQLModel · SQLite · aiosqlite · FTS5 search · Alembic migrations
ContainerizationDocker

View the source for the full module system and moderation/Q&A implementation.