rotato
Zero-dependency API key rotator for OpenAI, Gemini, Groq and OpenRouter. Switches keys on rate limits, with no npm packages to steal your keys
- Platform
- Web
- Category
- Developer Tools
- Available from
- GitHub
- License
- MIT
About this app
rotato is a small self-hosted proxy that rotates your API keys for OpenAI, Gemini, Groq, OpenRouter and any OpenAI or Gemini compatible API. Free and cheap API keys hit their rate limit fast, and then your app stops with a 429 error. Put rotato in between, give it several keys, and when one key is limited it quietly tries the next one, so your app keeps working.
What makes it different: tools like this usually pull in hundreds of npm packages, and any one of them could be hijacked to steal the API keys you hand it. rotato uses only Node.js itself. There is nothing to npm install, no node_modules, and even the admin page's styles come from the repo, not a CDN. Every line that touches your keys is in one repo you can read.
- Switches keys on rate limits, or on any error codes you choose, and avoids keys that just failed.
- Many providers at once: each gets its own path, like
/groqor/gemini. Point your app there instead of the provider. - Streaming works, so chat replies still arrive word by word.
- Admin page to add, test, reorder and turn off keys and providers, without restarting.
- Request log that shows which key worked and which failed.
- Optional access key so only your apps can use your proxy.
- Optional outbound proxies, including free public ones it finds and checks itself.
- Telegram bot to chat with any of your models from your phone.
Great for side projects and hobby apps that run on free or low-tier API keys.
I made rotato because I had collected API keys from many providers, each with its own limits, and I was switching between them by hand. I wanted that done for me. I kept seeing supply-chain attacks on social media, so I built it on Node.js alone, with zero third-party packages. And I wanted it as easy as possible: proxies are built in, so you don't have to collect them yourself, testing is built in, and you set it up with one .env file.
Run it
git clone https://github.com/p32929/rotato.git
cd rotato
cp .env.example .env # set PORT and ADMIN_PASSWORD
npm start
Then open http://localhost:8990/admin, add your keys, and point your app at the endpoint it shows.
Want your AI apps running smoothly across many keys and providers? Contact me through my portfolio: https://p32929.github.io