Prerequisites
Required Software
- Go 1.24+ — download
- libopus — required for voice channel audio decoding
macOS
brew install opus opusfile
Linux (Debian/Ubuntu)
apt install libopus-dev libopusfile-dev
Required Accounts & Tokens
| Token | Purpose | Where to get it |
|---|---|---|
| Discord bot token | Connect to Discord | Discord Developer Portal |
| LLM API key | Chat completions | OpenAI or any compatible provider |
| STT API key | Voice transcription (optional) | Same as LLM key if using OpenAI |
The LLM API key is required. The STT API key is only needed if you want voice commands.
See Discord Setup for a walkthrough on creating a Discord bot.