google-antigravity-sdk
Skill by google-antigravity
Guides developers to design, implement, and debug autonomous AI agents and multi-agent systems with the Google Antigravity Python SDK. Built for developers who create, configure, or orchestrate Google Antigravity agents.
Install google-antigravity-sdk
Built from the published package, never by AI.
git clone --depth 1 https://github.com/google-antigravity/antigravity-sdk-python /tmp/antigravity-sdk-python && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-sdk-python/skills/google-antigravity-sdk ~/.claude/skills/google-antigravity-sdkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/google-antigravity/antigravity-sdk-python /tmp/antigravity-sdk-python && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/antigravity-sdk-python/skills/google-antigravity-sdk ~/.gemini/antigravity-cli/skills/google-antigravity-sdkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install google-antigravity-sdk in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Google Antigravity SDK is a skill that helps an AI assistant work with the Google Antigravity (AGY) Python SDK. It covers building autonomous AI agents and multi-agent systems, from installing the google-antigravity package and setting up authentication to choosing an agent configuration. It points to reference files and examples on tools, MCP servers, subagents, workflows, hooks, safety policies, and observability.
Agents can use hosted Gemini models with an API key, Vertex-style authentication, or local models through LiteRT or OpenAI-compatible servers such as Ollama and LM Studio. The skill routes each request to the matching topic, so the assistant reads only the files it needs. It suits developers building or orchestrating Google Antigravity agents in Python projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Agent configurationCovers model selection, agent_behavior settings, and connection reliability options.
- MCP integrationConnects agents to Model Context Protocol servers over Stdio or SSE and sets tool permissions.
- SubagentsLets a main agent spawn and orchestrate subagents, with nested depth and allowed subagent settings.
- WorkflowsAuthors deterministic multi-agent workflows using @beta.workflows.define and run_workflow.
- Custom toolsGives agents capabilities built from Python functions and keeps state across tool execution.
- Safety policiesDefines execution order, predicates to restrict actions, and OS-level sandboxing for terminal commands.
- Hooks and error handlingIntercepts lifecycle events and adds error recovery to make agents more robust.
- ObservabilityCovers cost monitoring, token usage including thinking tokens, and custom audit logs.
- Structured outputProduces agent output as JSON matching a Pydantic schema for reliable integration.
- Budget limitsSets session limits on model or tool calls and token budgets for input, output, or total tokens.
What you need
- Python
- google-antigravity Python package
- Gemini API key from Google AI Studio for hosted models
- Google Cloud project and gcloud for Vertex standard mode
- LiteRT or Ollama or LM Studio for local models
Try asking
- Create a Google Antigravity agent that calls a custom Python tool.
- Set up a multi-agent workflow with subagents using Google Antigravity.
- Add an MCP server to my Google Antigravity agent over Stdio.
Good to know
- Hosted models need a Gemini API key unless local models are used instead.
- Local models depend on the hardware requirements described in the local models reference.
- Workflows are authored under the beta.workflows namespace.
- Very large web pages should be paired with view_file to inspect cached files.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/google-antigravity-sdk/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
examples/getting_started/agent_skills.md2 KB -
examples/getting_started/app_data_dir_override.md1 KB -
examples/getting_started/budget_limits.md3 KB -
examples/getting_started/cancellation.md2 KB
Show all 28 files
-
examples/getting_started/compaction.md1 KB -
examples/getting_started/custom_tool.md4 KB -
examples/getting_started/customizing_retries.md3 KB -
examples/getting_started/hello_world.md3 KB -
examples/getting_started/hooks.md4 KB -
examples/getting_started/local_models.md6 KB -
examples/getting_started/mcp_tools.md4 KB -
examples/getting_started/multimodal.md2 KB -
examples/getting_started/periodic_trigger.md3 KB -
examples/getting_started/persistence.md1 KB -
examples/getting_started/persona_config.md2 KB -
examples/getting_started/structured_output.md1 KB -
examples/getting_started/subagents.md3 KB -
examples/getting_started/web_tools.md2 KB -
examples/getting_started/workflows.md5 KB -
references/agent_configuration.md13 KB -
references/architecture.md3 KB -
references/built_in_tools.md4 KB -
references/error_handling.md3 KB -
references/local_models.md8 KB -
references/mcp_integration.md6 KB -
references/observability.md3 KB -
references/safety_policies.md8 KB
Alternatives to google-antigravity-sdk
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
google-antigravity-sdk: common questions
Can I use Google Antigravity agents without a cloud API key?
Yes. The source says local models through LiteRTAgentConfig or LocalOpenAIAgentConfig need no API key or cloud credentials.
Which models does the SDK use by default?
The SDK defaults to hosted Gemini models, accessed with an API key through LocalAgentConfig.
Can agents connect to MCP servers?
Yes. The source says agents can be extended with MCP servers over Stdio or SSE, and tool permissions can be configured.
How do I install google-antigravity-sdk?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is google-antigravity-sdk free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is google-antigravity-sdk safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to google-antigravity-sdk?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
