How My AI Stack Fits Together
A plain-language map of the layers in my AI stack, what each one does, and which project page shows it, with a glossary of the terms those pages use.
LiteLLM
LiteLLM is the single gateway I put in front of local and hosted models, so every app in my homelab calls models the same way.
LiteLLM is a proxy that presents many model providers behind one OpenAI-compatible API. It handles model naming, routing, and logging in one place.
I deployed LiteLLM as the unified inference gateway in my homelab. Open WebUI, SillyTavern, Hermes, and other clients call it instead of each model server. I use it to keep model names consistent and to route a single thinking on/off switch across local models. See Local LLM serving platform.
LiteLLM gives every client one OpenAI-compatible API in front of both my local servers and hosted providers such as OpenRouter. It handles per-client keys, model aliases, fallbacks and tracing callbacks in one place. It replaced ollamaMQ, an earlier gateway in front of Ollama. ollamaMQ matched model names without the tag, so it could not send two context-size variants of the same model to different GPUs. With LiteLLM, adding another kind of server, such as vLLM, or another hosted provider is a configuration change.
If one application calls one provider, a gateway adds a network hop and a service to operate, and calling the provider’s SDK directly is simpler. If an organization already runs a managed API gateway with keys and usage reporting, I would check whether it covers the need before adding another one.
For how this fits with the rest of my AI stack, see How my AI stack fits together.
A plain-language map of the layers in my AI stack, what each one does, and which project page shows it, with a glossary of the terms those pages use.
Why I run a homelab with local GPUs and self-hosted software: some workloads have to run locally, running it myself shows me how the large providers work, and it lets me build for clients in both places.
One trace model for every LLM call, whichever client starts it, so a team can see which models run, for which workflow, at what token use, and where agents fail.
How I run open-weight models on homelab GPUs behind the same kind of API the hosted providers use, so apps can switch between local and cloud models by configuration, and so I understand the hosting problems those providers solve.
A 4-node Proxmox cluster running Kubernetes, Ceph, site-to-site VPNs to AWS, GitOps pipelines, and a full observability stack — built to test every architecture I recommend to clients.
An experimental web application for defining, running and reviewing image and video generation jobs on a GPU pool, built in tested phases with Claude Code.
An experimental deployment of Hermes Agent with one profile per Topic, its own chat channels and Jira access, and explicit limits on when it may start work.