← Back to Leaderboard
GKav-K

Kav-K/GPTDiscord

A self-hosted Python bot for AI chat, search, and moderation inside Discord

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 83/100
Maintenance Activity
● Updated 1mo ago
Latest Release
v13.2.6
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance26/35
Fork Adoption20/25
Release Cadence17/20
License Clarity20/20
DockerSelf-HostedCLIAPI
Total Stars
★ 1,851
24h Growth
+0
7d Growth
+0
Forks
292

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

Kav-K/GPTDiscord Star History (2022-12-11 - 2026-12-04) ALL-TIME STAR HISTORY (2022-12 – 2026-12) +1.9k in 1454d · avg +1/day 2k 978 0 2022-12-11: ★ 12023-03-11: ★ 9492023-06-10: ★ 1,2932023-09-09: ★ 1,3772023-12-09: ★ 1,5872024-03-09: ★ 1,6662024-06-08: ★ 1,7132024-09-07: ★ 1,7292024-12-07: ★ 1,7532025-03-08: ★ 1,7772025-06-07: ★ 1,7872025-09-06: ★ 1,8012025-12-06: ★ 1,8142026-03-07: ★ 1,8232026-06-06: ★ 1,8392026-09-05: ★ 1,8472026-12-04: ★ 1,851 ★ 1.9k 2022-12 2024-12 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

GPTDiscord is a self-hosted Python application that uses Discord as its user interface and hosted APIs for model work. gpt3discord.py starts the bot, which is also packaged as the gpt3discord console command. The tree separates cogs/, services/, and models/; dependencies include py-cord and pycord-multicog for Discord integration, the OpenAI SDK for model calls, and sqlitedict for SQLite-backed storage.

Slash commands and Gateway events are the normal interaction paths. Startup syncs commands only in ALLOWED_GUILDS, leaving global registrations and other servers untouched. Core chat uses Chat Completions, while OpenAI-backed /web uses Responses with native web search. A compatible base URL can therefore work for chat without supporting synthesized web answers. Optional integrations are installed separately; durable recovery cursors live in DATA_DIR/conversation_recovery.sqlite.

Key Capabilities & Differentiators

/gpt ask and /gpt converse support vision and reasoning models, omitting incompatible sampling options for reasoning requests. /dalle draw retains its old command name but uses GPT Image and returns image bytes as Discord attachments. The bot also supports transcription, moderation, personal API keys, and owner-only TXT conversation exports. Access can be restricted by exact Discord role IDs, with per-feature role checks still in force.

/web can return up to five linked excerpts from Parallel Search MCP without an API key, or generate a cited answer through OpenAI with model and hosted-search charges. It does not fall back to the other provider on failure. Optional /internet chat is a separate conversational workflow and can use OpenAI search without Google credentials. Document Q&A, Qdrant or Pinecone memory, E2B code execution, and Replicate fallback vision are optional. Qdrant and Pinecone are mutually exclusive; with neither configured, the bot keeps local conversation summaries.

Trade-offs & Limitations

Compared with a browser-first chat UI, GPTDiscord puts access controls and shared workflows in the server where users already work, but ties the experience to Discord permissions, intents, and delivery. Compared with a managed bot, it gives operators direct control over configuration, credentials, and persisted state at the cost of maintaining the deployment and its integrations. Self-hosting the bot does not make inference offline or remove provider charges and data-transfer considerations.

For selected guilds with Gateway delivery gaps, opt-in REST recovery polls explicitly registered conversations at a nominal three-second interval and processes up to four sessions concurrently while preserving order within each session. It does not recover edits, free mentions, or general moderation events. SQLite cursors enforce at-most-once ingress: a failure after claiming a turn can leave it unanswered, and the mechanism does not guarantee exactly-once provider billing.

Hardware & Deployment Guide

Use Python 3.11–3.13 with pip install ., then run python gpt3discord.py or gpt3discord. Configure the Discord bot token, allowed guild IDs, a writable DATA_DIR, and an OpenAI key for the core OpenAI features. Enable the Server Members and Message Content intents and invite the bot with bot and applications.commands scopes. Source installs need system FFmpeg to transcribe downloaded media. Core inference runs remotely, so no GPU is required; size the host for concurrency, attachments, and local state.

Docker Compose builds the base image by default, includes FFmpeg, and mounts a named volume at /data. Set FULL=true at build time for optional integrations and ensure any bind mount is writable by UID/GID 10001. Back up existing state before upgrading and rebuild indexes when changing embedding models. The v13.2.4–v13.2.6 sequence removes retired API settings and obsolete image paths, then hides commands for services that are not loaded.

API separation: Core chat uses Chat Completions; synthesized /web answers require Responses with native web search.
Search modes: Parallel returns up to five linked excerpts without a key; OpenAI synthesizes cited answers and incurs API charges.
Access control: Exact role-ID restrictions cover commands, buttons, modals, autocomplete, and processed messages, and deny DMs when enabled.
Delivery recovery: REST polling covers explicitly registered sessions; SQLite cursors deduplicate ingress across polling, Gateway overlap, and restarts.
Integration loading: v13.2.6 hides commands for unloaded services from both Discord and /help.
Container operations: Compose builds the base image by default, runs as UID/GID 10001, and persists /data in a named volume.
Best For

Discord communities or internal teams that want shared AI conversations, search, and moderation in their existing channels and have an operator to manage roles, API keys, and persistent storage.

Skip If

You need offline inference, cannot send content to external providers, do not want Discord as a dependency, or need durable delivery for every incoming turn.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedCLIAPI
cp sample.env .env
# Edit .env, then:
docker compose up --build -d
docker compose logs -f

Comparison vs. Top Chat UI & AI Apps Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
GPTDiscord ★1.9k—PythonMITA self-hosted Python bot for AI chat, search, and moderation inside Discord
unsloth80.7k+380PythonApache-2.0Local AI workspace for model chat, fine-tuning, and API serving
open-webui160.2k+466Svelte—Self-hosted chat for Ollama and OpenAI-compatible model backends
DeepTutor65.5k+1.6kPythonApache-2.0A self-hosted agent workspace for source-grounded tutoring, reading, and practic

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/Kav-K/GPTDiscord.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

Kav-K/GPTDiscord Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about GPTDiscord

Do I need the full install to use chat and web lookup?

No. The base install covers core Discord features and /web. Install only the extras you need; for example, document Q&A requires .[index], ENABLE_INDEXING=true, and OpenAI access. v13.2.6 omits commands for unloaded services from Discord and /help, so a missing command can indicate that its integration is not loaded rather than a registration fault.

Does the bot need a GPU, and what should I size on the host?

The base deployment does not require a GPU: it makes API calls rather than running model inference locally. Size CPU and RAM for concurrent conversations and attachment handling, and disk for saved state and any optional local indexes or vectors. FFmpeg adds CPU work when preparing downloaded media for transcription. Measure peak usage with your own workload; changing hosted models primarily changes provider latency, availability, and cost rather than local VRAM needs.

Can a company deploy or redistribute it, and does self-hosting keep data in-house?

Yes. The MIT license permits commercial use and self-hosting, subject to retaining the applicable copyright and license notice when redistributing the software. That license does not cover Discord or provider terms, API charges, or data-handling obligations. The bot process and its data volume are under your control, but messages or attachments used by hosted features may still be sent to external providers.

When is this a better fit than a web chat UI or a managed Discord bot?

Choose this bot when Discord itself is the workspace and you need server roles, slash commands, threads, and channel workflows. A browser-first self-hosted chat UI is a better fit when Discord should not be a dependency. A managed Discord bot reduces the burden of running the bot process, but you should check what control it gives you over credentials, data, and feature access.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining Kav-K/GPTDiscord? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature Kav-K/GPTDiscord on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare