AI agents · OpenClaw · self-hosting · automation

Quick Answer

What Is Antigravity SDK? Embed Google's Agent Harness (May 2026)

Published:

What Is Antigravity SDK? Embed Google’s Agent Harness (May 2026)

The Antigravity SDK is the programmatic version of Antigravity — same planning, tool use, subagents, memory, and manager-view orchestration as the desktop app, available as a library you can drop into your own product. Launched in preview at Google I/O 2026 on May 19, 2026.

Last verified: May 21, 2026

Quick facts

PropertyValue
ReleasedMay 19, 2026 (preview at Google I/O)
VendorGoogle
LanguagesPython, TypeScript (Node)
ModelsOptimized for Gemini 3.5 Flash and Gemini 3.1 Pro
LicenseClosed source, free to use commercially
PricingFree SDK; pay-per-token Gemini API calls
StatusPreview — APIs may change before GA

What it actually is

The Antigravity SDK is the agent harness as a library. Same harness that powers:

  • Antigravity 2.0 (desktop app)
  • Antigravity CLI (terminal agent)
  • AI Studio (Google’s playground)
  • Managed Agents (Google-hosted agents in the Gemini API)

If you embed the SDK in your own product, you get the same agent runtime that powers Google’s own first-party products.

Why this exists

Google’s bet is that the agent runtime is the new platform. Before 2026, you’d glue together LangChain, your own tool registry, a planner you wrote, a memory layer, and a streaming UI. Each piece is fine; the integration is fragile.

The Antigravity SDK collapses that stack into a single library:

Old stackAntigravity SDK
LangChain / LangGraphBuilt in (planning + state)
Your tool registryBuilt in (tools + MCP)
Your memory layerBuilt in (session + persistent)
Streaming UI plumbingBuilt in (content blocks)
Checkpoint / resume logicBuilt in
Multi-agent orchestrationBuilt in (manager view)

Code shape

Python

from antigravity import Agent, Tool

agent = Agent(
    model="gemini-3.5-flash",
    instructions="You are a helpful research assistant.",
    tools=[Tool.from_mcp("github"), Tool.from_function(my_search_fn)],
)

result = await agent.run("Find issues in repo X labeled 'bug' from this week and summarize.")
print(result.output)

TypeScript

import { Agent, fromMCP, fromFunction } from "@google/antigravity";

const agent = new Agent({
  model: "gemini-3.5-flash",
  instructions: "You are a helpful research assistant.",
  tools: [fromMCP("github"), fromFunction(mySearchFn)],
});

const result = await agent.run("Find issues in repo X labeled 'bug' from this week and summarize.");
console.log(result.output);

Antigravity SDK vs alternatives

Antigravity SDKClaude Agent SDKOpenAI Agents SDKLangGraph
VendorGoogleAnthropicOpenAILangChain (OSS)
Open sourceNoNoYesYes
Default modelGemini 3.5 FlashClaude Opus 4.7GPT-5.5Bring your own
Multi-agentYes (manager view)Yes (sub-agents)Yes (handoffs)Yes (graph)
Built-in MCPYesYesYesPlugin
Built-in memoryYesYesYesManual
CheckpointsYesYesYesYes (DeltaChannel)
Streaming UI primitivesYes (content blocks)YesYesYes
LanguagesPython, TSPython, TSPython, TSPython (JS partial)
Tied to vendor modelStrongStrongStrongNone
Same harness as vendor productsYesYesYesn/a

The defining difference: Antigravity SDK gives you Google’s manager-view multi-agent model out of the box — agents that dispatch to subagents, run in parallel, and report to a coordinator.

When to use it

Use Antigravity SDK when…

  • You’re building an agent-powered feature in your own product
  • Your stack is Python or TypeScript
  • You want a single library instead of stitching together LangChain + a memory store + a tool registry
  • You’re already using Gemini models and want the harness optimized for them
  • You need multi-agent orchestration with parallel subagents
  • You want self-hosted deployment with full control over the runtime

Use Managed Agents (Gemini API) instead when…

  • You don’t want to manage agent runtime infrastructure
  • Your workload is bursty or low-volume — pay-per-call wins
  • You can expose your tools via MCP or simple HTTP — no need for in-process tools

Use Antigravity CLI / Antigravity 2.0 instead when…

  • The end user is you, a developer — not your product’s user
  • You want a GUI or TUI, not a library

What’s in preview

The SDK is preview as of May 19, 2026. That means:

  • APIs may change before GA
  • Some advanced harness features are not yet exposed (e.g., custom checkpoint backends)
  • Production SLAs aren’t promised yet
  • Pricing model for the harness itself (separate from API token costs) hasn’t been announced — currently free during preview

Google said GA is targeted for “later in 2026” — read that as Q3/Q4.

Pricing during preview

ComponentCost
SDK libraryFree (preview)
Model calls (Gemini 3.5 Flash)$1.50 / 1M input, $9 / 1M output
Model calls (Gemini 3.1 Pro)Standard Gemini API rates
MCP servers (your own)Whatever you pay to run them
Storage / state backend (your own)Whatever you pay for Postgres / Redis

If you’re already on AI Pro or AI Ultra and developing personally, your subscription quotas count. For production workloads, expect to bill through a GCP project with Gemini API enabled.

Limits and caveats

  • Preview means breaking changes are possible — pin versions in production
  • Closed source — you can’t fork it. Compare with OpenAI’s Codex CLI (open) and LangGraph (MIT)
  • Tight coupling to Gemini — using Antigravity SDK with non-Google models works but isn’t optimized
  • Documentation is still thin — for May 2026, you’ll find more examples on the Antigravity GitHub repo than on the official docs

TL;DR

The Antigravity SDK is the agent harness behind every Google agent product, exposed as a Python/TypeScript library. If you’re building agent-powered features and want Google’s manager-view multi-agent model as a single dependency — instead of gluing together LangGraph + a memory store + a tool registry — the SDK is the option. Preview as of May 19, 2026; GA later this year. Free during preview; pay-per-token for the underlying Gemini calls.