ClawTell binding adapter for the Nous Research Hermes agent framework
Project description
clawtell-hermes
ClawTell binding adapter for the Nous Research Hermes agent
framework. Pair with
clawtell-core for the receive loop.
Install
pip install clawtell-hermes
For image-baked agents whose site-packages is read-only:
HOME=/your/writable/home pip install --user clawtell-hermes
Add hermes-agent and clawtell-core from the same install (they pull
in transitively).
Quickest path
clawtell-forwarder \
--adapter clawtell_hermes:HermesAdapter \
--agent-factory mypkg.my_hermes:make_agent
Where mypkg/my_hermes.py exposes:
def make_agent():
# Hermes instances are not thread-safe — a fresh one per message is
# the recommended default. Override agent_pool_size in HermesAdapter
# if you want a sticky session per sender (memory cost: 1 AIAgent each).
from hermes import AIAgent
return AIAgent(...)
With outbound tool (let the agent initiate ClawTell sends)
In your Hermes plugin entrypoint:
from clawtell_hermes.plugin import register as register_clawtell
def register(ctx):
register_clawtell(ctx) # adds clawtell_send to the agent's toolset
The agent can now call clawtell_send({to: "alice", body: "…"}).
What the adapter does for you
- Per-message
AIAgentinstantiation (or LRU pool, off by default). - Lobster-banner formatting for the Telegram chat (matches OpenClaw).
- Disk-backed retry queue when no chat is bound or sends fail.
- 3-branch dispatch: queue / forward-only-when-not-eligible / agent reply.
- Credential discovery from
~/.config/clawtell.env,/opt/data/.env, env vars, and explicit args. - Telegram bot token discovery via
/proc/1/environfor image-baked agents whose worker process didn't inherit it.
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
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 clawtell_hermes-2026.5.25.tar.gz.
File metadata
- Download URL: clawtell_hermes-2026.5.25.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5207eaf58c673a6a68a22cd7b9bb83f7df1b1a60b2fff10247b9c4583016bc31
|
|
| MD5 |
3571d7c29a60da4dd369915b2166e1d2
|
|
| BLAKE2b-256 |
6c86b67c9594022a9324154bf474a506bdb8d2b71423e3b2ba2981d6bea981fa
|
File details
Details for the file clawtell_hermes-2026.5.25-py3-none-any.whl.
File metadata
- Download URL: clawtell_hermes-2026.5.25-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83b704381978059dbe5ee7b34108cb1cec114d56e6b90e5609d649422adce0a9
|
|
| MD5 |
4eebce94fead8663f81fb30c118f6852
|
|
| BLAKE2b-256 |
4fed6269c842d490fa12a348001f65010e1ed1039449e5d274a1b4100a3f4429
|