Skip to main content
The Gemini Antigravity runtime lets LAP create and run Gemini-backed managed agents through the same session API used by the other runtimes. LAP normalizes Gemini interaction events to the shared runtime event stream.

Prerequisites

  • LiteLLM Agent Platform running
  • Gemini API key

1. Add your Gemini API key

Open Settings → Credentials in the UI and add your Gemini API key. Or via the API:

2. Select the built-in runtime

gemini_antigravity is a built-in runtime. You do not need to register a custom runtime harness unless you are proxying through your own Gemini-compatible service.

3. Create an agent

In the UI, click New Agent, choose gemini_antigravity as the runtime, and save. Or via the API:

4. Start a session with repo context

Gemini sessions accept environment fields for repository context:

5. Stream events

Gemini interaction events are normalized to the shared runtime event surface: See Internal SDK contract for the Rust SDK types.