Gemini Wrapper API
10K+
A Go REST API wrapper for Google's Antigravity CLI (agy). Provides a simple HTTP interface (plus OpenAI- and Gemini-compatible endpoints) to interact with Antigravity models.
Backend: this image ships the Antigravity CLI (
agy), tested against agy 1.0.7. The wrapper invokesagy --prompt "<question>"(optionally with--model) in headless mode and returns the response.
š³ Pre-built Docker images: https://hub.docker.com/r/antiantiops/gemini-wrapperā
You do NOT need to install anything on your computer except Docker!
### Step 1:
agy
###Step 2: Choose Google Oauth
āāāā
āāāāāā
āāāāāāāā
āāā āāā
āāā āāā
Welcome to the Antigravity CLI. You are currently not signed in.
Select login method:
> 1. Google OAuth
2. Use a Google Cloud project
[Use arrow keys to navigate, Enter to select]
### Step 3: get out of the container
ā Mount
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā DOCKER CONTAINER ā
ā ā
ā ⢠Antigravity CLI (agy) pre-installed ā
ā
ā ⢠Node.js pre-installed ā
ā
ā ⢠Go application pre-installed ā
ā
ā ā
ā 3. You run: agy (inside container) ā
ā 4. Complete the Antigravity sign-in flow ā
ā 5. Credentials saved to /app/.gemini ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Mount (bidirectional)
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā YOUR COMPUTER (Host) ā
ā ā
ā 6. Credentials appear in: ~/.gemini ā
ā
ā 7. Container can now access Antigravity ā
ā
ā 8. Your REST API is ready! ā
ā
ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Key Points:
ā Only Docker is required!
ā You do NOT need to:
Everything is already inside the Docker container!
What happens: Create an empty folder for credentials, then start the container with this folder mounted.
Linux/Mac:
# Create empty folder for credentials
mkdir -p ~/.gemini
# Start container with mount
# Add: -e OPENAI_API_KEY=sk-local-demo (optional, enables Bearer auth for /v1/*)
docker run -d -p 8080:8080 \
-v ~/.gemini:/app/.gemini \
--name gemini-wrapper \
antiantiops/gemini-wrapper:latest
Ā
Made with ā¤ļø using Go, Echo, and Google's Antigravity CLI (agy)
Content type
Image
Digest
sha256:9b0fbe72fā¦
Size
254 MB
Last updated
19 days ago
docker pull antiantiops/gemini-wrapper