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). The integration returns explicit decisions: network, rate-limit, and server errors deny in enforce mode and allow in observe mode.

MCP tools

Antigravity marks a call to a tool from one of the agent's MCP servers with ToolCall.server_name. Such a call is checked against the MCP server and tool (McpServer:<server_name> and McpTool:<server_name>:<tool>) instead of as a native tool. Pass the same MCP server configs to ory_hooks to also send hashed fingerprints of each server's URL host or launched package (such as npx -y @playwright/mcp), which let Agent Security recognize the server under any name:

from google.antigravity.types import McpStreamableHttpServer

mcp_servers = [McpStreamableHttpServer(name="github", url="https://api.githubcopilot.com/mcp/")]
config = LocalAgentConfig(mcp_servers=mcp_servers, hooks=ory_hooks(mcp_servers=mcp_servers), ...)

Agent Security resolves the reported name to a catalog server, so it need not match the catalog spelling exactly. A call to a generic call_mcp_tool tool without server_name is parsed from its server_name / serverName / ServerName and tool_name / toolName / ToolName arguments, mirroring the TypeScript Antigravity adapter. Those argument names are unverified: Antigravity does not document them, and google-antigravity 0.1.22 has no such builtin. A call missing either name is checked as a native tool.

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

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.10.3
File Size Uploaded Provenance Actions
ory_antigravity-1.10.3.tar.gz 9.0 kB Without provenance Details for ory_antigravity-1.10.3.tar.gz

Built distribution (wheel)

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

Total release size: 15.8 kB

Release files / ory_antigravity-1.10.3.tar.gz

Download URL ory_antigravity-1.10.3.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a99be26ce32a53b9a6c0dafb63764e4f0c3e349f1ef66c57e3e1503be4f55ff4
BLAKE2b-256 checksum
How to use checksums
416345eee08c8929f429c1a399947f60695eee85eae4c4d5274353c068774d52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.10.3-py3-none-any.whl

Download URL ory_antigravity-1.10.3-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37315443a7c9d56c391420d0cf5e2f5d2b474ff2bdfd402593274159161f3852
BLAKE2b-256 checksum
How to use checksums
9950d5df08fdff32ba8a95fbdd50631ffd813bb5ba7a2064b5d7e325ce473a6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.10.3

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