← Back to Portfolio Infraestructura
Pi OpenCode Go Rotator
Node.js OpenAI-compatible API Budget Tracking Dashboard
BUDGET_GUARD_ACTIVE
Pi OpenCode Go Rotator adopts the same intelligent rotation philosophy but adapts it to a different context: accounts with a limited budget instead of a purely technical quota.
The goal is not just to distribute requests. The goal is to distribute spending, avoid surprises, and give the operator a clear view of the actual consumption per account.
What it brings
- Usage estimation based on tokens and associated cost.
- Rotation when an account approaches its usable limit.
- Containment of
429errors to prevent chained penalties. - Limit of one in-flight request per account.
- Dashboard to view estimated consumption and recent activity.
Difference compared to other rotators
This project doesn’t revolve around a traditional API quota. It revolves around a more practical question:
How much usable balance do I really have left before starting to lose margin?
That makes it interesting for environments where financial control matters just as much as technical availability.