About this project

ai-router is a smart LLM router that provides an OpenAI-compatible API and routes requests to the most suitable available provider. It includes built-in per-provider circuit breaking, health monitoring, and cost tracking. The router selects providers based on priority, current availability, and model tags (such as chat, code, fast, and others). It includes endpoints for chat completions, health checks, metrics viewing, and circuit breaker management.