$ show BuluBulugege/Free-BAI
BankOfAI Pool is a full-stack application that automates the registration and management of API keys for the bankofai.io service. It reverse-engineers the authentication flow to create new accounts, claims the 500,000 credit bonus per account, and pools the resulting API keys behind a unified OpenAI-compatible proxy endpoint. The system includes a Next.js dashboard for managing the pool, automatic replenishment mechanisms, proxy rotation services to bypass IP-based rate limits, and intelligent quota management to distribute keys efficiently. The architecture separates concerns into frontend UI, backend API services, database storage, and specialized workers for registration and maintenance.
The LLM identified 3 files worth highlighting for reuse:
Encapsulates the complete 6-step registration process for bankofai.io: wallet creation, Base L2 funding, login signature generation, CSRF handling, next-auth login, credit claiming via AES encryption, and API key creation. Demonstrates non-obvious skill in implementing the reverse-engineered authentication flow with distinct signature formats for login vs. claim operations and proper handling of the hardcoded AES key. Could be adapted to similar services with modifications to endpoint URLs and request formats.
Manages acquisition, rotation, and health tracking of proxy IP addresses from multiple providers (Kookeey, CloudBypass, Siyetian). Implements smart proxy management including usage tracking, failure detection with automatic retirement, and differentiation between sticky and rotating proxy types. Self-contained with minimal dependencies (primarily undici for HTTP requests) and could be extracted for use with any service requiring IP rotation or proxy management with little modification.
Implements intelligent API key pool management with LRU-based allocation strategy, minimum credit thresholds, and multiple methods for checking balances (session-based and direct API calls). Automatically detects depleted keys from API responses and manages key states (ACTIVE, DEPLETED, DEAD). Demonstrates good resource management patterns with clean separation of concerns and could be adapted to manage any API pool with similar characteristics.