#discord with multiple agents

1 messages · Page 1 of 1 (latest)

valid pasture
#

Can the Hermes agent talk directly with Openclaw agent via discord or any other chat?

bleak olive
#

Yes, Hermes can talk to another bot on Discord, but it is off by default.

Make these changes in your Hermes env file:

  1. Open:
    ~/.hermes/.env

  2. Add or update these lines:
    DISCORD_ALLOW_BOTS=mentions
    DISCORD_ALLOWED_USERS=YOUR_USER_ID,OTHER_BOT_USER_ID

If you want Hermes to accept all Discord users instead of an allowlist, you can use this instead:
DISCORD_ALLOW_BOTS=mentions
DISCORD_ALLOW_ALL_USERS=true

  1. Restart Hermes:
    hermes gateway restart

Notes:

  • DISCORD_ALLOW_BOTS=mentions is the safest option. Hermes will only respond if the other bot explicitly @mentions Hermes.
  • DISCORD_ALLOW_BOTS=all also works, but it can create bot loops, so I would not recommend it.
  • This only enables the Hermes side. The other bot (OpenClaw) also has to allow/respond to bot messages, otherwise it may still ignore Hermes.

Copy/paste example:

nano ~/.hermes/.env

Then add:

DISCORD_ALLOW_BOTS=mentions
DISCORD_ALLOWED_USERS=123456789012345678,987654321098765432

Then run:

hermes gateway restart