Skip to main content

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.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ory-hermes 1.4.4
File Size Uploaded
ory_hermes-1.4.4.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ory-hermes 1.4.4
File Interpreter ABI Platform
ory_hermes-1.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.4 kB

Release files / ory_hermes-1.4.4.tar.gz

Download URL ory_hermes-1.4.4.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
131e860f690b0bb63487174a79c0b60115381f31917361d5a5a91708fe85b45f
BLAKE2b-256 checksum
How to use checksums
deb5378a8951ea64adf98a3176c1c9aea3301c95e7c8ddb90a04bb00673e3c13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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.4.4-py3-none-any.whl

Download URL ory_hermes-1.4.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
383446d2881e61b6a0aff66279f0f6ff9abe204169be76fee022bbb0cc6e7eee
BLAKE2b-256 checksum
How to use checksums
38d86ac8ed1a3a8cc2f3e7ad6bfbd7c62116f814ae6248d238c5a89073b607df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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 history Release notifications | RSS feed

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

This release

1.4.4 This release

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page