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,
records invocation activity, 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(), # record completions
)
In enforce mode 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 activity event 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ory_adk-1.1.0.tar.gz.
File metadata
- Download URL: ory_adk-1.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16bd05f10f94fc24652779f414539896aa4d4a19898c2674cbe738301df55742
|
|
| MD5 |
a2d057344b2621714c68b3c221b34db4
|
|
| BLAKE2b-256 |
b49b8f49780a8e10c3ede5fd2739629431d5213ef155502d77b45ea0b81a6061
|
File details
Details for the file ory_adk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ory_adk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22f88bbfb4bc57381408a9c0b4bcc15f2827591b8b29941991ce88fce3ad5646
|
|
| MD5 |
cf919ea08f76179739667e034cd52b12
|
|
| BLAKE2b-256 |
f214d5d1f0e26643f4d9a081980ec46602b4809f59f994831c383af2139f0bde
|