Skip to content

Advanced Configuration

This chapter dives deep into Antigravity Tools' advanced features: configuration management, security policies, account scheduling, model routing, quota management, monitoring and statistics, and server deployment solutions. After mastering these topics, you can upgrade Antigravity Tools from "working" to "easy-to-use, stable, and operable."

In This Chapter

TutorialDescription
Configuration GuideComplete fields of AppConfig/ProxyConfig, disk persistence locations, and hot reload semantics
Security & Privacyauth_mode, allow_lan_access, and security baseline design
High-Availability SchedulingRotation, pinned accounts, sticky sessions, and failure retry mechanisms
Model RoutingCustom mapping, wildcard priority, and preset strategies
Quota ManagementCombination of Quota Protection + Smart Warmup
Proxy MonitorRequest logs, filtering, detail restoration, and export
------
Long Session StabilityContext compression, signature caching, and tool result compression
System FeaturesMulti-language, themes, updates, startup items, and HTTP API Server
Server DeploymentDocker noVNC vs Headless Xvfb selection and operations

Recommended Order

This chapter covers a lot of content. It's recommended to learn in batches by module:

Phase 1: Configuration & Security (Required)

Configuration Guide → Security & Privacy
config               security

First understand the configuration system (which settings require restart, which support hot reload), then learn security settings (especially when exposing to LAN/public internet).

Phase 2: Scheduling & Routing (Recommended)

High-Availability Scheduling → Model Routing
scheduling                   model-router

Learn to get maximum stability with minimum accounts, then use model routing to shield from upstream changes.

Phase 3: Quota & Monitoring (As Needed)

Quota Management → Proxy Monitor → Token Stats
quota               monitoring       token-stats

Prevent silent quota exhaustion, transform call blackbox into observable system, and optimize costs quantitatively.

Phase 4: Stability & Deployment (Advanced)

Long Session Stability → System Features → Server Deployment
context-compression        system          deployment

Solve hidden issues in long sessions, make the client more product-like, and finally learn server deployment.

Quick Selection:

Your ScenarioStart With
------
Want to pin a specific model nameModel Routing
Always running out of quotaQuota Management
Want to view request logsProxy Monitor
Want to track Token consumptionToken Stats
Frequent errors in long conversationsLong Session Stability
Need to expose to LANSecurity & Privacy
Need to deploy to serverServer Deployment

Prerequisites

Before Starting

  • Completed Getting Started chapter (at least installation, add accounts, and start proxy)
  • Completed at least one protocol integration in Platforms & Integrations (e.g., OpenAI or Anthropic)
  • Local reverse proxy can respond to requests normally

Next Steps

After completing this chapter, you can continue learning:

  • FAQ: Troubleshooting guide for 401/404/429/streaming interruption and other issues
  • Appendix: Reference materials like endpoint quick reference, data models, z.ai capability boundaries, etc.