Alayra Systems
ALAYRA SYSTEMS
Alayra Nexus
Live Nowv1.2.0Apache 2.0

One endpoint. Every model. Zero key chaos.

Open-source enterprise AI gateway. Pool and load-balance API keys across Anthropic, OpenAI, Google, and Groq behind one OpenAI-compatible endpoint โ€” with atomic admission control, circuit breaking, cost-aware routing, and team budgets.

VIEW ON GITHUBDOCKER HUB
Coming Soon
0GitHub Stars
0Forks
v1.2.0Release
Apache-2.0License
What's Inside

Production-hardened from day one.

โšก

Key Pool Management

Pool unlimited provider keys with AES-256-GCM encryption. Zero plaintext at rest.

๐Ÿ”„

Tiered Failover

Exhausted keys rotate to the next eligible key โ€” 503 only when the entire chain is dry.

โš™๏ธ

Circuit Breaker

Escalating cooldown (10s โ†’ 20s โ†’ 40s, capped at 10 min) with half-open recovery probing.

๐Ÿ’ฐ

Cost-Aware Routing

Routes to the cheapest capable provider after breaker, headroom, and cache-affinity checks.

๐Ÿง 

Cache-Aware Sticky Routing

Multi-turn conversations stay pinned to the same provider โ€” prompt cache hits, not misses.

๐Ÿ’พ

Response Caching

Exact-match Redis cache on model + messages + params. Cache hits replayed as streams.

๐Ÿ›ก๏ธ

Content Guardrails

Pluggable input-side prompt filtering. Bring your own ruleset โ€” off by default.

๐Ÿ“Š

Prometheus + OpenTelemetry

Scrapeable /metrics: request rate, TTFT, cache-hit rate, breaker state, pool utilisation.

๐Ÿ‘ฅ

Team Budgets

Per-period spend caps enforced atomically in the same Redis Lua script as RPM/TPM admission.

๐Ÿ”’

SSRF Protection

Upstream URL allowlist prevents server-side request forgery on every outbound call.

๐Ÿช™

Real Token Counting

js-tiktoken tokenizer for accurate pre-admission estimates โ€” not text.length รท 4.

โฑ๏ธ

Async Analytics Pipeline

Usage events buffered in-process and flushed in batches. No INSERT per request on the hot path.

Compatible Providers

Every major model provider. One endpoint.

Anthropic
OpenAI
Google
Groq
OpenRouter
Custom
Dashboard

Full visibility into your gateway.

โšก

Key Pool Overview

Screenshot coming soon

๐Ÿ“Š

Analytics & Usage

Screenshot coming soon

๐Ÿ’ฐ

Team Budget Tracker

Screenshot coming soon

Quick Start

Deploy in under five minutes.

# Pull and run Alayra Nexus
docker run -d \
  --name alayra-nexus \
  -p 3210:3210 \
  -e DATABASE_URL="postgresql://user:pass@host:5432/nexus" \
  -e REDIS_URL="redis://localhost:6379" \
  -e NEXUS_MASTER_KEY="your-32-byte-encryption-key" \
  alayrasystems/nexus:latest
On the Roadmap

What ships next.

๐Ÿ”‘

BYOK

Teams register personal provider keys, encrypted, routed only for that team โ€” with shared-pool fallback.

๐Ÿ”

2FA / TOTP

QR-based TOTP enrollment for admin accounts. Constant-time comparison on all secret checks.

๐Ÿ‘ฅ

RBAC Roles

Superadmin, Admin, Team Admin, and Viewer hierarchy with per-route role guards.

๐Ÿข

SSO & SAML 2.0

Enterprise identity provider login mapping external groups to RBAC roles.

๐Ÿ’พ

Prompt Caching

Provider-level prompt cache awareness โ€” reduce cost on repeated context across multi-turn sessions.

๐Ÿ“‹

Audit & Compliance Log

Immutable admin action trail with GDPR-friendly retention windows and field-level redaction.

๐ŸŒ

Custom Domains

CNAME-based white-labeling โ€” route your own domain to a team-scoped Nexus endpoint.

๐Ÿ””

Alerts & Webhooks

Rule-based usage alerts on budget, latency, and error thresholds with email and webhook delivery.

๐Ÿ“ˆ

Benchmark Suite

Published k6 load test with real p50/p99 numbers on defined hardware โ€” claims backed by data.

Self-hosted. Open source. No lock-in.

Deploy on your own infrastructure in minutes. Apache 2.0 โ€” fork it, ship it, own it.

$ docker pull alayrasystems/nexus:latest