antigravity-sdk-python

A Python library for building AI agents that leverage the full power of Google Antigravity.

What is antigravity-sdk-python?

A Python library for building AI agents that leverage the full power of Google Antigravity.

Overview of antigravity-sdk-python

What it is

The Google Antigravity SDK is a Python library for building AI agents that leverage Google Antigravity and Gemini. It provides a secure, scalable, and stateful infrastructure layer that abstracts the agentic loop, allowing developers to focus on agent behavior rather than runtime management. The SDK is open source under the Apache-2.0 license.

Key features

  • Simple Agent class that manages lifecycle, tool wiring, hook registration, and policy defaults behind a single async context manager.
  • Streaming responses: iterate over ChatResponse with async for to receive text tokens in real-time.
  • Sugared thoughts and tool call streams: access internal model reasoning and tool call dispatches via dedicated async stream properties.
  • Multimodal ingestion: pass images, videos, audio, and documents as file attachments alongside text prompts.
  • Custom tools: register Python functions as tools that the agent can call.
  • Support for Gemini Enterprise Agent Platform (formerly Vertex AI) with two authentication modes: Express Mode (API key) and Standard Mode (project & location with ADC).

Use cases

Building AI agents that require stateful, scalable execution with integration to Google Antigravity and Gemini. Suitable for applications needing multimodal input processing, custom tool integration, and real-time streaming of agent responses. Can be used for codebase navigation, interactive loops, and enterprise deployments with Vertex AI.

Getting started

Install the SDK from PyPI: sh pip install google-antigravity Set your Gemini API key and run an example: sh export GEMINI_API_KEY='your_api_key_here' python ./examples/getting_started/hello_world.py Note: Cloning the repository alone is not sufficient; always install from PyPI to obtain the required compiled runtime binary.

License and pricing

The SDK is open source under the Apache-2.0 license. Pricing is not stated beyond being open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/google-antigravityantigravity-sdk-python.svg)](https://yunodb.com/tools/google-antigravityantigravity-sdk-python?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/google-antigravityantigravity-sdk-python?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/google-antigravityantigravity-sdk-python.svg" alt="Featured on YunoDB" height="20"></a>