ory-hermes
Ory Agent Security for the Hermes agent framework.
Wraps your Hermes tool registry so every call is authorized against Ory Permissions,
audited, and tied to the user → agent identity — built on
ory-argus.
pip install ory-hermes
Hermes drives its loop from a {name: callable} tool registry (model_tools).
Gate it before handing it to the agent:
from ory_hermes import guard_function_map
tools = guard_function_map(model_tools) # returns a gated copy of the registry
Tool objects (with a run / _run method) work too:
from ory_hermes import guard_tools
tools = guard_tools([search_tool, shell_tool])
In enforce mode a denied tool raises OryDenialError
before the tool body runs; Hermes surfaces the denial and the tool never executes. In
observe mode (default) the tool runs and a permission.observe_deny activity event is recorded.
Network / rate-limit errors fail open.
The integration is SDK-free: it wraps Hermes' plain Python registry by duck typing. Hermes is installed through its own bootstrap process and does not publish an installable Python SDK, so this package intentionally has no Hermes dependency or external real-SDK compatibility test.
Credentials come from the shared ~/.config/ory-agent-plugins/config.json, so a login
performed by any other Ory harness plugin or SDK integration is reused here.
Metadata
Release files for ory-hermes 1.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ory_hermes-1.5.1.tar.gz | 6.3 kB | Without provenance | Details for ory_hermes-1.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ory_hermes-1.5.1-py3-none-any.whl | Python 3 | none | any | Details for ory_hermes-1.5.1-py3-none-any.whl |
Total release size: 11.4 kB
Release files / ory_hermes-1.5.1.tar.gz
| Download URL | ory_hermes-1.5.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7e69da699141df10bc86b17184f2a50f26f3b09ac3f0809fd99651bc524ce45
|
|
BLAKE2b-256 checksum How to use checksums |
a4ac29c07a1cfce236fe13e6cccb1f45ce55abf1c8836fcabc67de2ae097724d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ory_hermes-1.5.1-py3-none-any.whl
| Download URL | ory_hermes-1.5.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af22d57c2e8e440766e9028a1ef68815d75e70f9f70be53271d0c150c32c7dd5
|
|
BLAKE2b-256 checksum How to use checksums |
510ad0d6629f0d9a940e72e21f511f7b8f26fd2850adc627e64479566858c7f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ory-hermes 1.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.