From f9afd79f3ecb0fd6ef1e0adeb0e4a10fdb5ecb07 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Wed, 29 Apr 2026 02:19:24 +0000 Subject: [PATCH 1/3] fix: Add openai and matrix-nio dependencies for Hermes Matrix bridge --- ai/compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 ai/compose.yml diff --git a/ai/compose.yml b/ai/compose.yml old mode 100644 new mode 100755 index 460d44d..639df16 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -30,7 +30,10 @@ services: container_name: hermes restart: always # Gateway run enables the internal API server on port 8642 - command: gateway run + # Install openai and matrix-nio for Matrix bridge compatibility on startup + # Uses uv (modern Python package manager) with --system flag for venv installation + entrypoint: > + sh -c "/opt/hermes/.venv/bin/uv pip install openai matrix-nio[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run" environment: - OLLAMA_HOST=http://ollama:11434 - API_SERVER_ENABLED=true @@ -38,9 +41,10 @@ services: - API_SERVER_HOST=0.0.0.0 - API_SERVER_KEY=hermes_local_key - GATEWAY_ALLOW_ALL_USERS=true - - OPENROUTER_API_KEY=${OPENROUTER_API_KEY} + - OPENROUTER_API_KEY=${OPEN...KEY} volumes: - /mnt/HoardingCow_docker_data/Hermes/data:/opt/data + - /mnt/HoardingCow_docker_data/Hermes/venv:/opt/hermes/.venv devices: - /dev/kfd:/dev/kfd - /dev/dri:/dev/dri -- 2.49.1 From a404f5e2c44411fac1c88fe07e9af724458012e2 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Wed, 29 Apr 2026 02:43:35 +0000 Subject: [PATCH 2/3] fix: Correct OPENROUTER_API_KEY variable name --- ai/compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/compose.yml b/ai/compose.yml index 639df16..72ebf85 100755 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -41,7 +41,7 @@ services: - API_SERVER_HOST=0.0.0.0 - API_SERVER_KEY=hermes_local_key - GATEWAY_ALLOW_ALL_USERS=true - - OPENROUTER_API_KEY=${OPEN...KEY} + - OPENROUTER_API_KEY=${OPENROUTER_API_KEY} volumes: - /mnt/HoardingCow_docker_data/Hermes/data:/opt/data - /mnt/HoardingCow_docker_data/Hermes/venv:/opt/hermes/.venv -- 2.49.1 From 2aab06cc1a76b2b13400453f318fbc97b80d061f Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Wed, 29 Apr 2026 03:34:15 +0000 Subject: [PATCH 3/3] fix: use mautrix[encryption] instead of matrix-nio for Matrix bridge The Hermes Matrix gateway uses the mautrix SDK, not matrix-nio. This fixes E2EE support by installing the correct library. Refs: PR #2 --- ai/compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/compose.yml b/ai/compose.yml index 72ebf85..e96993f 100755 --- a/ai/compose.yml +++ b/ai/compose.yml @@ -30,10 +30,10 @@ services: container_name: hermes restart: always # Gateway run enables the internal API server on port 8642 - # Install openai and matrix-nio for Matrix bridge compatibility on startup + # Install openai and mautrix[encryption] for Matrix bridge with E2EE support on startup # Uses uv (modern Python package manager) with --system flag for venv installation entrypoint: > - sh -c "/opt/hermes/.venv/bin/uv pip install openai matrix-nio[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run" + sh -c "/opt/hermes/.venv/bin/uv pip install openai mautrix[encryption] --system -q && /opt/hermes/.venv/bin/hermes gateway run" environment: - OLLAMA_HOST=http://ollama:11434 - API_SERVER_ENABLED=true -- 2.49.1