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.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ory_antigravity-1.9.2.tar.gz | 9.0 kB | Without provenance | Details for ory_antigravity-1.9.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ory_antigravity-1.9.2-py3-none-any.whl | Python 3 | none | any | Details for ory_antigravity-1.9.2-py3-none-any.whl |
Total release size: 15.8 kB
Release files / ory_antigravity-1.9.2.tar.gz
| Download URL | ory_antigravity-1.9.2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f30c5b54967c8a6bffbb0cf520100c78689fa879111076b1a673d7d09a26390
|
|
BLAKE2b-256 checksum How to use checksums |
70b20cfa20b2c99f0796b06f8f513bd4dff6c31b7719c4a963530d32dfa1e558
|
| 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.9.2-py3-none-any.whl
| Download URL | ory_antigravity-1.9.2-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7ad9f223c187ff42413ffc3fd241ebc61bc3e49c56d873626cb5e5b37e94264
|
|
BLAKE2b-256 checksum How to use checksums |
7d6f6d99e86f39c30a405cd25cb9f3ab3a55ff17326ee1d113af84fb527e3409
|
| 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.9.2
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.