switchyard

Route chat completions and embeddings through a single local gateway. Configure providers with encrypted accounts, model aliases, and deterministic failover when a service is unavailable.

Provider failover

Configure OpenRouter and Ollama accounts with priority ordering and failover for unavailable services or exhausted credits.

Encrypted keys

Provider account keys are encrypted at rest with ROUTER_SECRET(XChaCha20-Poly1305).

Usage logging

Every request records latency, status, model, and token counts for reliable gateway diagnostics.

argon2id admin authSeaORM-managed SQLiteSelf-contained Rust binary