Home › Discord Bots › ChatGPT Discord Bot
What is ChatGPT Discord Bot? the self-hosted bot that brings AI chat into Discord
ChatGPT Discord Bot brings your favourite AI models into Discord. Chat with OpenAI, Claude, Gemini, Grok, DeepSeek, or models running on your own machine — all through one bot.
ChatGPT Discord Bot in one paragraph
ChatGPT Discord Bot (github.com/Zero6992/chatGPT-discord-bot) is a self-hosted Discord bot that puts AI chat inside your server. You host it yourself, choose which models your users can access, and conversations persist across restarts. Each user gets separate history in each server, channel and thread, with independent private and public conversations. The project appeared on GitHub in December 2022, passed 2,700 stars by early December 2026, and is released under the GNU GPL v2.
History is stored in SQLite, keeping 100 completed turns by default and expiring conversations after 30 days of inactivity. The bot is configured with TOML files: credentials in .env, model aliases and access settings in config.toml.
What ChatGPT Discord Bot actually does
One bot, many backends. The README documents the providers, the commands and the controls in detail.
1. Many providers, one bot
Official APIs and administrator-configured custom endpoints are supported, including OpenAI, Anthropic (Claude), Google Gemini, xAI Grok and DeepSeek. Local models work too — connect Ollama, LM Studio, vLLM or another compatible chat server. You can also connect Codex, Claude Code or Grok Build through their native CLI login, in an isolated runtime.
2. Persistent conversations with personas
Switch models and personas, resume after a restart, and reset or delete your history from Discord. Personas include standard, creative, technical and casual. Replies start private; /public makes future replies visible in the channel, and /private switches back to your separate private conversation.
3. Images, video and image search
Generate images, edit attached PNG or JPEG images, create videos, or search for images — with explicitly selected API backends. OpenAI handles image generation and editing, Google Gemini handles Veo text-to-video and image-to-video, and xAI Grok handles image search and text-to-video. Video jobs show an ID while processing, and /job retrieves a job after a restart without another generation request.
4. Controlled usage, no silent switching
Configure access, context size, retention and concurrency. Everyone can chat by default in every backend mode; set allowed_user_ids only when you want to limit access. Provider failures never silently select another model or billing mode, and unsupported settings fail explicitly instead of guessing.
Download and setup
You need Python 3.12–3.14, a Discord bot token, and either an official API key or a running local model server. Linux, WSL and macOS support API and local backends; Windows users should use WSL. Clone the repo, create a virtual environment, install the requirements, copy .env.example to .env and config.example.toml to config.toml, then run python main.py. Docker is also supported, with persistent storage for the conversation database. CLI backends have additional requirements, including a pinned, isolated Docker runtime.
What it costs
The bot itself is free — GPL v2, no subscription. The costs are the ones you choose: your provider’s API rates for the models you enable, or nothing at all if you run a local model. CLI account mode uses the plan allowances of the account you connect, and API mode is billed separately to the API key owner. The README is explicit that subscriptions do not imply unlimited automation or media access.
Who ChatGPT Discord Bot is for
Discord communities that want AI chat
Your members chat with the models you choose, in your server, with separate history per person, channel and thread.
Server admins who want control
You decide which models are available, who can use them, how much context is kept, and how long history lasts.
Developers with local models
Point the bot at Ollama, LM Studio or vLLM and your community chats with a model running on your own machine.
Teams using CLI accounts
Codex, Claude Code or Grok Build accounts can be connected through their native CLI login, with per-user sessions kept separate.
ChatGPT Discord Bot at a glance
- Project: Zero6992/chatGPT-discord-bot — “Integrate ChatGPT into your own discord bot”
- Licence: GPL-2.0 — free and open source
- Popularity: over 2,700 GitHub stars by early December 2026 (created December 2022)
- Language: Python 3.12–3.14
- Platforms: Linux, WSL and macOS; Windows via WSL
- Backends: OpenAI, Anthropic, Google Gemini, xAI Grok, DeepSeek, local servers, and Codex / Claude Code / Grok Build CLI accounts
- Needs: a Discord bot token, plus an API key or a local model server
Honest limits
Four honest limits, all from the README. First, text chat accepts text only — vision, audio, streaming and general agent tools are not exposed. Second, setup is real work: Python 3.12–3.14, a Discord token, API keys or a local model server, and a separate isolated Docker runtime if you want CLI backends. Third, some media paths have outstanding live verification — the README says to confirm model access, account limits and artifact delivery with your selected provider before enabling paid operations for other users. Fourth, generated files are attached to Discord subject to an 8 MiB default cap, and interrupted image delivery cannot be recovered. Our Discord bot service sets this bot up, wires in the models you want, and hosts it for you.
Want a game without doing the setup?
ChatGPT Discord Bot is the kind of AI bot our Discord bot service builds on: we set it up, connect the models you want — OpenAI, Claude, Gemini, Grok, or a local model — configure who can use it, and host it so it stays online. Simple bots from £149, full custom builds from £349, managed bots with hosting from £599. You bring the server; we bring the AI.
Have a game idea?
Tell us the idea — a sentence is enough. We will tell you what it takes and what it costs, honestly.