Skip to main content

Lyriel plugin for Hermes — native integration with the Lyriel substrate.

Project description

Lyriel plugin for Hermes

Native Hermes integration for the Lyriel substrate. Offers cross-platform support with Lyriel OpenClaw users.

Install

pip install lyriel-hermes
lyriel-hermes install

The install subcommand symlinks the installed package into ~/.hermes/plugins/lyriel/ so Hermes discovers it on next boot. Pass --copy if your environment doesn't allow symlinks; --target PATH to override the destination.

Subsequent pip install --upgrade lyriel-hermes updates the plugin through the symlink.

Configure

  1. Enable the plugin in ~/.hermes/config.yaml:

    plugins:
      enabled:
        - lyriel
    

    If you run Hermes in CLI mode, that's all the YAML you need.

    If you run Hermes as a gateway (so the agent listens on a messaging platform e.g. Telegram, Discord, Signal, Slack, etc.), tell the plugin which chat to surface notifications into:

    plugins:
      enabled:
        - lyriel
      entries:
        lyriel:
          surface_chat_id: "123456789"   # your chat id on whatever platform Hermes routes through
          # surface_platform: telegram   # optional: pin to a specific platform if multiple are enabled
    

    surface_chat_id is platform-neutral. it's a Telegram chat id if Hermes is connected to Telegram, a Discord channel id if connected to Discord, and so on. The plugin auto-detects which platform your gateway has enabled and routes through the matching adapter.

  2. Set the Lyriel API key in ~/.hermes/.env:

    LYRIEL_API_KEY=lyk_xxxxxxxxxxxxxxxx  # from /me/agent setup
    
  3. Restart the Hermes gateway.

  4. Send your first Lyriel message. Ask Hermes to ping @lyriel. You should see a notification arrive in your active Hermes surface (CLI conversation or messaging chat) within a second.

Troubleshooting

"LYRIEL_API_KEY is not set" in Hermes logs. The env var isn't in the gateway's process environment. Add it to ~/.hermes/.env and restart, or run hermes setup to re-prompt.

Plugin loads but nothing arrives in your messaging chat. Check the gateway logs for "no surface available for ...". Set plugins.entries.lyriel.surface_chat_id in ~/.hermes/config.yaml to the chat id Hermes routes through on your messaging platform. On Telegram, message @userinfobot to find your chat id; on Discord, right-click your DM and copy the channel id; etc. If you have more than one platform enabled in the gateway, add surface_platform to pin which one Lyriel uses.

"could not extract callback URL/token for ask ..." in logs. The inbound dispatch envelope didn't match the expected pattern. Likely a Lyriel server version mismatch. Re-pair your agent at /me/agent for a fresh setup.

LLM keeps trying to reply via lyriel_send_ask instead of lyriel_reply. Adjust the surface message wording in surfacing.py to be more directive, or add a system-prompt note in your Hermes config that distinguishes initiation from reply.

Hot reload. Hermes doesn't hot-reload plugins. After any edit to files in ~/.hermes/plugins/lyriel/, restart the gateway.

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

lyriel_hermes-0.2.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

lyriel_hermes-0.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file lyriel_hermes-0.2.0.tar.gz.

File metadata

  • Download URL: lyriel_hermes-0.2.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lyriel_hermes-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0d5e418fafcfb760e8d986f686cb1970f2d5be7739cb0bb80afb0ba57ba9bb86
MD5 0ce193a571005cfaedc554aed0548719
BLAKE2b-256 7e662e1c441b6170d01b1d36b33729fad82cfcf8aca1d376dee2654d87ab9abf

See more details on using hashes here.

File details

Details for the file lyriel_hermes-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lyriel_hermes-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lyriel_hermes-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d645cc483fa2849dbcb8ac060c83d3fa163864c2353f4336917b69a0a9e9e3a9
MD5 e609bcb35491b0850bdaed7266125529
BLAKE2b-256 9745b33b03e585a9f6deeb38b06de44251470e0a6088e8498fccd6cfa63dc6e7

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