Google Antigravity Integration Guide

Technology: antigravity · Category: tooling · Last reviewed: 2026-10-20

Source: https://tech-stack.codeamanilabs.org/guide/antigravity

Insight:

Antigravity is an agent-first platform, not an editor with AI bolted on: you dispatch agents, then verify them through Artifacts (plans, diffs, screenshots, browser recordings) instead of reading logs. One harness now ships as four surfaces: the Antigravity App (desktop command center, v2.24), the agy CLI (v1.4, the right fit for WSL and CI), editor extensions, and a Python SDK. Everything is configured with plain files under .agents/ (rules, skills, custom agents, mcp_config.json, hooks.json), and it reads AGENTS.md, so this repo's mirrored conventions apply with no extra setup. Two dates matter this month: legacy workflows stopped working on 2026-10-19 (migrate them to skills), and Claude 4.6 and GPT-OSS leave on 2026-11-02. After that, Claude (now Sonnet/Opus 5.5) needs a paid Google AI Pro, Ultra, or Enterprise plan.

 █████╗ ███╗   ██╗████████╗██╗ ██████╗ ██████╗  █████╗ ██╗   ██╗██╗████████╗██╗   ██╗
██╔══██╗████╗  ██║╚══██╔══╝██║██╔════╝ ██╔══██╗██╔══██╗██║   ██║██║╚══██╔══╝╚██╗ ██╔╝
███████║██╔██╗ ██║   ██║   ██║██║  ███╗██████╔╝███████║██║   ██║██║   ██║    ╚████╔╝
██╔══██║██║╚██╗██║   ██║   ██║██║   ██║██╔══██╗██╔══██║╚██╗ ██╔╝██║   ██║     ╚██╔╝
██║  ██║██║ ╚████║   ██║   ██║╚██████╔╝██║  ██║██║  ██║ ╚████╔╝ ██║   ██║      ██║
╚═╝  ╚═╝╚═╝  ╚═══╝   ╚═╝   ╚═╝ ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝  ╚═══╝  ╚═╝   ╚═╝      ╚═╝

Google Antigravity Integration Guide

Focus: running Antigravity on a Linux / WSL Ubuntu dev box. The Antigravity App is the agent command center and the agy CLI drives agents from a terminal or CI. Covers install and auth, models and plans, the Agent Manager and subagents, custom agents, rules, skills (and the workflow sunset), MCP configuration, the browser subagent, permissions, hooks, sidecars, headless CI, and the Python SDK. Grounded in the antigravity.google/docs Markdown pages and the changelog; reviewed 2026-10-20.

Overview

Google Antigravity is Google's agentic development platform. Instead of an editor where you type and an AI suggests, you give an agent a goal; it plans and executes across the editor, terminal, and Chrome, then reports through Artifacts: implementation plans, code diffs, architecture diagrams, images, and browser recordings. It launched in public preview in November 2025. At I/O 2026 (2026-05-19) it pivoted to multi-agent orchestration with a standalone desktop app, the agy CLI, and the Python SDK, plus an enterprise offering through Gemini Enterprise.

One agent harness, four surfaces. Sign-in is shared across all local surfaces.

Surface Current version Reach for it when
Antigravity App (desktop; launched as "Antigravity 2.0") v2.24.0 (2026-10-15) You want the full experience: Projects, parallel agents, Artifact review, automations, Remote Control
Antigravity CLI (agy) v1.4.0 (2026-10-16) You work in a terminal, over SSH, inside WSL, or need headless CI runs
IDE extensions VS Code v1.8.0, Visual Studio v1.0.261012.0; JetBrains, Zed, Xcode You want the agent inside your existing editor
Antigravity IDE (standalone editor) v2.5.5 (2026-08-13) Legacy editor view with Tab completions and the in-editor Agent Manager (Cmd/Ctrl+E). No release since August, and no Gemini 4 Argon
Antigravity SDK google-antigravity 0.1.22 (2026-10-12) You build your own agents in Python

Agent Manager, then and now. In the 2025 IDE, the Agent Manager was the surface for running agents alongside the editor. The Antigravity App replaced it as a standalone app built around Projects. In the CLI, /agents opens a panel the docs still call the Agent Manager panel: it lists custom agents and the live state of background subagents.

flowchart TB
  G["Your goal"] --> H["Antigravity agent harness"]
  subgraph SURF["Surfaces (shared sign-in)"]
    A["Antigravity App<br/>Projects · worktrees · automations"]
    C["agy CLI<br/>TUI · headless · remote-control"]
    E["IDE extensions<br/>VS Code · JetBrains · Zed · Xcode · VS"]
    S["SDK<br/>google-antigravity (py)"]
  end
  H --> A & C & E & S
  H --> M["Models<br/>Gemini 4 Argon · 3.8 Flash<br/>Claude 5.5 · (4.6/GPT-OSS until Nov 2)"]
  CFG[".agents/<br/>AGENTS.md · rules · skills<br/>agents · mcp_config.json · hooks.json"] --> H
  H --> SUB["Subagents<br/>research · browser · self · custom"]
  SUB --> ART["Artifacts<br/>plans · diffs · screenshots · WebM"]
  H --> ENV["Editor · Terminal (sandbox) · Chrome"]

See also: cursor/ and vscode/ for the other editors this repo covers, and google-ai-studio/ / google-cloud/ for the Gemini API key and Vertex AI side used by GEMINI_API_KEY and ADC auth.

Official Documentation

Resource URL
Overview (choose a surface) https://antigravity.google/docs/overview
Quickstart (all surfaces) https://antigravity.google/docs/getting-started
Authenticate https://antigravity.google/docs/install
Changelog (App, CLI, extensions, SDK, IDE) https://antigravity.google/docs/changelog
Models https://antigravity.google/docs/models
Plans and quotas https://antigravity.google/docs/plans
Pricing https://antigravity.google/pricing
MCP https://antigravity.google/docs/mcp
Rules https://antigravity.google/docs/rules
Skills https://antigravity.google/docs/skills
Workflows → skills migration https://antigravity.google/docs/migration/workflows-to-skills
Subagents and custom agents https://antigravity.google/docs/subagents
Browser subagent (/browser) https://antigravity.google/docs/commands/browser
Permissions / sandbox / hooks https://antigravity.google/docs/permissions · /docs/sandbox · /docs/hooks
Sidecars and /schedule https://antigravity.google/docs/sidecars · /docs/commands/schedule
CLI headless mode https://antigravity.google/docs/cli/headless
CLI commands and settings https://antigravity.google/docs/cli/reference
Remote Control https://antigravity.google/docs/remote-control
Python SDK https://antigravity.google/docs/sdk/overview
Enterprise (Gemini Enterprise) https://antigravity.google/docs/enterprise

Every docs page is also served as Markdown: append .md to the path (for example https://antigravity.google/docs/mcp.md). The full page list is in https://antigravity.google/sitemap-0.xml.


Install and authenticate (Linux / WSL)

The agy CLI (primary on a WSL box)

# Inside WSL Ubuntu (or any Linux / macOS shell); installs ~/.local/bin/agy
curl -fsSL https://antigravity.google/cli/install.sh | bash
export PATH="$HOME/.local/bin:$PATH"   # if the installer didn't add it
agy --version
agy                                     # first launch: workspace trust prompt + sign-in

Windows outside WSL: irm https://antigravity.google/cli/install.ps1 | iex (PowerShell) or the install.cmd one-liner on the download page. Installer flags: --skip-aliases, --skip-path.

Sign-in options:

Where How
Local machine Browser OAuth. The token is stored in the OS keyring (Linux Secret Service/dbus, Apple Keychain, Windows Credential Manager) and reused silently.
SSH / headless WSL without a browser The CLI detects SSH, prints an authorization URL, and you paste the returned code back.
Own Gemini API key (CI, no account session) Set "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json and export GEMINI_API_KEY. Setting the key alone does nothing. The CLI does not read .env files or GOOGLE_API_KEY.
Google Cloud / Gemini Enterprise gcloud auth application-default login --project <id>, then set AGY_ADC_AUTH=true (optional GOOGLE_CLOUD_QUOTA_PROJECT, GOOGLE_CLOUD_LOCATION). Claude Sonnet/Opus 5.5 show up only if the project has access.

The only secret involved is the Gemini API key. Store it in Hazina, not a dotfile:

GEMINI_API_KEY=AIza...

Non-secret settings:

Variable / setting Purpose
modelProvider: "gemini" (CLI settings.json) Use GEMINI_API_KEY instead of an account session
GOOGLE_GEMINI_BASE_URL Point the CLI at a different Gemini-compatible endpoint
AGY_ADC_AUTH = true Sign in with Application Default Credentials (CLI and App)
GOOGLE_CLOUD_QUOTA_PROJECT, GOOGLE_CLOUD_LOCATION ADC project and location
AGY_CLI_OSC7501 = on / off Terminal tab status reporting (CLI 1.4.0+)

The Antigravity App (desktop)

Download from https://antigravity.google/download: macOS 12+ (Apple Silicon or Intel), Windows 10 64-bit+ (x64 or ARM64), Linux x64 / ARM64 .tar.gz (needs glibc >= 2.28 and glibcxx >= 3.4.25, for example Ubuntu 20+, Debian 10+, Fedora 36+, RHEL 8+). On WSL it needs WSLg. Most WSL work is better served by the CLI.

Changed since the last review: the download page no longer documents an apt repository. Google's old apt repo (us-central1-apt.pkg.dev/projects/antigravity-auto-updater-dev/, package antigravity) still answers but serves the 2025 IDE line (1.23.x), not the current App or IDE. Don't use it.

Package trap. pip install antigravity installs the XKCD joke module (PyPI antigravity 0.1). Google's SDK is google-antigravity.

Availability: personal Google accounts, age 18+, in listed countries. The United States and Kenya are both listed (/docs/faq). Workspace accounts sometimes fail where @gmail.com works.


Models and plans

Models (/docs/models, 2026-10-20)

Model Free & AI Plus AI Pro AI Ultra Enterprise
Gemini 4 Argon (App, CLI, extensions; not the standalone IDE) ❌ ✅ (paid, not trial) ✅ ✅
Gemini 3.8 Flash ✅ ✅ ✅ ✅
Gemini 3.7 Flash, 3.6 Flash, 3.1 Pro ❌ ❌ ❌ ✅
Claude Sonnet 5.5 / Opus 5.5 (thinking) ❌ ✅ (paid, not trial) ✅ ✅
Claude Sonnet 4.6 / Opus 4.6 (thinking) ✅ ✅ ❌ ❌
GPT-OSS-120b ✅ ✅ ✅ ❌

Plans and quota (/pricing, /docs/plans, plans blog 2026-05-19)

Plan Price What you get
Individual $0 Weekly quota and rate limit, unlimited Tab completions, core features (scheduled tasks, CLI)
Google AI Pro $20/mo Quota that refreshes every 5 hours up to a weekly cap; Gemini 4 Argon and Claude 5.5 on paid (non-trial) subscriptions
Google AI Ultra $100/mo (5x Pro) or $200/mo (20x Pro) The highest 5-hourly and weekly limits
Gemini Enterprise (Google Cloud) Standard/Plus from $30/seat/mo, or pay-as-you-go ($0 seat fee, consumption pricing) Google Cloud terms, spend caps, admin controls, BYOID/WIF, VPC-SC

The Antigravity App


Customizing the agent: everything lives under .agents/

Antigravity uses an .agents/ folder in the workspace (legacy .agent/ still loads) and ~/.gemini/... for global config. Commit .agents/ so the whole team gets the same agent.

Customization Workspace Global
Always-on instructions AGENTS.md or GEMINI.md in any directory (no frontmatter) ~/.gemini/AGENTS.md, ~/.gemini/GEMINI.md
Rules .agents/rules/*.md (frontmatter required) ~/.gemini/config/rules/*.md (CLI also ~/.gemini/antigravity-cli/rules/)
Skills .agents/skills/<name>/SKILL.md App/IDE ~/.gemini/config/skills/; CLI ~/.gemini/antigravity-cli/skills/
Custom agents .agents/agents/<name>.md ~/.gemini/config/agents/
MCP servers .agents/mcp_config.json ~/.gemini/config/mcp_config.json
Hooks .agents/hooks.json ~/.gemini/config/hooks.json
Sidecars none ~/.gemini/config/sidecars/<id>/sidecar.json

Rules

Rules are cumulative: global, workspace, and directory rules are all combined, and the more specific directory rule wins a conflict. When the agent touches a file, Antigravity walks up from that file's folder to the workspace root and loads AGENTS.md, GEMINI.md, .agents/AGENTS.md, and .agents/rules/*.md at each level.

AGENTS.md and GEMINI.md take no frontmatter and are always on. Every file in .agents/rules/ must start with frontmatter:

---
trigger: model_decision          # always_on | model_decision | glob | manual
description: "Apply when writing or reviewing SQL migrations."
---

# Migration rules
1. Expand-and-contract; never drop or rename a column in one deploy.
2. Create indexes on existing tables with CONCURRENTLY.

Example: examples/rules-codeamani.md.

Skills, and the end of workflows

Skills follow the open Agent Skills standard (agentskills.io): a folder with a SKILL.md (description required, name optional and defaulting to the folder name) plus optional scripts/, examples/, and resources/. The agent sees only names and descriptions until a skill is relevant. Every skill is also a slash command (/deploy-staging).

Workflows are gone. Legacy workflows (.agents/workflows/*.md, ~/.gemini/config/workflows/, 12,000-character limit) stopped working on 2026-10-19. Google says a new, more dynamic workflow system is coming. Until then, run /migrate-workflows in the App: it converts each workflow to .agents/skills/<name>/SKILL.md and renames the original to .md.bak. Where a skill and a workflow share a name, the skill wins. The SDK already has a beta beta.workflows module (0.1.22), which is separate from the App feature.

Example: examples/skills/pre-push-gate/SKILL.md. The CLI can also install skill bundles as plugins: agy plugin install <name|github-url|./path>, with agy plugin validate --strict --json for CI. Gemini CLI users can run agy plugin import gemini.

Custom agents and subagents

A parent agent calls invoke_subagent to start a subagent with its own clean context. The workspace can be the parent's (inherit), an isolated Git worktree (branch), or shared storage (share). Subagents inherit the parent's permission scopes and sandbox, approval requests bubble up to you, and nesting stops at 10 levels.

Example: examples/custom-agent-security-reviewer.md.

MCP servers

All surfaces read the same mcp_config.json with a single mcpServers object. The App manages it from Settings → Customizations → Installed MCP Servers (with an MCP Store), the CLI from /mcp, and the IDE from the agent panel's … → MCP Servers → View raw config. The SDK picks up .agents/mcp_config.json automatically.

{
  "mcpServers": {
    "codeamani-tech-stack": { "serverUrl": "https://tech-stack.codeamanilabs.org/api/mcp" },
    "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@4.4.4"] },
    "neon": { "serverUrl": "https://mcp.neon.tech/mcp", "disabledTools": ["delete_project"] },
    "gcp-service": {
      "serverUrl": "https://example.googleapis.com/mcp/",
      "authProviderType": "google_credentials",
      "disabled": true
    }
  }
}
Key Meaning
command, args, env, cwd stdio server
serverUrl Remote Streamable HTTP or SSE server. url and httpUrl are not supported, which is the most common copy-paste error from other tools' configs
headers Custom HTTP headers (API keys, bearer tokens)
authProviderType: "google_credentials" Use Google ADC (gcloud auth application-default login)
oauth: { clientId, clientSecret } Only for servers without dynamic client registration. Redirect URI: https://antigravity.google/oauth-callback
disabled, disabledTools Turn a server off, or hide specific tools from the model

OAuth servers that support DCR need nothing beyond serverUrl: click Authenticate in Settings → Customizations. Tokens are stored in ~/.gemini/antigravity/mcp_oauth_tokens.json. Unconfigured MCP tools run in Ask mode. Allow them with mcp(server/tool), mcp(server/*), or mcp(*).

Full example: examples/mcp_config.json.

The browser subagent

/browser <task> hands a web task to the built-in browser subagent. It drives real Google Chrome through the Chrome DevTools MCP server, which Antigravity starts for you. It can navigate, click, fill forms, read the console and network, run Lighthouse and performance traces, and emulate devices and throttled networks. Every session is recorded as a WebM artifact.

/browser Load http://localhost:3000 with a Slow 3G profile and a 375px viewport, then screenshot the hero once it finishes loading

Permissions, sandbox, hooks

Every sensitive action is a resource: read_file(path), write_file(path), read_url(domain), execute_url(domain), command(prefix) or command(regex:...), and mcp(server/tool). Deny beats Ask beats Allow. In the CLI the lists live in ~/.gemini/antigravity-cli/settings.json:

{
  "toolPermission": "request-review",
  "enableTerminalSandbox": true,
  "permissions": {
    "allow": ["command(git)", "command(regex:npm run (build|lint|test))", "write_file(src/)"],
    "deny": ["command(rm -rf)", "command(sudo)", "write_file(.git/)", "write_file(/home/dev/.ssh)"],
    "ask": ["command(git push)", "mcp(neon/*)"]
  }
}

Command substitution ($(...), backticks), brace expansion, and similar constructs turn off prefix matching. Those commands must match a rule exactly or they fall back to Ask. Hooks (hooks.json) run scripts on SessionStart, PreToolUse, PostToolUse (matched by tool name, such as run_command), PreInvocation, PostInvocation, and Stop. A PreToolUse hook can return a decision such as ask with a reason.

Sidecars and scheduled work

Correction: agentapi is a CLI that Antigravity puts on the sidecar's PATH, not a second builtin. Only schedule is a builtin.

Example: examples/sidecar-nightly-audit/.


The agy CLI

Interactive

agy                         # TUI in the current directory
agy --mode=accept-edits     # start in accept-edits (or --mode auto)
agy --remote-control        # this session is also reachable from the Remote Control dashboard

Headless / CI

agy -p "In one sentence, what is a git rebase?"                       # answer on stdout; everything else on stderr
agy -p "Summarize the diff" --output-format json | jq -r '.response'  # one JSON envelope
agy -p "Review the change" --output-format stream-json                # NDJSON events
agy -p "Extract the version" --output-format json \
  --json-schema '{"type":"object","properties":{"major":{"type":"integer"}},"required":["major"]}' \
  | jq '.structured_output'
agy -p "Follow up" --continue                                         # or --conversation <id>
agy -p "..." --model gemini-3.8-flash-medium --effort high --agent security-reviewer --print-timeout 10m

Full CI script: examples/ci-review.sh.


Python SDK: google-antigravity

pip install google-antigravity==0.1.22      # Python >= 3.10; uv add / poetry add also work
import asyncio
from google.antigravity import Agent, LocalAgentConfig

async def main() -> None:
    config = LocalAgentConfig(system_instructions="You are a concise senior engineer.")
    async with Agent(config) as agent:
        response = await agent.chat("What files are in the current directory?")
        print(await response.text())

asyncio.run(main())

Example (type-checked with mypy --strict): examples/sdk_agent_with_mcp.py.


codeAmani notes

Official docs: