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.25.tar.gz (6.2 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.25-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for clawtell_hermes-2026.5.25.tar.gz
Algorithm Hash digest
SHA256 5207eaf58c673a6a68a22cd7b9bb83f7df1b1a60b2fff10247b9c4583016bc31
MD5 3571d7c29a60da4dd369915b2166e1d2
BLAKE2b-256 6c86b67c9594022a9324154bf474a506bdb8d2b71423e3b2ba2981d6bea981fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clawtell_hermes-2026.5.25-py3-none-any.whl
Algorithm Hash digest
SHA256 83b704381978059dbe5ee7b34108cb1cec114d56e6b90e5609d649422adce0a9
MD5 4eebce94fead8663f81fb30c118f6852
BLAKE2b-256 4fed6269c842d490fa12a348001f65010e1ed1039449e5d274a1b4100a3f4429

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