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.4.5

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.4.5
File Size Uploaded
ory_antigravity-1.4.5.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / ory_antigravity-1.4.5.tar.gz

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

Download URL ory_antigravity-1.4.5-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e600219f449c6cb2bbf006e3f21a3c6740d0fbc7d82a661106b3faf905773e1
BLAKE2b-256 checksum
How to use checksums
ab2d881c60c9cdf7ffa61a315c8d737513d4275a2bc412f8d9258ad727c1b142
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.22 {"installer":{"name":"uv","version":"0.12.22","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 history Release notifications | RSS feed

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

This release

1.4.5 This release

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.14.0

2 release files

0.13.9

2 release files

0.11.1

1 release file

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