Hermes Discord access is powerful. Authorized Discord users can interact with the full Hermes agent pipeline, including tools, local files, GitHub auth, terminal commands, skills, memory, and configured integrations.
Use explicit allowlists:
DISCORD_ALLOWED_USERS=your_discord_user_idor role-based access in trusted servers:
DISCORD_ALLOWED_ROLES=role_idDo not set DISCORD_ALLOW_ALL_USERS=true unless the server is private/trusted and you understand the impact.
Leave these defaults in place:
DISCORD_ALLOW_MENTION_EVERYONE=false
DISCORD_ALLOW_MENTION_ROLES=false
DISCORD_ALLOW_MENTION_USERS=true
DISCORD_ALLOW_MENTION_REPLIED_USER=trueThis prevents accidental @everyone, @here, or role pings from generated text.
Keep:
DISCORD_ALLOW_BOTS=noneDo not wire multiple auto-replying Hermes bots together in the same channel/thread. Discord reply mentions can create loops.
Never commit:
- Discord bot tokens
- GitHub tokens
- LLM provider API keys
- OAuth files or credential exports
Use ~/.hermes/.env, Windows Credential Manager, a password manager, or deployment secrets.
Recommended:
group_sessions_per_user: trueThis keeps each user's session isolated inside shared Discord channels. Turn it off only for deliberate collaborative-room behavior.
- Reset the token in Discord Developer Portal immediately.
- Update
~/.hermes/.envor your secret store. - Restart Hermes gateway.
- Audit recent bot activity in server channels/logs.