Skip to main content

Ory Agent Security for the Google Agent Development Kit (ADK) — per-tool authorization, tracing, and identity propagation via before/after tool callbacks. Built on ory-argus.

Project description

ory-adk

Ory Agent Security for the Google Agent Development Kit (ADK).

Authorizes every tool call against Ory Permissions via ADK's before/after tool callbacks, traces invocations, and propagates user → agent → sub-agent identity — built on ory-argus.

pip install ory-adk
from google.adk.agents import Agent
from ory_adk import ory_before_tool_callback, ory_after_tool_callback

agent = Agent(
    name="assistant",
    model="gemini-2.5-flash",
    tools=[search, send_email],
    before_tool_callback=ory_before_tool_callback(),   # gate every tool call
    after_tool_callback=ory_after_tool_callback(),     # trace completions
)

In enforce mode (ORY_PERMISSION_MODE=enforce) a denied tool is skipped — ADK returns the denial to the model and the tool never runs. In observe mode (default) the tool runs and a permission.observe_deny span is recorded. When the model delegates to a sub-agent (transfer_to_agent), a sub-agent identity + agent→subagent delegation are 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.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ory_adk-0.11.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ory_adk-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: ory_adk-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ory_adk-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c8f4784249f2c8918c22b2393e891a1708892375a604e1e22d428b132be39a
MD5 f1724e31f224c089d8564a39d80d0b57
BLAKE2b-256 e3c195d87d3759dc3e806071632cd4e1cd701c1d28b1d14074ffaa46e9f5242e

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