Sitemap
David R Oliver

David R Oliver

I'm interest in how to use technology to improve peoples lives and the environment around us for the benefit of us all.

Member-only story

One Front Door for Every Model – How I build an AI Gateway.

21 min readNov 7, 2026

How I built a personal AI gateway: two copies of LiteLLM, a Mac container and an agent bridge, so every program I write can use any model without a provider key of its own

Press enter or click to view image in full size

Every program I write now needs AI somewhere. A launcher app on my Mac has a chat box. A news-intelligence app summarises and embeds articles. A notes app builds embeddings for search. Small scripts classify, extract and rewrite text. Each one started the same way: pick a provider, paste in an API key, write a client, and hard-code a model name.

After the fifth time, I stopped. I had keys in too many places, no single view of what I was spending, and no easy way to try a different model without editing code. I also wanted to run models on my own Mac for private material, and to hand a coding task to an agent from an app, not just from a terminal.

So I built a personal AI gateway. This article covers what it does, the designs I rejected along the way, how each part works, what it costs, and where it falls short. It ends with a checklist so you can build your own. Everything here runs today; the places where something is still planned are marked.

What I wanted

I wrote the requirements down before I touched any code:

  • Build model access once…

--

--

I'm interest in how to use technology to improve peoples lives and the environment around us for the benefit of us all.