Story

Show HN: key-carousel - Key rotation for LLM agents

EmptyDrum Friday, March 06, 2026

I think in-process key management is the right abstraction for multi-key LLM setups. Not LiteLLM, not a Redis queue, not a custom load balancer.

The failure modes are well-understood: a key gets rate-limited, you wait, you try the next one. Billing errors need a longer cooldown than rate limits. This is not a distributed systems problem — it's a state machine that fits in a library. The problem is everyone keeps solving it with infrastructure instead. Spin up LiteLLM, now you have a Python service to maintain. Reach for Redis, now you have a database for a problem that doesn't need one. key-carousel manages a pool of API key profiles with exponential-backoff cooldowns: 1min → 5min → 25min → 1hr for rate limits, 5hr → 24hr for billing. Falls back to OpenAI or Gemini when Anthropic keys are exhausted. Optional file persistence. Zero dependencies.

Summary
The Key Carousel is a project that showcases a unique interface for browsing and playing audio samples, with the ability to load and play multiple samples simultaneously. The project demonstrates innovative ways of interacting with and manipulating audio content through a visually engaging and intuitive user interface.
5 1
Summary
github.com
Visit article Read on Hacker News Comments 1