Skip to main content

Overview

Antigravity Manager includes a built-in proxy server that translates OpenAI, Anthropic, and Gemini API requests to use your Google AI accounts.

Basic Configuration

Server Settings

boolean
default:"false"
Enable the proxy service
number
default:"8045"
Listening port for the proxy serverRange: 8000-65535Location: config.rs:478
boolean
default:"false"
Automatically start proxy server when application launchesLocation: config.rs:487
number
default:"120"
API request timeout in secondsDefault: 120 seconds
Range: 30-7200 seconds
Location: config.rs:494-495

Network Access

boolean
default:"false"
Allow LAN access to the proxy server
  • false: Bind to 127.0.0.1 (local only, privacy-first)
  • true: Bind to 0.0.0.0 (allow LAN access)
Location: config.rs:463-467
When enabling LAN access, ensure you configure authentication to prevent unauthorized access.

Authentication Modes

enum
default:"auto"
API authentication policyOptions:
  • off: No authentication required
  • strict: Authentication required for all routes
  • all_except_health: Authentication required except /healthz
  • auto: Recommended defaults (LAN=all_except_health, local=off)
Location: config.rs:469-476
string
required
API key for client authenticationFormat: Must start with sk- followed by UUIDDefault: Auto-generated on first run
Example: sk-a1b2c3d4e5f6...
Location: config.rs:481
string
Web UI management console passwordIf not set, defaults to api_key value.Location: config.rs:484

Upstream Proxy Configuration

Route requests through an upstream proxy server:
boolean
default:"false"
Enable upstream proxyLocation: config.rs:564
string
Upstream proxy URLSupported protocols: http://, https://, socks5://Example: http://127.0.0.1:7890Location: config.rs:566
If the proxy URL doesn’t include a protocol, http:// is automatically prepended. See normalize_proxy_url() in config.rs:10-21

Logging Configuration

boolean
default:"true"
Enable request logging (required for token statistics)Location: config.rs:499
boolean
default:"false"
Enable debug logging (saves full request/response chain)Location: config.rs:502
string
Custom directory for debug logsIf not set, uses default application data directory.Location: config.rs:503

Advanced Settings

User-Agent Override

string
Override User-Agent header sent to upstream APIsExample: antigravity/1.15.8 darwin/arm64Location: config.rs:515
string
Persisted User-Agent value (even when override is disabled)Location: config.rs:536-537

Configuration Example

Usage Examples

Python (OpenAI SDK)

Python (Anthropic SDK)

Python (Native Gemini SDK)