Google Antigravity SDK

A Python SDK for building stateful agents powered by Google Antigravity and Gemini.

Stars
★ 4k
Last updated
14d ago
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Library / SDKFramework
Works with
Platform-specific
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Google Antigravity platformplatform-specific compiled runtime binaryGemini API key or Application Default CredentialsShell / CLINetwork accessLocal filesystemMCP Server
Typical use
A Python developer building a Gemini assistant that needs to call a registered Python function such as get_weather(city).
Not a fit if
  • Teams unwilling to depend on Google Antigravity and Gemini
  • Users who clone the repo instead of installing the PyPI wheel
Website
antigravity.google ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-10-28+10.7 ★/day over 7 days

What does this agent do, and when should you use it?

Google Antigravity SDK is a Python SDK for agents powered by Antigravity and Gemini. Its high-level Agent manages binary discovery, tool wiring, hook registration, and policy defaults through an async context manager, and starts in read-only mode. For direct session control, Conversation works with ConnectionStrategy and ToolRunner while exposing history, turn counts, and the last response. ChatResponse supports asynchronous text streaming as well as separate thoughts and typed ToolCall streams. The SDK accepts text plus image, video, audio, and document content, and supports Python tools, MCP servers, hooks, policies, and scheduled triggers.

An application configures LocalAgentConfig with system instructions, tools, MCP servers, policies, or triggers, then calls await agent.chat(...) inside async with Agent(config). chat accepts text or a list containing content objects such as Image and from_file(...), returning a ChatResponse; await response.text() collects text, while async for token in response streams it. For lower-level control, Conversation.create(strategy) opens a stateful session, send(...) submits a message, and receive_steps() yields Step objects while history, turn_count, and last_response accumulate. Python functions can be registered through tools, and McpStdioServer exposes external MCP tools; CapabilitiesConfig() enables all tools including writes, while deny, allow, ask_user, and enforce can govern tool dispatch.

  1. A Python developer building a Gemini assistant that needs to call a registered Python function such as get_weather(city).
  2. A console or UI team that wants token-by-token output and separate indicators for response.thoughts and response.tool_calls.
  3. An application developer who needs an agent to analyze a PDF, image, video, audio file, or document alongside written instructions.
  4. An engineering team with an existing MCP stdio server that wants to make its tools available through McpStdioServer.
  5. A developer who needs multi-turn state, step history, or direct consumption of streamed Step objects through Conversation and LocalConnectionStrategy.
  6. A Google Cloud team using Gemini Enterprise Agent Platform that can configure vertex=True, project, and location with ADC authentication.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install google-antigravity
Environment variables
GEMINI_API_KEY

How do you install or deploy this agent?

Install from PyPI:

pip install google-antigravity

Do not rely on a repository clone alone: the required compiled runtime binary is included in the platform-specific wheels published to PyPI. For Gemini API usage, set GEMINI_API_KEY="your_api_key_here". For Gemini Enterprise Agent Platform (formerly Vertex AI), set vertex=True, project, and location in LocalAgentConfig, or export GOOGLE_GENAI_USE_VERTEXAI=True, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION, then run gcloud auth application-default login.

How do you use this agent?

Minimal invocation:

from google.antigravity import Agent, LocalAgentConfig

async with Agent(LocalAgentConfig()) as agent:

response = await agent.chat("Hello!")
print(await response.text())

After setting GEMINI_API_KEY, the included quickstart can be run with: python ./examples/getting_started/hello_world.py. Explicit LocalAgentConfig arguments take precedence over environment variables for the Enterprise configuration.

What are this agent's strengths and limitations?

Pros
  • Agent packages binary discovery, tool wiring, hook registration, and policy defaults behind one async context manager.
  • Conversation exposes history, turn_count, last_response, send, and receive_steps for stateful, step-level integrations.
  • The chat interface supports mixed text and image, video, audio, or document content, including the from_file(...) shortcut.
  • It supports both in-process Python tools and external MCP servers, with declarative policies for controlling tool calls.
Limitations
  • Its documented core is tied to Google Antigravity and Gemini; the supplied material does not show an alternative model-provider path.
  • A platform-specific PyPI wheel is required for the compiled runtime, so cloning the repository alone is insufficient.
  • Agent is read-only by default, but CapabilitiesConfig() enables all tools including writes; adopters need to define appropriate policies and permissions.
  • The Enterprise path requires GCP project and location configuration plus Application Default Credentials or the documented environment variables.

How does this agent compare with similar options?

Agent is the higher-level option: it manages lifecycle concerns in an async context and exposes chat directly. Conversation with ConnectionStrategy and ToolRunner is for implementations that need connection-lifecycle control, accumulated step history, or streamed Step handling.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Google Antigravity SDK This agent 52 · Major gaps Library / SDKFree + model costs ★ 4k 14d ago Python —
Gemini CLI 73 · Some gaps CLIFree + model costs ★ 109k today TypeScript —
Qwen Code 73 · Some gaps CLIFree + model costs ★ 29k today TypeScript OpenAI API · Claude API
AgenticX Multi-Agent Platform 55 · Major gaps CLIFree + model costs ★ 1k 1d ago Python Claude Code · OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
52/ 100 5-point scale 2.6 / 5
Trust 13/29
Reliability 6/14
Adaptability 10/18
Convention 12/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust13 / 29 · 2.2/5

The README says the default is read-only, and agent.py requires a safety policy or decision hook when write tools or MCP servers are enabled, showing permission boundaries and some call-approval control. The README also describes API key, ADC, local-model, MCP, and file-input paths, but does not explain secret storage, sensitive-input handling, or rollback for writes, so those criteria are reduced. The source header and LICENSE identify Apache-2.0 and Google LLC copyright; publisher identity remains unverified as specified.

Reliability6 / 14 · 2.1/5

pyproject.toml declares Python support and core dependency ranges, and the README warns that runtime depends on a compiled binary in platform wheels. However, there is no dependency lock or compatibility matrix, and the README's streaming description says async iteration while an example comment says the call returns instantly and does not block, creating a wording inconsistency. agent.py raises a specific ValueError for missing policy configuration and FileNotFoundError for missing workflow scripts; evidence for recovery and other failure cases is limited.

Adaptability10 / 18 · 2.8/5

The documentation targets Python developers and covers chat, streaming, multimodal inputs, custom tools, MCP, policies, triggers, hosted models, and local models. The read-only default, policy requirement for writes and MCP, and two Vertex authentication modes establish some boundaries; trigger scope and event constraints are not well explained beyond a timer example. Installation notes distinguish PyPI wheels from source-clone limitations and give local-model hardware guidance.

Convention12 / 18 · 3.3/5

The README is organized around concepts, features, architecture, and component docs, with installation instructions, quickstarts, examples, and local-model limitations. Package and import names, version, and license are visible, and the full LICENSE is present, earning full marks for licensing. There is no changelog and little version history; a security reporting channel and response window are specified, but ongoing maintenance responsibility is only partly clear.

Effectiveness7 / 13 · 2.7/5

The SDK presents Agent, Conversation, and adapter layers to simplify agent lifecycle management, with tools, MCP, hooks, triggers, and streaming output. Examples support practical use. Its value is supported mainly by documentation claims; API credentials or local model resources are needed, and the compiled runtime adds a deployment requirement. Costs and runtime overhead are not quantified, so these criteria do not receive top scores.

Verifiability4 / 8 · 2.5/5

Major README usage claims can be compared with package configuration, dependencies, and version in pyproject.toml, and with the visible policy checks and path validation in agent.py. The source sample is incomplete and provides no test results or full implementation, limiting corroboration. The README distinguishes instructions, recommendations, and capability claims sufficiently to separate visible facts from unverified claims in this static review.

Risks and how to mitigate them
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Configure policies or a decision hook before enabling write tools or MCP, and verify the permissions and approval behavior of the specific tools.
  • API keys, ADC, MCP servers, and input files introduce credential or data flows; the supplied material does not describe secret storage, data retention, or rollback for writes.
  • The README says runtime requires the compiled binary in a platform-specific PyPI wheel; cloning the repository alone is insufficient. This review did not execute or verify the package.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 75ba22bd00af
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/antigravity-sdk-python.svg)](https://followagents.com/en/agents/antigravity-sdk-python)
<a href="https://followagents.com/en/agents/antigravity-sdk-python"><img src="https://followagents.com/badge/antigravity-sdk-python.svg" alt="FARS review"></a>

FAQ

Why is cloning the repository not enough to run it?
The SDK depends on a compiled runtime binary distributed in the platform-specific PyPI wheels, so installation with pip install google-antigravity is required.
What credentials are documented?
The standard examples use GEMINI_API_KEY. Gemini Enterprise Agent Platform uses Application Default Credentials by default, with local authentication shown through gcloud auth application-default login.
Can it write files or perform other write actions by default?
No. Agent starts in read-only mode. CapabilitiesConfig() enables all tools, including writes, and policies such as deny, allow, and ask_user can restrict those operations.
Can it use an existing MCP tool server?
Yes. Add an McpStdioServer to LocalAgentConfig.mcp_servers to expose that server's tools to the agent.
Is Google Antigravity SDK free?
The software is free, but Google Antigravity SDK calls an AI model, and you pay that model provider for usage (or run a local model).
Is Google Antigravity SDK open source?
Yes. The source code is on GitHub (google-antigravity/antigravity-sdk-python) under the Apache-2.0 licence.
Is Google Antigravity SDK safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored Google Antigravity SDK 13/29 on trust and safety. The review did not find these safety controls in the source: rollback or recovery path. Before giving it real accounts or data: Back up first, or work on a git branch or snapshot, so its changes can be undone.
Is Google Antigravity SDK still maintained?
Yes. The latest commit on GitHub is from 2026-10-28, within the last 30 days.
Who makes Google Antigravity SDK?
Google Antigravity SDK is published on GitHub by the account google-antigravity. FollowAgents has not verified which person or company is behind that account.
What is Google Antigravity SDK's official website?
The project's GitHub repository lists https://antigravity.google/product/antigravity-sdk as its website. That link is set by the repository owner; the source code itself is on GitHub (google-antigravity/antigravity-sdk-python).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.