antigravity-sdk-java
Installation
SKILL.md
Antigravity SDK for Java
The Antigravity SDK for Java enables enterprise Java developers to build, configure, host, and execute AI agents natively in Java 21. It wraps the native localharness binary over WebSockets, supporting streaming, tool calling, Model Context Protocol (MCP), lifecycle hooks, security policies, and multimodal inputs.
Prerequisites & Authentication Setup
Before executing tasks with the Antigravity Java SDK, verify the environment:
- Check Dependencies: Ensure
io.github.glaforge:antigravity-sdk-wrapper(andantigravity-sdk-protocol) are listed inpom.xml. - API Key Setup: A valid
GEMINI_API_KEYenvironment variable is required to access Gemini models.- If credentials are missing, actively help the user get set up by providing the Google AI Studio link:
https://aistudio.google.com/app/api-keys.
- If credentials are missing, actively help the user get set up by providing the Google AI Studio link:
- Vertex AI (Gemini Enterprise Agent Platform): Uses Application Default Credentials (ADC). Instruct the user to run
gcloud auth application-default loginand set environment variablesGOOGLE_CLOUD_PROJECTandGOOGLE_CLOUD_LOCATION.
Routing Table
Use the following reference guide based on the user prompt: