diff --git a/tests/hermes_cli/test_setup_matrix_e2ee.py b/tests/hermes_cli/test_setup_matrix_e2ee.py index ebdb5a44c7..d965e354ac 100644 --- a/tests/hermes_cli/test_setup_matrix_e2ee.py +++ b/tests/hermes_cli/test_setup_matrix_e2ee.py @@ -22,7 +22,7 @@ def _parse_setup_imports(): class TestSetupShutilImport: def test_shutil_imported_at_module_level(self): """shutil must be imported at module level so setup_gateway can use it - for the matrix-nio auto-install path (line ~2126).""" + for the mautrix auto-install path.""" names = _parse_setup_imports() assert "shutil" in names, ( "shutil is not imported at the top of hermes_cli/setup.py. " diff --git a/website/docs/developer-guide/gateway-internals.md b/website/docs/developer-guide/gateway-internals.md index 0c6a753ec5..0d97f13226 100644 --- a/website/docs/developer-guide/gateway-internals.md +++ b/website/docs/developer-guide/gateway-internals.md @@ -153,7 +153,7 @@ gateway/platforms/ ├── slack.py # Slack Socket Mode ├── whatsapp.py # WhatsApp Business Cloud API ├── signal.py # Signal via signal-cli REST API -├── matrix.py # Matrix via matrix-nio (optional E2EE) +├── matrix.py # Matrix via mautrix (optional E2EE) ├── mattermost.py # Mattermost WebSocket API ├── email.py # Email via IMAP/SMTP ├── sms.py # SMS via Twilio diff --git a/website/docs/user-guide/messaging/matrix.md b/website/docs/user-guide/messaging/matrix.md index 1f6afd6bbb..2c9bdb2291 100644 --- a/website/docs/user-guide/messaging/matrix.md +++ b/website/docs/user-guide/messaging/matrix.md @@ -6,7 +6,7 @@ description: "Set up Hermes Agent as a Matrix bot" # Matrix Setup -Hermes Agent integrates with Matrix, the open, federated messaging protocol. Matrix lets you run your own homeserver or use a public one like matrix.org — either way, you keep control of your communications. The bot connects via the `matrix-nio` Python SDK, processes messages through the Hermes Agent pipeline (including tool use, memory, and reasoning), and responds in real time. It supports text, file attachments, images, audio, video, and optional end-to-end encryption (E2EE). +Hermes Agent integrates with Matrix, the open, federated messaging protocol. Matrix lets you run your own homeserver or use a public one like matrix.org — either way, you keep control of your communications. The bot connects via the `mautrix` Python SDK, processes messages through the Hermes Agent pipeline (including tool use, memory, and reasoning), and responds in real time. It supports text, file attachments, images, audio, video, and optional end-to-end encryption (E2EE). Hermes works with any Matrix homeserver — Synapse, Conduit, Dendrite, or matrix.org. @@ -234,11 +234,11 @@ Hermes supports Matrix end-to-end encryption, so you can chat with your bot in e ### Requirements -E2EE requires the `matrix-nio` library with encryption extras and the `libolm` C library: +E2EE requires the `mautrix` library with encryption extras and the `libolm` C library: ```bash -# Install matrix-nio with E2EE support -pip install 'matrix-nio[e2e]' +# Install mautrix with E2EE support +pip install 'mautrix[encryption]' # Or install with hermes extras pip install 'hermes-agent[matrix]' @@ -277,7 +277,7 @@ If you delete the `~/.hermes/platforms/matrix/store/` directory, the bot loses i ::: :::info -If `matrix-nio[e2e]` is not installed or `libolm` is missing, the bot falls back to a plain (unencrypted) client automatically. You'll see a warning in the logs. +If `mautrix[encryption]` is not installed or `libolm` is missing, the bot falls back to a plain (unencrypted) client automatically. You'll see a warning in the logs. ::: ## Home Room @@ -321,14 +321,14 @@ curl -H "Authorization: Bearer YOUR_TOKEN" \ If this returns your user info, the token is valid. If it returns an error, generate a new token. -### "matrix-nio not installed" error +### "mautrix not installed" error -**Cause**: The `matrix-nio` Python package is not installed. +**Cause**: The `mautrix` Python package is not installed. **Fix**: Install it: ```bash -pip install 'matrix-nio[e2e]' +pip install 'mautrix[encryption]' ``` Or with Hermes extras: