Skip to main content

Baidu App platform plugin for Hermes Agent (polling mode, no webhook)

Project description

hermes-baiduapp

Baidu App platform plugin for Hermes Agent.

Uses polling mode (/channel/msg/poll) to receive messages. No webhook required.

Install

uv pip install hermes-baiduapp --python ~/.hermes/hermes-agent/venv/bin/python

or, inside the Hermes Python environment:

pip install hermes-baiduapp

Enable

Hermes discovers pip-installed plugins through the hermes_agent.plugins entry-point group, but entry-point plugins must still be enabled in ~/.hermes/config.yaml:

plugins:
  enabled:
    - baiduapp

Configure

Add to ~/.hermes/.env:

BAIDU_APP_KEY=your-app-key
BAIDU_APP_SECRET=your-app-secret
# Optional:
BAIDU_API_BASE=https://claw.baidu.com
GATEWAY_ALLOW_ALL_USERS=true

Then restart the gateway:

hermes gateway run

Protocol

  • Receive: polling POST /channel/msg/poll
  • Send: callback POST /channel/msg/callback
  • Auth: Authorization: Bearer SHA1(ak + sk + timestamp + nonce)

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

hermes_baiduapp-0.1.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

hermes_baiduapp-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file hermes_baiduapp-0.1.3.tar.gz.

File metadata

  • Download URL: hermes_baiduapp-0.1.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.7

File hashes

Hashes for hermes_baiduapp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 69b2c80cb8977062b0551723db6510922251157483416c89c425a949d83d14ce
MD5 2da7c5ea4e02d289779c1da95d9d7f55
BLAKE2b-256 778eed3dd079ed6da0742efb6539e8bf8a49c8af623221ee747bbdf7465defb1

See more details on using hashes here.

File details

Details for the file hermes_baiduapp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_baiduapp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 501e27d832eac6ecebd63c06b8332df669806da08e7895290f4d0c19bc24758a
MD5 f26c2fceb331b359e4e9ea48ee64d185
BLAKE2b-256 3a710935bcb8018402c2a8986a7e68938c9abc05070f55851e556b47988a20f3

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