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 arunId, answers immediately, runs the agent turn, and emits atask-resultevent 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
- Add
wisheetoplugins.enabledin your Hermesconfig.yaml(entry-point plugins are opt-in). - Optionally set
WISHEE_BRIDGE_URLto override the default (wss://ai-bridge.wishee.com.cn/ws). - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wishee_hermes_connector-0.1.0.tar.gz.
File metadata
- Download URL: wishee_hermes_connector-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e08c0ab908019cdbca8142a4fb33f7493922f93da9fad47acaea1019c75ee4ce
|
|
| MD5 |
6d12c77e12932edcfbb4c34c0b099b04
|
|
| BLAKE2b-256 |
d71afa4ae6ea7471c495bd9b628a9b75d59a06b12bc479efd25f979d6a2e8f97
|
File details
Details for the file wishee_hermes_connector-0.1.0-py3-none-any.whl.
File metadata
- Download URL: wishee_hermes_connector-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
834af2c1abf9ebdd59e69895c9e1d12d0a94a9e9241d484ffe34dabd3a989486
|
|
| MD5 |
2b8a9da89d7a57d71b58720ae2bceb59
|
|
| BLAKE2b-256 |
fb8801f2b0f9711d3f82cd86b039ec153834ea496aadffde55d1c4f34a935580
|