← Back to Portfolio Infraestructura
Pi Antigravity Rotator
Node.js TypeScript Google APIs Dashboard Telemetry
ROUTING_TABLE_ONLINE
Pi Antigravity Rotator is a infrastructure component designed to keep multiple agents operating on Google Antigravity stable without exhausting individual account limits due to over-use.
The core mechanism is straightforward: since different models deplete quotas at different rates, rotation must also behave dynamically. The proxy maintains independent routes per model, tracks active remaining quotas, and switches accounts only when mathematically justified.
Solved Challenges
- Model-Based Routing: Avoids blind round-robin rotation, optimizing account selection by model class.
- Abuse & Enforcement Safeguards: Real-time detection of account flags, isolating compromised nodes instantly.
- Concurrency Rate Limiting: Prevents spikes by capping parallel requests per account.
- Telemetry System: Real-time visibility into usage metrics, latency, and request failures.
- Visual Dashboard: Unified view of the proxy status without wading through tailing logs.
Architecture Flow
The pipeline executes the following logic:
- An agent triggers an API request to the local proxy.
- The rotator detects the requested model signature.
- It validates the active account health state for that specific model.
- If healthy and under quota limits, it routes the request.
- If the quota drops or a flag warning is triggered, it dynamically switches to the next available account.
- If no safe nodes remain, it responds with a clean rate-limit error rather than risking account termination.