Skip to main content
Pre-release

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

ovos-hivemind-pipeline-plugin

When a local OVOS install can't handle an utterance, ask a smarter HiveMind hub.

This is an OVOS intent pipeline plugin (opm.pipeline entry point). It sits at a configurable position in the OVOS pipeline and forwards unmatched utterances to a remote HiveMind-core hub. The hub processes the utterance with its own skills/agent and speaks the answer through the local OVOS TTS or (in slave mode) directly via the shared bus.

Typical use case: a lightweight OVOS satellite (e.g. a Pi Zero) that escalates anything beyond its local skills to a powerful central hub.

Install

pip install ovos-hivemind-pipeline-plugin

Quickstart

1. Register a client on the HiveMind hub

On the machine running hivemind-core:

hivemind-core add-client
# note the Access Key and Password

2. Set the identity on the OVOS satellite

On the satellite (where OVOS and this plugin run):

hivemind-client set-identity \
  --key <access_key> \
  --password <password> \
  --host <hub_ip> --port 5678 --siteid satellite

Verify the connection:

hivemind-client test-identity
# should print: == Identity successfully connected to HiveMind!

3. Add the plugin to the OVOS pipeline

Edit ~/.config/mycroft/mycroft.conf:

{
  "intents": {
    "pipeline": [
      "ovos-padatious-pipeline-plugin-high",
      "ovos-adapt-pipeline-plugin",
      "ovos-padatious-pipeline-plugin-medium",
      "ovos-commonqa-pipeline-plugin",
      "ovos-hivemind-pipeline-plugin"
    ],
    "ovos-hivemind-pipeline-plugin": {
      "name": "Hive Mind",
      "confirmation": true,
      "slave_mode": false,
      "allow_selfsigned": false
    }
  }
}

Place "ovos-hivemind-pipeline-plugin" near the end of the pipeline so it only fires when local intent engines have already failed.

Configuration

All keys are under "ovos-hivemind-pipeline-plugin" in mycroft.conf.

Key Type Default Description
name string "Hive Mind" Name spoken in the confirmation dialog.
confirmation bool true Speak a confirmation before sending the utterance to HiveMind.
slave_mode bool false Share the local OVOS bus with the hub for passive monitoring and bidirectional message injection.
allow_selfsigned bool false Accept self-signed TLS certificates on the HiveMind connection.

How it works

When the OVOS pipeline reaches this plugin, match() always returns a match — it acts as a catch-all. The match queues a hivemind:ask event. ask_hivemind() optionally speaks a confirmation dialog, then calls hm.emit_mycroft(utterance) to forward the utterance to the hub.

The hub processes the utterance and, depending on slave_mode:

  • slave_mode disabled (default): the hub's speak messages are forwarded back via the HiveMind WebSocket and re-emitted on the local OVOS bus by on_speak.
  • slave_mode enabled: the hub has direct bus access and handles TTS itself.

Slave mode

In slave mode the hub receives all local bus messages for passive monitoring and can inject arbitrary messages into the local OVOS bus.

To send a message from the satellite to the hub (upstream):

bus.emit(Message("hive.send.upstream", {
    "msg_type": "bus",
    "payload": some_message.serialize()
}))

To push a message from the hub to the satellite (downstream). The hub's hivemind-ovos-agent-plugin handles this message:

bus.emit(Message("hive.send.downstream", {
    "msg_type": "bus",
    "payload": some_message.serialize(),
    "peer": "<peer id>"
}))

The peer value is the peer id of one connected satellite (HiveMindClientConnection.peer in hivemind-core). The id is name::session_id. If two connections share one access key and ask for the same id, hivemind-core adds a ::<8 hex> suffix to the second id. A bus message is sent only when peer is set:

  • If peer is missing, nothing is sent and no error is emitted.
  • If peer names no connected satellite, the hub emits "hive.client.send.error".
  • The hub does not check that peer is the satellite you mean. An id can name a different connected satellite. An old id can belong to a new connection with the same name::session_id. In both cases the hub sends the message to that connection and emits no error.
  • Do not build the peer id. Read it from message.context["source"] of a message that the satellite sent. hivemind-core sets source and peer to the peer id of the sender.
  • A propagate or broadcast message goes to all connected satellites.
  • An escalate message is dropped and no error is emitted.
  • If msg_type is missing, the handler raises an error and sends nothing.

This also enables nested hives: a device can run both hivemind-core (as a hub for its own satellites) and this plugin (as a satellite to a larger hub).

Documentation

License

Apache 2.0.

Metadata

Release files for ovos-hivemind-pipeline-plugin 0.1.1a7

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

Source distribution (sdist)

Source distribution for ovos-hivemind-pipeline-plugin 0.1.1a7
File Size Uploaded Provenance Actions
ovos_hivemind_pipeline_plugin-0.1.1a7.tar.gz 16.5 kB Without provenance Details for ovos_hivemind_pipeline_plugin-0.1.1a7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-hivemind-pipeline-plugin 0.1.1a7
File Interpreter ABI Platform Actions
ovos_hivemind_pipeline_plugin-0.1.1a7-py3-none-any.whl Python 3 none any Details for ovos_hivemind_pipeline_plugin-0.1.1a7-py3-none-any.whl

Total release size: 32.9 kB

Release files / ovos_hivemind_pipeline_plugin-0.1.1a7.tar.gz

Download URL ovos_hivemind_pipeline_plugin-0.1.1a7.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c8a599a40e829995e98779bbd964ec4f5dc208b1fce9a33e19d61c19dd915a8
BLAKE2b-256 checksum
How to use checksums
e0b778653016eee016ee1b16eab306a6570a61be088bfb37185492ec6aa3eb12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / ovos_hivemind_pipeline_plugin-0.1.1a7-py3-none-any.whl

Download URL ovos_hivemind_pipeline_plugin-0.1.1a7-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74ddbb61cc17b53eb99c4ed5518e1908749e25f0ebd905d61df9d3331f396144
BLAKE2b-256 checksum
How to use checksums
ed503822382dd005ab2db63d39bbe8b136ae3a78f7b743faafdb240a06805e96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for ovos-hivemind-pipeline-plugin 0.1.1a7

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