← 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:

  1. An agent triggers an API request to the local proxy.
  2. The rotator detects the requested model signature.
  3. It validates the active account health state for that specific model.
  4. If healthy and under quota limits, it routes the request.
  5. If the quota drops or a flag warning is triggered, it dynamically switches to the next available account.
  6. If no safe nodes remain, it responds with a clean rate-limit error rather than risking account termination.
TUXBOT@SYSTEM:~$ ./chat
> SYSTEM INITIALIZED. FLEET STATUS: ACTIVE.
🐧🤖 [Tuxbot]: Hello, I am Tuxbot. Your Ghost in the Shell for dragont.ec. What do you want to query today?
>