You can ask ChatGPT for a Discord bot and get one that actually runs. Add Kite to ChatGPT, say which commands and events you want, and ChatGPT builds them in Kite. Kite hosts the bot for free, so there's no code to paste into a file and no server to keep running.
ChatGPT builds your bot in Kite, and Kite hosts it. So you need a Discord application for the bot and a Kite app for it first.
Never done this before? Our first guide shows each step in detail.
Kite is an MCP server, which gives ChatGPT the tools to read and build your bot.
Kite and paste https://kite.onl/api/mcp as the URL.OpenAI decides which plans can add their own MCP servers, and workspace admins can turn it off. If you can't find the option, your plan or workspace might not have it.
After you create it, ChatGPT sends you to Kite to sign in. On that page you decide how much ChatGPT gets:
Click on Connect to finish. To cut ChatGPT off later, remove it under API tokens in Kite.
ChatGPT works on your bot's commands, events and messages. It can't send requests to Discord directly, like reading the members of a server. That needs a client that connects with an API token, like Codex.
Start a new chat, type @ and pick Kite. Then tell ChatGPT what your bot should do. Name the app if you have more than one.
Before it saves anything, ChatGPT reads how the blocks it needs work. Kite then checks the finished flow and turns down broken ones, so a half-built command never reaches your server.
Run /suggest in your server. Discord can take up to a minute to show new commands.
From here on it's a normal Kite command. Change the text yourself in the editor, or go back to the chat and ask ChatGPT for a cooldown or a log channel.
ChatGPT sees your commands, logs, channels and roles, so you can describe things the way you'd tell a person.
Maybe you're looking for something else: a bot that answers questions in your server like ChatGPT does. You don't need ChatGPT or an OpenAI API key for that. The AI Discord bot page shows how to add an /ask command and a bot that replies when it's mentioned, with its own personality.
Codex can build your bot from the terminal too. Add Kite with this command. If Codex doesn't open Kite to sign in, run codex mcp login kite.
codex mcp add kite --url https://kite.onl/api/mcpChatGPT can write a bot with discord.js or discord.py. Then you need a server that keeps it running, and every change means asking for new code and deploying it again. Code from tutorials also breaks when the libraries change.
With Kite, ChatGPT builds flows that Kite runs and keeps up to date. See Kite's MCP server for everything ChatGPT can do, or the MCP documentation for other clients.
Yes. Kite hosts the bot for free, and the free plan has 10,000 credits a month for running its commands. Which ChatGPT plans can add their own MCP servers is up to OpenAI, so check that you see Add custom MCP server under Plugins.
No. It builds flows out of Kite's blocks, like Ban member or Send message, and Kite runs them. To tweak something, open the command in the editor. There's no code to read.
Yes, but that's a different thing: a bot that uses AI to answer your members. Kite's Ask AI block does that without an OpenAI API key. Start with the Ask AI template from the AI Discord bot page.
Yes. You only need ChatGPT while you build. The bot itself runs on Kite's servers around the clock.
You decide what ChatGPT gets when you sign in, and you can make it read only. If it changes something you didn't want, restore the earlier version from the command's history.

Build commands by connecting blocks, or describe them and let AI build them. Kite is free to start and hosts your bot 24/7.