Integrations / Google Antigravity
G

Google Antigravity

Google · Verified setup guide

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

  1. 1
    Get your keyRedeem a voucher at /redeem and copy the key.
  2. 2
    Install the SDKpip install google-antigravity
  3. 3
    Set the keyExport OPENAI_API_KEY="lxc_live_YOUR_KEY".
  4. 4
    Run the agentUse the snippet below; model is any id from the /models page.

Configuration example

python
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.