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 (and antigravity-sdk-protocol) are listed in pom.xml.
  • API Key Setup: A valid GEMINI_API_KEY environment 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.
  • Vertex AI (Gemini Enterprise Agent Platform): Uses Application Default Credentials (ADC). Instruct the user to run gcloud auth application-default login and set environment variables GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION.

Routing Table

Use the following reference guide based on the user prompt:

Installs
1
GitHub Stars
5
First Seen
3 days ago
antigravity-sdk-java — glaforge/antigravity-java-sdk