LLM Gateway & Monitor
A self-hosted LLM gateway with observability.
A self-hosted LLM gateway with tracing, usage analytics and key management, serving mobile and backend clients.
A self-hosted LLM gateway with observability.
Applications that call several language models need one controlled entry point. Without a gateway, keys, usage and traces are scattered across clients and providers and are hard to observe.
What I built
I set up a LiteLLM proxy as a single gateway for multiple models, added Langfuse for tracing and usage analytics, and used virtual key management for mobile and backend clients. The stack runs in Docker.
Single model gateway
A LiteLLM proxy provides one gateway in front of multiple models.
Tracing and usage analytics
Langfuse records traces and usage analytics for the traffic through the gateway.
Virtual key management
Virtual keys are issued for mobile and backend clients.
Under the surface.
Follow a real product workflow through its application boundaries. Select any step to explore the implementation.
One virtual key. One traced model call.
A request passes through a normalizing hook, a router and tracing callbacks before the response returns.
Issue a key
Each app or service receives its own virtual key from the proxy. A key can be limited to the models it may call and, where configured, to a budget and a rate limit.
Centralizing keys, normalization and traces turns provider differences into configuration in one place. Routing is deliberately simple here: shuffle and retry, with no fallback chain configured.
Conceptual flow based on the implementation. Animated connections illustrate data movement, not live traffic.
Built around the constraints.
Route all model access through one self-hosted gateway, so keys, usage and traces are managed in one place instead of inside each client.
Discuss the engineering ↗Keep exploring.
Next project ↗
Tournament SuiteEsports infrastructureTournament Suite
A white-label esports platform connecting competition, community and commerce under an operator’s own brand.
Ranked LoveContent & platformsRanked Love
A dating app for gamers on iOS and Android, with a NestJS backend, background moderation and scoring workers, and a companion web frontend.
HIM ClubsEsports infrastructureHIM Clubs
A mobile app for gaming clubs and communities, built as part of the Tournament Suite platform with a matching web app.