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.6.0.tar.gz (6.8 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.6.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clawtell_hermes-2026.6.0.tar.gz
  • Upload date:
  • Size: 6.8 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.6.0.tar.gz
Algorithm Hash digest
SHA256 11bc26aa9656fd4a5396f04fdd61f365d95231ea4231f0c2ad462b73fa379449
MD5 57b7c3d721ee07f8169a6b416ee86a1f
BLAKE2b-256 95d0de4c6bd75b1ec17e0f99b2904c7461f1a72dd3ed1a011bd7728e0770cbcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clawtell_hermes-2026.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f945018f6a96f2adce8d04f4babfc1ee65e1aba08df5840c4f13e4f26e66f394
MD5 079f61fef5442561e23e4d0e47e6e87a
BLAKE2b-256 cb71ef7f36a2a55402464c12b555d48b93482b214a2c4d8b756cf48190ec44bc

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