Skip to main content

ory-antigravity

Ory Agent Security for the Google Antigravity SDK.

Authorizes every tool call against Ory Permissions via Antigravity's hook system, records 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 (activity log). 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 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 activity event 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.

Metadata

Release files for ory-antigravity 1.5.1

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-antigravity 1.5.1
File Size Uploaded Provenance Actions
ory_antigravity-1.5.1.tar.gz 6.7 kB Without provenance Details for ory_antigravity-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ory-antigravity 1.5.1
File Interpreter ABI Platform Actions
ory_antigravity-1.5.1-py3-none-any.whl Python 3 none any Details for ory_antigravity-1.5.1-py3-none-any.whl

Total release size: 11.8 kB

Release files / ory_antigravity-1.5.1.tar.gz

Download URL ory_antigravity-1.5.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
be466b1920302276d68210ff906fb8f717b04ccd0364c23ed8f2971ce518bfdc
BLAKE2b-256 checksum
How to use checksums
74644931ca50143103978a6465e3686ea556e59ddcaf6431e1355ccfc5d7bef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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_antigravity-1.5.1-py3-none-any.whl

Download URL ory_antigravity-1.5.1-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63021b9398332384abee5ed0828a90530c1b1e89442eb429eab24b8de7e74716
BLAKE2b-256 checksum
How to use checksums
8013cce82d02bee9ea9c928936f742a7be7ebd6b7b736cbc25841679b9ef3285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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}

Security for ory-antigravity 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files No provenance

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