Open source · Rust

One API. Every model.

Route requests to OpenAI, Anthropic, Gemini, Azure, Bedrock, or Ollama through one OpenAI-compatible endpoint. Sub-millisecond overhead. Single binary. No runtime.

cargo install crabllm crabctl
The Router. Requests enter as one format, pass through the gateway, and fan out to provider zones. Hover a zone to simulate failover; click for a burst of traffic.
What you get

Six capabilities, out of the box

Provider translation, routing, streaming, auth, caching, budgets — the gateway handles them so your client doesn’t.

02

Routing & fallback

Weighted random selection across providers. Exponential backoff retry. Automatic failover.

Docs · features/routing →
04

Virtual keys & auth

Per-key model access control. Rate limiting, usage tracking, and budget enforcement.

Docs · features/auth →
Performance

Not the bottleneck

Gateway overhead at 5,000 concurrent requests per second — identical limits (2 CPUs, 512 MB) against a mock backend with instant responses. Full results →

Latency
GatewayP50P99
CrabLLM0.26ms0.54ms
Bifrost0.61ms1.26ms
LiteLLM159ms227ms
Memory
GatewayPeak RSS
CrabLLM34.9 MB
Bifrost171.7 MB
LiteLLM541.8 MB

One API. Every model.

0.26ms · single binary