- Open https://discord.com/developers/applications.
- Click New Application.
- Name it, for example
Hermes Agent. - Save the Application ID for invite URL generation.
- Go to Bot in the app sidebar.
- Customize name/avatar if desired.
- Under Privileged Gateway Intents, enable:
- Message Content Intent
- Server Members Intent
- Click Save Changes.
- Reset/copy the bot token. It is only shown once.
Generate an invite URL:
bash scripts/generate_invite_url.sh YOUR_APPLICATION_IDOpen the URL, select your server, and authorize.
You need Manage Server permission in the target Discord server.
Enable Developer Mode in Discord:
- User Settings → Advanced → Developer Mode ON.
- Right-click your profile → Copy User ID.
- Optional: right-click channel/server/role → Copy ID.
Use the guided setup:
hermes gateway setupOr manually merge .env.example into ~/.hermes/.env:
DISCORD_BOT_TOKEN=
DISCORD_ALLOWED_USERS=Fill those values only in your local ~/.hermes/.env or deployment secret store.
Optional config defaults live in config/discord.config.yaml.
bash scripts/doctor.shForeground:
hermes gateway runIf gateway is installed as a service:
hermes gateway restart
hermes gateway status- DM the bot: it should answer every allowed DM.
- In a server channel:
@mentionit by default. - In an auto-created thread: continue talking normally.
If it is online but silent, re-check Message Content Intent and DISCORD_ALLOWED_USERS.