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
| Tutorial | Description |
|---|---|
| Configuration Guide | Complete fields of AppConfig/ProxyConfig, disk persistence locations, and hot reload semantics |
| Security & Privacy | auth_mode, allow_lan_access, and security baseline design |
| High-Availability Scheduling | Rotation, pinned accounts, sticky sessions, and failure retry mechanisms |
| Model Routing | Custom mapping, wildcard priority, and preset strategies |
| Quota Management | Combination of Quota Protection + Smart Warmup |
| Proxy Monitor | Request logs, filtering, detail restoration, and export |
| --- | --- |
| Long Session Stability | Context compression, signature caching, and tool result compression |
| System Features | Multi-language, themes, updates, startup items, and HTTP API Server |
| Server Deployment | Docker noVNC vs Headless Xvfb selection and operations |
Recommended Learning Path
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 securityFirst 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-routerLearn 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-statsPrevent 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 deploymentSolve hidden issues in long sessions, make the client more product-like, and finally learn server deployment.
Quick Selection:
| Your Scenario | Start With |
|---|---|
| --- | --- |
| Want to pin a specific model name | Model Routing |
| Always running out of quota | Quota Management |
| Want to view request logs | Proxy Monitor |
| Want to track Token consumption | Token Stats |
| Frequent errors in long conversations | Long Session Stability |
| Need to expose to LAN | Security & Privacy |
| Need to deploy to server | Server 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: