Link your Hermes Agent to Discord so you can message your AI agent from inside your server. It suits anyone who already runs Hermes Agent and has a Discord server. You need a Discord account, a server where you can add bots, and the Hermes Gateway installed.
YouTube video: Connect Hermes Agent to Discord in 3 Minutes
Captions are available. Use CC in the YouTube player.
Choose a chapter (14)
- Video length
- 2 min 52 s
- Time to do it
- 10 minutes
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Go to the Discord Developer Portal and create a new application for your agent. Give it a clear name so you can find it later.
Open the Bot section of your application and generate the bot token. Copy it and keep it private.
On the same Bot page, turn on the Message Content Intent toggle so your agent can read messages.
Open your Hermes Gateway configuration and paste the bot token into the Discord settings.
Use the OAuth2 invite link from the Developer Portal to add the bot to your Discord server.
Run the Hermes setup gateway command in your terminal to start the pairing process.
In Discord, enable Developer Mode, right-click your channel and copy the channel ID.
Pair your Discord user ID with the agent through the secure pairing step in the setup.
Start the gateway and send a test message in your Discord channel to check the agent replies.
Tips and common mistakes
Never share your bot token or commit it to a public repository.
If the bot ignores your messages, check that Message Content Intent is still enabled.
Keep the gateway running in the background, or host it on a VPS, so the agent stays online.
Questions
Do I need a paid Discord plan?
No. Creating an application and adding a bot is free on the Discord Developer Portal.
Why does my bot not respond in the channel?
Usually the Message Content Intent is off or the gateway is not running. Check both and restart the gateway.
Can the agent read files on my computer?
Yes, once paired the agent can read files and browse the web from Discord, so only pair accounts you trust.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


