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

Download files

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

Source Distribution

ory_antigravity-0.14.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

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

ory_antigravity-0.14.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ory_antigravity-0.14.0.tar.gz.

File metadata

  • Download URL: ory_antigravity-0.14.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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

Hashes for ory_antigravity-0.14.0.tar.gz
Algorithm Hash digest
SHA256 ad0e878efa02d14d64022bbf20f26896172dc50488281c188de7137a19ac3d23
MD5 7841f73ef536f326377fa334eafe9f0a
BLAKE2b-256 f309f85fbf2326bacef21df863cd39633f2e19304c1efbb36ead26a9d59fe7dc

See more details on using hashes here.

File details

Details for the file ory_antigravity-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: ory_antigravity-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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

Hashes for ory_antigravity-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 734b2ed2054911d74db91a78c3362581ebeedf4caad0c1b4fb1a8e6aa8f3bf0a
MD5 4c2dee7840e6c37acb79665e19d94d43
BLAKE2b-256 f39a05ccdd861be27c426118a3b3c6d7dc459481a0445bd15347d2ad63850cc9

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

This release

0.14.0 This release

2 files

0.13.9

2 files

0.11.1

1 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