Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

HiveMind Matrix Bridge

Relay a Matrix chatroom to a HiveMind hub.

The bridge is a HiveMind satellite whose input and output are a Matrix room instead of a microphone. Messages that mention the bot are forwarded to the hub as utterances; the hub's spoken reply is posted back into the room. This turns any HiveMind hub (and the OVOS skills behind it) into a Matrix chatbot.

Matrix room  ⇄  HiveMind-matrix-bridge  ⇄  HiveMind hub (hivemind-core)  ⇄  OVOS skills

Prerequisites

  • A running HiveMind hub (hivemind-core) you can reach over the network.
  • A HiveMind access key + password for this bridge, issued by the hub with hivemind-core add-client (see Quickstart).
  • A Matrix account for the bot and an access token for it. Any homeserver works (matrix.org or self-hosted). Create the account, log in once, and copy its access token (in Element: Settings → Help & About → Access Token).
  • The room alias the bot should join (for example #hivemind-bots:matrix.org); invite the bot account to that room.

Install

pip install git+https://github.com/JarbasHiveMind/HiveMind-matrix-bridge

Or from a checkout:

git clone https://github.com/JarbasHiveMind/HiveMind-matrix-bridge
cd HiveMind-matrix-bridge
pip install .

This installs the HiveMind-matrix console command.

Quickstart

1. Register the bridge on the hub (run where hivemind-core is installed):

hivemind-core add-client --name matrix-bridge \
  --access-key "your-access-key" --password "your-password"

Note the access key and password — the bridge needs them to authenticate.

2. Store the HiveMind credentials so they are read automatically:

hivemind-client set-identity \
  --key "your-access-key" \
  --password "your-password" \
  --host "ws://192.168.1.100"

(set-identity ships with hivemind-bus-client, a dependency of this bridge.) Alternatively, pass --key/--password/--host on every run instead of storing an identity.

3. Run the bridge:

HiveMind-matrix run \
  --botname thehivebot \
  --matrixtoken "syt_your_access_token" \
  --matrixhost "https://matrix.org" \
  --room "#hivemind-bots:matrix.org"

4. Send a message. In the joined room, mention the bot:

thehivebot what time is it?

The bridge strips the mention, forwards what time is it? to the hub, waits for the hub's speak reply, and posts it back to the room.

Configuration

HiveMind-matrix run options:

Option Description Default
--botname Mention prefix that triggers the bot —
--matrixtoken Matrix access token for the bot account —
--matrixhost Matrix homeserver URL https://matrix.org
--room Room alias to join #hivemind-bots:matrix.org
--key HiveMind access key read from identity file
--password HiveMind password read from identity file
--host HiveMind host (a ws:// prefix is added if no scheme) read from identity file
--port HiveMind port 5678

When --key/--password/--host are omitted they are read from the stored NodeIdentity. If none of the three are available the bridge exits with an error pointing you at hivemind-client set-identity.

Troubleshooting

  • NodeIdentity not set — run hivemind-client set-identity, or pass --key/--password/--host explicitly.
  • Bot ignores messages — the message must contain --botname exactly; messages without the mention are dropped by design.
  • Reply is the literal text Error — the hub did not return a speak within the response timeout (30s). Confirm the hub is reachable, the access key is authorized, and an OVOS pipeline is producing spoken answers.
  • Connection refused / no reply — verify --host and --port point at the running hub, and that the bridge's access key is registered (hivemind-core list-clients).

Documentation

  • Operator setup — getting the bot's Matrix account + access token (or self-hosting a homeserver), registering the bridge on a HiveMind hub, the run command, and live e2e.

See also docs/ for a full setup walkthrough, a credential reference, and worked examples.

Metadata

Release files for HiveMind-matrix-bridge 0.2.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for HiveMind-matrix-bridge 0.2.0a1
File Size Uploaded Provenance Actions
hivemind_matrix_bridge-0.2.0a1.tar.gz 10.8 kB Without provenance Details for hivemind_matrix_bridge-0.2.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for HiveMind-matrix-bridge 0.2.0a1
File Interpreter ABI Platform Actions
hivemind_matrix_bridge-0.2.0a1-py3-none-any.whl Python 3 none any Details for hivemind_matrix_bridge-0.2.0a1-py3-none-any.whl

Total release size: 21.4 kB

Release files / hivemind_matrix_bridge-0.2.0a1.tar.gz

Download URL hivemind_matrix_bridge-0.2.0a1.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c7a7b240a514c56ee6628cb9e39252cd6464ac9a285a8b9da78bfb93d6f4616d
BLAKE2b-256 checksum
How to use checksums
7bc4c0e616707df92f33ee4f13d6c730f4c45ed7b179963b6ccdb23fbeaf426b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / hivemind_matrix_bridge-0.2.0a1-py3-none-any.whl

Download URL hivemind_matrix_bridge-0.2.0a1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f535c5dbfff0fb8b80d514e264ab7246403d3dc29e9ba559ab6a26bb135d974
BLAKE2b-256 checksum
How to use checksums
3a05b71ed84ac7dff3b334befd03f4e5c6cc767a5d4664a92311ff97b7860f4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for HiveMind-matrix-bridge 0.2.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page