Sign inSign up

antiantiops/gemini-wrapper

By antiantiops

•Updated about 11 hours ago

Gemini Wrapper API

Buildkit cache
Image
API management
0

10K+

antiantiops/gemini-wrapper repository overview

⁠Gemini Wrapper API

Docker Hub Docker Pulls Docker Image Size

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 invokes agy --prompt "<question>" (optionally with --model) in headless mode and returns the response.

🐳 Pre-built Docker images: https://hub.docker.com/r/antiantiops/gemini-wrapper⁠


ā šŸŽÆ How It Works

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:

  • āœ… No localhost installation - Everything runs in Docker
  • āœ… Authenticate in container - Not on your computer
  • āœ… Credentials shared via mount - Saved to both container and host

⁠⚔ Quick Start (3 Steps)

⁠Prerequisites

āœ… Only Docker is required!

āŒ You do NOT need to:

  • Install Node.js on your computer
  • Install the Antigravity CLI on your computer

Everything is already inside the Docker container!


⁠Step 1: Create Empty Folder and Start 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)

Tag summary

Content type

Image

Digest

sha256:9b0fbe72f…

Size

254 MB

Last updated

19 days ago

docker pull antiantiops/gemini-wrapper