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, choosegemini_antigravity as the runtime, and save.
Or via the API:
4. Start a session with repo context
Gemini sessions acceptenvironment fields for repository context:
5. Stream events
See Internal SDK contract for the Rust SDK types.