# Antigravity Features and Practical Usage
๐ One API call to spin up an agent that writes code, runs it, and browses the web. That is what the SDK and Managed Agents make real.
๐ Title and Feature URL
Title: SDK / Managed Agents
URL:
๐ Overview
The Antigravity SDK gives you programmatic access to the same agent harness that powers Google's products. Managed Agents, offered as a capability inside the Gemini API, let you spin up an agent in an isolated Linux environment with a single API callโwhere it reasons, uses tools, and executes code.
๐ง How It Works
The SDK and Managed Agents turn agents into embeddable building blocks:
- Isolated execution: each interaction creates a dedicated sandbox where code runs separately and safely.
- Stateful, persistent environments: an environment can be resumed in follow-up calls with all files and state intact, so multi-turn work continues without reinitializing.
- Custom agent definitions: you describe behavior in markdown files and can start fast from templates in the Google AI Studio Playground.
- The underlying model is Gemini 3.5 Flash, optimized for concurrent execution, and integrates with the Interactions API and AI Studio.
๐ Practical Usage
- Call Managed Agents through the Gemini API to launch an agent environment in a single call.
- Use the SDK to define custom agent behaviors and host them on the infrastructure of your choice.
- Build on the custom agent templates in the AI Studio Playground and extend them for your use case.
- Resume a prior environment to keep its files and working state across turns.
๐ฏ Use Cases
- Spin up a sandboxed agent in one call to build a deployment-automation agent.
- Embed backend workflows that involve code execution, file operations, and web browsing into internal tools.
- Use stateful environments to run multi-turn research or build tasks continuously.
- Host SDK-defined agents on your own infrastructure to match operational requirements.
โ ๏ธ Caveats
- Managed Agents is a Gemini API surface, so it requires an API key and a billing-enabled project.
- Because each interaction creates an environment, design with sandbox lifecycle and cost in mind.
- Since agents run code and browse the web, do not skip permission scoping and input validation.
#
Antigravity# #
Agents#