Google Antigravity
Google's agentic IDE and SDK. The IDE uses Google's own model list; the Antigravity SDK can talk to any OpenAI-compatible endpoint.
Setup steps
- 1Get your keyRedeem a voucher at /redeem and copy the key.
- 2Install the SDKpip install google-antigravity
- 3Set the keyExport OPENAI_API_KEY="lxc_live_YOUR_KEY".
- 4Run the agentUse the snippet below; model is any id from the /models page.
Configuration example
import asyncio
import os
os.environ["OPENAI_API_KEY"] = "lxc_live_YOUR_KEY" # the SDK's OpenAI client reads this
from google.antigravity import Agent, LocalOpenAIAgentConfig
async def main():
config = LocalOpenAIAgentConfig(
model="YOUR_MODEL_ID", # any model id from the /models page
base_url="https://api.luxechain.si/v1",
)
async with Agent(config) as agent:
response = await agent.chat("Hello")
async for token in response:
print(token, end="", flush=True)
asyncio.run(main())
Replace YOUR_MODEL_ID with any model from the catalogue. Never paste a real API key into a shared document.
Troubleshooting
The Antigravity IDE cannot be repointed to a custom provider. This guide uses the Antigravity Python SDK, whose LocalOpenAIAgentConfig connects to any OpenAI-compatible base URL. The SDK's OpenAI client takes the key from OPENAI_API_KEY.
If the tool rejects the endpoint, confirm the base URL exactly matches the value on the right, and that the key is active in your account.