ChatGPT for Discord Bot
FreeRun your own ChatGPT Discord bot with a single command
FreeFree tier
Inputs: textOutputs: text
About ChatGPT for Discord Bot
ChatGPT Discord Bot is an open-source Go CLI tool that enables users to run their own Discord bot for interacting with OpenAI's ChatGPT. It allows collaborative conversations within Discord servers or private chats via direct messages. The bot can be installed by downloading a binary for macOS, Linux, or Windows, and requires an OpenAI account session token for authentication. Users can either launch a browser to sign in automatically or manually extract their session cookie. The project is licensed under MIT and is designed for easy self-hosting with a single command.
Key Features
Interact with ChatGPT via Discord bot in servers or DMs
Single-command CLI deployment on macOS, Linux, and Windows
Two authentication methods: automatic browser login or manual session cookie
Open-source under MIT license
Self-hosted for privacy and control
Pros & Cons
Pros
- Free and open-source
- Simple one-command setup after configuration
- No reliance on external hosted services (fully self-hosted)
- Multiple OS support (macOS, Linux, Windows)
- Works in both public Discord channels and private messages
Cons
- Requires self-hosting – no cloud/SaaS version
- Needs an OpenAI account and active ChatGPT session token
- Manual cookie extraction may be complex for non-technical users
- Only integrates with Discord (no other platforms)
Best For
Collaborative ChatGPT conversations in Discord communitiesPrivate ChatGPT interactions through Discord DMsSelf-hosted AI assistant for Discord servers
FAQ
How do I install ChatGPT Discord Bot?
Download the binary for your operating system from the releases page, extract it, fill in the env.example file with your Discord bot token (and optionally your Discord username), rename the file to '.env', then run './chatgpt-discord' in the terminal.
How is authentication handled?
By default, the program opens a browser for you to sign into your OpenAI ChatGPT account. Alternatively, you can manually extract the '__Secure-next-auth.session-token' cookie from your browser and store it in a config file at a platform-specific location.
Is this bot free?
Yes, the bot itself is free and open-source under the MIT license. However, you need an OpenAI account to access ChatGPT, which may have its own usage limits or pricing.
Can I use this bot in multiple Discord servers?
Yes. Once the bot is installed and running, it can be added to any Discord server where you have permission, as well as used in direct messages.