Skip to main content

Connect a Hermes agent to the Wishee bridge via reverse WebSocket

Project description

wishee-hermes-connector

Connect a Hermes agent to the Wishee bridge (openclaw-bridge) over a reverse WebSocket — the Hermes counterpart of @wishee-ai/openclaw-connector. The bridge drives the agent (chat.send / chat.history / sessions.reset) and receives its replies (task-result).

Requires no changes to the bridge or to hermes-agent core.

How it works

The connector is a Hermes platform adapter (runs inside the hermes gateway process). It dials the bridge, does the hello/welcome handshake, then:

  • chat.send → mints a runId, answers immediately, runs the agent turn, and emits a task-result event when the turn finishes (the bridge's device-push path).
  • chat.history / sessions.reset → reads / clears the Hermes session store.

From the bridge's perspective a Hermes agent is indistinguishable from an OpenClaw instance: same /api/bind, same hello, same RPCs, same event frames.

The transport auto-reconnects: an unexpected socket close (bridge restart, network drop) re-dials with capped exponential backoff and re-runs the hello/welcome handshake. A deliberate shutdown never reconnects.

Install

pip install wishee-hermes-connector   # into your Hermes environment

Enable

  1. Add wishee to plugins.enabled in your Hermes config.yaml (entry-point plugins are opt-in).
  2. Optionally set WISHEE_BRIDGE_URL to override the default (wss://ai-bridge.wishee.com.cn/ws).
  3. Run hermes gateway. On first run it prints a QR code — scan it to bind this instance to the bridge (via the bridge's /api/bind). Identity is stored at ~/.hermes/wishee-connector/binding.json.

Scope

v1 emits task-result on each completed turn (the bridge's device-push path). Live streaming (agent progress events) is out of scope for v1.

Development

uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python -e /path/to/hermes-agent
uv pip install --python .venv/bin/python -e ".[dev]"
.venv/bin/python -m pytest -q

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wishee_hermes_connector-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wishee_hermes_connector-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file wishee_hermes_connector-0.1.0.tar.gz.

File metadata

File hashes

Hashes for wishee_hermes_connector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e08c0ab908019cdbca8142a4fb33f7493922f93da9fad47acaea1019c75ee4ce
MD5 6d12c77e12932edcfbb4c34c0b099b04
BLAKE2b-256 d71afa4ae6ea7471c495bd9b628a9b75d59a06b12bc479efd25f979d6a2e8f97

See more details on using hashes here.

File details

Details for the file wishee_hermes_connector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wishee_hermes_connector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 834af2c1abf9ebdd59e69895c9e1d12d0a94a9e9241d484ffe34dabd3a989486
MD5 2b8a9da89d7a57d71b58720ae2bceb59
BLAKE2b-256 fb8801f2b0f9711d3f82cd86b039ec153834ea496aadffde55d1c4f34a935580

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page