Skip to main content

ory-strands

Ory Agent Security for AWS Strands Agents.

Authorizes every tool call against Ory Permissions via Strands' tool-invocation hooks, traces invocations, and propagates user → agent identity — built on ory-argus.

pip install ory-strands
from strands import Agent
from ory_strands import OryHooks

agent = Agent(model=..., tools=[search, send_email], hooks=[OryHooks()])

OryHooks subscribes to BeforeToolCallEvent (authorize) and AfterToolCallEvent (trace). In enforce mode (ORY_PERMISSION_MODE=enforce) a denied tool is cancelled — Strands returns the denial as an error tool result and the tool never runs. In observe mode (default) the tool runs and a permission.observe_deny span is recorded.

Credentials come from the shared ~/.config/ory-agent-plugins/config.json, so a login from any Ory harness or ory-argus login is reused automatically. See docs/sdk-integrations.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ory_strands-0.14.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

ory_strands-0.14.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ory_strands-0.14.0.tar.gz.

File metadata

  • Download URL: ory_strands-0.14.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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}

File hashes

Hashes for ory_strands-0.14.0.tar.gz
Algorithm Hash digest
SHA256 9a948cb0944ac4d4ba7871fa4120ae6aa8d07eea0f04cbd19cc1a302855f3630
MD5 8aaf353da09177ca5f764bac54318492
BLAKE2b-256 f3b87dcff1d055da220b592cb90c16a83c46c4f6a4c70f24d090fc56698e7992

See more details on using hashes here.

File details

Details for the file ory_strands-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: ory_strands-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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}

File hashes

Hashes for ory_strands-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dabe035df2fccbbbb4c9cd5c2cab6400c34dca3213ec2375a1b40664a0766a53
MD5 cd49e325fc5ce11198796d6c26069abb
BLAKE2b-256 11f5f9e26f2bfa21a0cda155330f1d2d861a714c9b9e1dbcca0555f2064be878

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

This release

0.14.0 This release

2 files

0.13.9

2 files

0.12.1

2 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