000%
Ali Saad / Creative systems practiceSignal acquired
DestinationDestination
Destination / Destination11 / route handoff

All projectsW—04 / 11

LLM-HubProMax

Self-hosted OpenAI-compatible gateway with multi-provider routing, sticky fallbacks, encrypted local keys, health checks, analytics, and a multimodal playground.

Source Code
LLM-Hub Pro Max neon provider routing artwork
OverviewThe buildOutcome

Overview

Role
Full-Stack Developer & System Architect
Client
Ali Saad (Self-initiated product)
Year
2026
Upstream FreeLLMAPI

LLM-Hub Pro Max is a self-hosted OpenAI-compatible API gateway and admin dashboard for personal and small-team AI routing. Applications connect to one `/v1` interface, then switch models or providers through centralized configuration instead of client-code changes.

The Express server exposes routed chat completions, model discovery, embeddings, image generation and editing, audio, and realtime session-token endpoints. Sticky fallback chains, cooldowns, provider health checks, capability discovery, response routing headers, request logs, analytics, and diagnostics make provider behavior visible and recoverable.

A React and Vite dashboard manages provider keys, model availability, fallback order, health, logs, analytics, and playground workflows. Provider keys are encrypted in local SQLite, and an optional PIN can protect dashboard and management routes. The product is intentionally scoped to self-hosted use rather than global multi-tenant accounts or billing.

The challenge +

The core challenge was normalizing providers with different model catalogs, capabilities, rate limits, error behavior, and endpoint coverage behind one predictable OpenAI-style interface. The gateway uses a provider catalog, capability metadata, explicit routing headers, sticky fallback chains, cooldowns, health checks, and model discovery to make those differences manageable.

A second challenge was operational visibility. Automatic fallback is only useful when an operator can see where requests went and why. Request logs, analytics, error distribution, provider health, model sweeps, and diagnostics expose that path from the dashboard.

The system also had to centralize credentials without becoming a remote secret store. Provider keys remain encrypted in local SQLite, and the product stays deliberately scoped to personal and small-team self-hosting rather than multi-tenant billing.

Thebuild

01

Unified OpenAI-Compatible /v1 API

One proxy surface covers model listing, streaming and non-streaming chat, tool calling, embeddings, image generation and edits, speech, transcription, translation, and realtime session-token issuance.

Connect once, route across providers and models

02

Sticky Fallback Routing

Configurable chains keep requests on the selected route when healthy, apply cooldowns after rate limits or provider errors, and expose routed-provider and fallback-attempt metadata in response headers.

Fallback chains, cooldowns, and route visibility

03

Provider Health & Model Discovery

Health checks, model availability discovery, capability tracking, provider ranking, and model sweeps show which routes are configured and currently usable across the provider catalog.

Models and capabilities verified from one dashboard

More details (4)
04

Encrypted Local Key Storage

Provider credentials, model state, fallback configuration, logs, and analytics live in local SQLite. Keys are encrypted at rest and managed from the dashboard instead of scattered across client applications.

Centralized credentials without a hosted control plane

05

Analytics, Logs & Diagnostics

The admin API and dashboard expose usage summaries, model and platform breakdowns, estimated token usage, timelines, error distribution, filtered request logs, routing attempts, and diagnostic checks.

Requests, routes, failures, and usage in one view

06

Multimodal Playground

Built-in test surfaces exercise chat, vision, video inputs, embeddings, image generation and editing, audio workflows, and realtime session-token creation against the same routed API.

Chat, vision, video, images, embeddings, and audio

07

Optional Dashboard PIN

Self-hosted users can leave management routes open on a trusted local machine or enable PIN-backed sessions to protect the dashboard and admin API when the deployment needs an additional control boundary.

Optional protection for dashboard and admin routes

Outcome

LLM-Hub Pro Max provides one working `/v1` entry point for applications that need to move between models and providers without rewriting client integrations. It supports routed chat, embeddings, images, audio, and realtime session-token workflows, with provider and fallback metadata returned alongside requests.

The dashboard centralizes key management, fallback order, model availability, health checks, logs, analytics, diagnostics, and multimodal testing. When a route fails or rate-limits, cooldown and fallback behavior can keep the client flow moving while preserving enough observability to investigate the event.

The result is a practical self-hosted control layer for personal and small-team AI workloads, not a claim of global multi-tenant infrastructure.

API Surface
OpenAI-compatible /v1 routes
Deployment
Self-hosted and local-first
Target
Personal and small-team AI workloads
Next projectW—05 / 11

Portfolio Control Room

View project
Portfolio Control Room
Have something worth building?Start a project
aliihsaad1@gmail.com
InstagramLinkedInGitHubFacebook
© 2026 Ali Saad