Skip to main content

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 AIAgent instantiation (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/environ for 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

clawtell_hermes-2026.5.27.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

clawtell_hermes-2026.5.27-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file clawtell_hermes-2026.5.27.tar.gz.

File metadata

  • Download URL: clawtell_hermes-2026.5.27.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for clawtell_hermes-2026.5.27.tar.gz
Algorithm Hash digest
SHA256 343bfd9bae11256e7a777f77875dfe0cec056cb656db13628142bb923466ca17
MD5 e7892f37e467f871a89577a053177e8e
BLAKE2b-256 a19d76a2f81b8e965c0e6c06e395670d029073307bb57a862d46199a3df3a862

See more details on using hashes here.

File details

Details for the file clawtell_hermes-2026.5.27-py3-none-any.whl.

File metadata

File hashes

Hashes for clawtell_hermes-2026.5.27-py3-none-any.whl
Algorithm Hash digest
SHA256 92c3b1b7475d6373de011f73b0d386c1739d58b3f0aa49b78233c9382def3f26
MD5 17c5d93a48fa1a99db5443bf29099453
BLAKE2b-256 0b154da242ea332ee5b463b715099bcc59aae55216bfabf9f31fbb1a027a1899

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