Status: [UNTESTED] Endpoints found: http://localhost:8080/v1/chat/completions Source: https://github.com/shaharia-lab/ferrox # Ferrox [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Build](https://github.com/shaharia-lab/ferrox/actions/workflows/ci.yml/badge.svg)](https://github.com/shaharia-lab/ferrox/actions) Ferrox is a stateless, horizontally-scalable LLM API gateway written in Rust. It exposes an OpenAI-compatible API and routes requests to Anthropic, OpenAI, Gemini, and AWS Bedrock. ## Features - **OpenAI-compatible API** - drop-in replacement; no client-side changes needed - **Three client dialects** - `/v1/chat/completions`, `/v1/responses` (Responses API, Codex CLI) and `/anthropic/v1/messages` (Claude Code), each served by every provider - **Multi-provider routing** - round-robin, weighted, failover, and random strategies - **Fallback chains** - automatic failover to backup providers on failure - **Circuit breakers** - lock-free, per-provider; prevents cascading failures - **Rate limiting** - per-key token bucket; burst-aware - **Virtual keys** - issue scoped API keys with per-model access control - **Streaming** - full SSE pass-through for all providers - **Observability** - Prometheus metrics, structured JSON logs, OpenTelemetry tracing ## Architecture ```mermaid flowchart LR Client -->|Bearer token| Auth Auth -->|RequestContext| Router subgraph Ferrox Auth[Auth Middleware] Router[Model Router] CB[Circuit Breaker] RateLimit[Rate Limiter] Auth --> RateLimit Router --> CB end CB -->|primary| Anthropic CB -->|primary| OpenAI CB -->|primary| Gemini CB -->|fallback| Bedrock[AWS Bedrock] Ferrox --> Prometheus Ferrox --> OTLP[OTLP Collector] ``` ## Installation ### Pre-built binary Download the latest release for your platform from [GitHub Releases](https://github.com/shaharia-lab/ferrox/releases/latest): ```bash # macOS (Apple Silicon) curl -L https://github.com/shaharia-lab/ferrox/releases/latest/download/ferrox-aarch64-apple-darwin.tar.gz | tar xz s