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.26.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.26-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clawtell_hermes-2026.5.26.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.26.tar.gz
Algorithm Hash digest
SHA256 9c6d155b362c6e5dcfae2172184b0048b5dc2bd882afcfac796d0d28ba83dc40
MD5 9f2b72353a3c5f3888426b3e731b8451
BLAKE2b-256 10d5cc0f431ae60ae8770bef01410c4afcb936cf7342fdb99b268c368814455b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for clawtell_hermes-2026.5.26-py3-none-any.whl
Algorithm Hash digest
SHA256 e52104d08427b76d98c393f163e5e44206e2bbcfc454bb0d410611c9b323cc5f
MD5 10e940b78285ae05eef176e19248ac12
BLAKE2b-256 e6e4cc40977b7f10f7dad7a668ba34f2e0fdc710dda7d0eff01003aec712ae63

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