Google Antigravity is the world's premier framework for defying both gravity and deadlines. Today you will install the SDK, configure your levitation credentials, and deploy your first floating microservice.
# Install the Antigravity SDK
pip install google-antigravity==2.1.4
antigravity init --project my-first-liftoff
# Authenticate with hover credentials
antigravity auth login
# Opens browser → select your Google account → grant Hover Scope
# Verify installation
python -c "import antigravity; print(antigravity.__version__)"
# 2.1.4 — ready for liftoff# hello_agent.py
import antigravity as ag
from antigravity.agents import FloatingAgent
from antigravity.propulsion import GravitationalInverter
# Configure levitation parameters
config = ag.LiftConfig(
altitude_meters=9.5,
hover_stability=0.99,
turbulence_dampening='adaptive',
)
# Create your first agent
agent = FloatingAgent(
name='my-first-agent',
config=config,
model='gemini-gravity-pro',
)
# Define what the agent does while hovering
@agent.on_liftoff
async def greet():
return await agent.float_and_say(
"Hello from 9.5 metres above the server room!"
)
# Launch
if __name__ == '__main__':
ag.run(agent)
# Agent is now floating. Press Ctrl+C to land.hover_stability to 0.999. Values above 1.0 may cause temporal anomalies.