← ALL WORK
AI & media

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.

LiteLLMLangfuseDocker
MY ROLE

Product & Full-Stack Engineering

BUILT FOR

Mobile and backend clients that need access to language models

01 / THE CONTEXT

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.

02 / PRODUCT CAPABILITIES
01

Single model gateway

A LiteLLM proxy provides one gateway in front of multiple models.

02

Tracing and usage analytics

Langfuse records traces and usage analytics for the traffic through the gateway.

03

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.

ENGINEERING IN MOTION

One virtual key. One traced model call.

A request passes through a normalizing hook, a router and tracing callbacks before the response returns.

STEP 01 / VIRTUAL KEYS

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.

WHY IT MATTERS

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.

04 / ENGINEERING JUDGMENT

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 ↗