Ory Agent Security for the Google Antigravity SDK — per-tool authorization, tracing, and identity propagation via the SDK's hook system. Built on ory-argus.
Project description
ory-antigravity
Ory Agent Security for the Google Antigravity SDK.
Authorizes every tool call against Ory Permissions via Antigravity's hook system, traces
invocations, and propagates user → agent → sub-agent identity — built on
ory-argus.
pip install ory-antigravity
from google.antigravity import Agent, LocalAgentConfig
from ory_antigravity import ory_hooks
config = LocalAgentConfig(hooks=ory_hooks(), ...)
agent = Agent(config)
ory_hooks() returns three hooks ready to drop into config.hooks:
OnSessionStartHook (auth gates), PreToolCallDecideHook (authorize), and
PostToolCallHook (trace). Building your own HookRunner? The same object exposes them by
name: ory_hooks().pre_tool_call_decide, .post_tool_call, .on_session_start.
In enforce mode (ORY_PERMISSION_MODE=enforce) a denied tool is aborted — the decide
hook returns HookResult(allow=False) and Antigravity hands the model the denial instead of
running the tool. In observe mode (default) the tool runs and a permission.observe_deny
span is recorded. The ask_question builtin is treated as a user-interaction primitive (never
gated); when the model delegates via start_subagent, a sub-agent identity and
agent→subagent delegation are recorded.
Antigravity decide hooks fail closed (a raising hook aborts the tool), so this integration owns fail-open itself: a network or rate-limit error on the permission check resolves to allow, and an Ory outage never hard-blocks the agent.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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_antigravity-0.11.1-py3-none-any.whl.
File metadata
- Download URL: ory_antigravity-0.11.1-py3-none-any.whl
- Upload date:
- Size: 5.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d65e1f582e6213c129971f9a0d85ce375ae4b3c93ae1730543a0bd53cda42f1
|
|
| MD5 |
df2abe9bd2f724a64c0f4c6018ea05fa
|
|
| BLAKE2b-256 |
8ac593e84872c080d18909b40f91f318d6ae3808bd907ef3308717fdfe4731ee
|