What I built: a self-hosted gateway that speaks the OpenAI API, so existing code only changes its base URL. Behind it sit OpenAI, Anthropic, Google Gemini and local Ollama models, with configurable routing, retries, fallback to another provider, circuit breakers, response caching, API keys, rate limits, per-tenant budgets and token, cost and latency metering.