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.2.tar.gz (8.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.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hermes_baiduapp-0.1.2.tar.gz
  • Upload date:
  • Size: 8.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.2.tar.gz
Algorithm Hash digest
SHA256 880d17db5712f8338a1bf4a38aa51d5f8d5b5908a1d3516cbea698d3e359c577
MD5 b10ad682c9593bbdad2e7a8461f9edcb
BLAKE2b-256 96f6d6ecd3c0f885c7d746cc54d405b0c5ae79bfbef17fd5688478089ecbb2fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hermes_baiduapp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91ec4cc55bd26a4d1008e532bb24831b3e596510d9d0c22e0d2d22c1580e2674
MD5 5ec6178c0c1089c15a0e978e11938016
BLAKE2b-256 57401b8699a2d61c7069efe556ed4819a0b3c3eb1ae9875c5f66dae417ceb2b3

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