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
| Gemini event | Normalized to |
|---|---|
| Running status | session.status_running |
| Assistant text | agent.message |
| Tool use | agent.tool_use |
| Tool result | agent.tool_result |
| Completion | session.status_idle |