Skip to main content
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: GeminiInteractions in Agno 2.7.4 sends Antigravity requests in the foreground and forces store=True so each interaction is retrievable. Antigravity also runs in the foreground through the Google Gen AI SDK, which rejects background=True for this managed agent. Use streaming to receive progress while the connection stays open.

Code

antigravity.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent

Save the code above as antigravity.py, then run: