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

Built distribution (wheel)

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

Total release size: 15.8 kB

Release files / ory_antigravity-1.10.1.tar.gz

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

Download URL ory_antigravity-1.10.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eca1c88b5461e4c0409479a5300bb8f318314706d235d970bd51b1afa9c69b46
BLAKE2b-256 checksum
How to use checksums
d75558e1adcb968b57900de16b28040fa3a111866a604353366d45945766940d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.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.10.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