Google Antigravity SDK
A Python SDK for building stateful agents powered by Google Antigravity and Gemini.
- Source repo
- google-antigravity/antigravity-sdk-python
- Stars
- ★ 4k
- Last updated
- 14d ago
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 52/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specific
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- 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
- Source review
- 52/100 · Major gaps 1 safety controls not found
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.
- A Python developer building a Gemini assistant that needs to call a registered Python function such as get_weather(city).
- A console or UI team that wants token-by-token output and separate indicators for response.thoughts and response.tool_calls.
- An application developer who needs an agent to analyze a PDF, image, video, audio file, or document alongside written instructions.
- An engineering team with an existing MCP stdio server that wants to make its tools available through McpStdioServer.
- A developer who needs multi-turn state, step history, or direct consumption of streamed Step objects through Conversation and LocalConnectionStrategy.
- 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-antigravityDo 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, LocalAgentConfigasync 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?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
Why is cloning the repository not enough to run it?
What credentials are documented?
Can it write files or perform other write actions by default?
Can it use an existing MCP tool server?
Is Google Antigravity SDK free?
Is Google Antigravity SDK open source?
Is Google Antigravity SDK safe to use?
Is Google Antigravity SDK still maintained?
Who makes Google Antigravity SDK?
What is Google Antigravity SDK's official website?
Thanks — we use this to improve the page.