Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.agno.com/llms.txt

Use this file to discover all available pages before exploring further.

Run the Antigravity managed agent through the Gemini Interactions API. Antigravity is a general-purpose autonomous agent (Gemini 3.5 Flash) that plans, runs code, browses the web, and produces artifacts (PDFs, HTML, slides) inside a managed Linux sandbox. The environment parameter selects the sandbox:
ValueBehavior
"remote"Fresh remote Linux sandbox.
"env_<id>"Reuse a previously provisioned sandbox.
dictFull EnvironmentConfig (sources, network rules).
Unlike Deep Research, Antigravity runs in the foreground. The model still forces store=True so the interaction is retrievable.

Code

cookbook/90_models/google/gemini_interactions/antigravity.py
from agno.agent import Agent
from agno.models.google import GeminiInteractions

agent = Agent(
    model=GeminiInteractions(
        agent="antigravity-preview-05-2026",
        environment="remote",
    ),
    markdown=True,
)

if __name__ == "__main__":
    agent.print_response("What is the capital of France?")

Usage

1

Set up your virtual environment

uv venv --python 3.12
source .venv/bin/activate
2

Set your API key

export GOOGLE_API_KEY=xxx
3

Install dependencies

uv pip install -U "google-genai>=2.0" agno
4

Run Agent

python cookbook/90_models/google/gemini_interactions/antigravity.py