Skip to main content

Overview

Antigravity Manager provides a native headless Docker deployment with built-in Web UI hosting and API proxy capabilities. Perfect for NAS, servers, and containerized environments.
Docker deployment automatically runs in headless mode with Web-based management instead of a desktop GUI.

System Requirements

Memory

  • Minimum: 256MB RAM
  • Recommended: 1GB RAM

Architecture

  • x86_64 (amd64)
  • ARM64 (aarch64)

Quick Start

Pull the pre-built image from Docker Hub:
Security: Replace your-api-key and your-login-password with strong, unique values.

Verify Installation

Check container logs to confirm startup:
You should see:

Environment Variables

string
required
API key for AI requests. Used by Claude Code CLI, OpenAI-compatible clients, etc.Alias: ABV_API_KEY
string
Password for Web UI login. If not set, falls back to API_KEY.Alias: ABV_WEB_PASSWORD
integer
default:"104857600"
Maximum request body size in bytes. Default is 100MB for handling large images.
integer
default:"8045"
Internal container port (usually don’t change this).
string
default:"info"
Logging verbosity: debug, info, warn, or error.
boolean
default:"false"
Bind to 127.0.0.1 only (localhost). Default is 0.0.0.0 (all interfaces) for Docker.
string
Public URL for OAuth callbacks when behind reverse proxy (e.g., https://antigravity.example.com).
string
default:"/app/dist"
Path to frontend static files (pre-configured in image).
string
default:"AllExceptHealth"
Authentication mode: Off, Strict, AllExceptHealth, or Auto.Alias: ABV_AUTH_MODE

Authentication Modes

Behavior:
  • Web Login: Use API_KEY as password
  • API Calls: Use API_KEY in Authorization header

Volume Mounts

Data Persistence Required: Always mount /root/.antigravity_tools to preserve accounts and configuration.

Default Mount

Stores:
  • Account tokens and OAuth credentials
  • Application configuration (gui_config.json)
  • Proxy logs and statistics
  • Token usage database

Custom Mount Location

Port Mapping

Default: 8045:8045

Standard port mapping for both Web UI and API

Custom: 3000:8045

Map host port 3000 to container port 8045
Access at: http://localhost:3000

Accessing the Container

Management Interface:
Login with WEB_PASSWORD (or API_KEY if password not set).

Managing the Container

Finding Your Credentials

If you forgot your API key or password:

Building Custom Image

For development or customization:

Build Arguments

string
default:"auto"
  • auto: Auto-detect network and use mirrors if Google is unreachable
  • true: Force use China mirrors (Aliyun, npm mirror)
  • false: Use official sources only

Advanced Configuration

Network Mode: Host

For direct localhost access (Linux only):
--network host doesn’t work on macOS/Windows Docker Desktop.

Custom Resource Limits

Upgrading from Old Versions

1

Backup Data

2

Stop Old Container

3

Pull New Image

4

Start with New Configuration

Add WEB_PASSWORD if upgrading from v4.0.1 or earlier:

Troubleshooting

Check logs for errors:
Common causes:
  • Invalid environment variables
  • Port 8045 already in use
  • Permission issues with volume mount
  1. Verify container is running:
  2. Check port mapping:
  3. Test from inside container:
Verify credentials in logs:
Or check config:
Limit container memory:

Next Steps

Docker Compose

Deploy with Docker Compose for easier management

Headless Mode

Learn about headless-specific features and configurations

API Integration

Connect Claude CLI, OpenCode, and other clients

Reverse Proxy

Set up Nginx or Caddy for HTTPS and custom domains