Local AI

LiteLLM

LiteLLM is a gateway that lets you call models from Anthropic, OpenAI, Google and many other providers through one consistent API. It runs as a Python library inside your code or as a standalone proxy server in front of your whole stack, with cost tracking, per-key budgets, rate limits and automatic fallbacks for when a provider has a bad day.

View the repo · BerriAI/litellm ↗
Who it is for

Anyone building on more than one model, or who suspects they will be within a year, and wants to avoid rewriting application code every time the model landscape shifts. Platform and engineering leads use the proxy to give internal teams governed access to models, with spend visible per team and per key. A single small project calling one provider directly does not need it yet; add it when the second model or the second team arrives.

Install it
pip install litellm
# run the proxy:
litellm --model claude-sonnet-4-6
Before production

The proxy needs a Postgres database for key management and spend tracking, so treat it as a real service with backups rather than a script someone runs. Set budgets and rate limits per key from day one, because an agent stuck in a loop can spend a surprising amount overnight. Provider APIs still differ in the corners, particularly around tool calling and streaming, so test each model you route to instead of assuming the abstraction is perfect.

Where Blash AI comes in

In a Blash build the gateway is the control point for every model call: n8n workflows, retrieval systems on Chroma and local models on Ollama all route through it. We stand it up, set the budgets, fallbacks and logging, and map each workflow to the cheapest model that meets its quality bar, so you can see exactly what every automation costs to run.

Run it, then wire it in

When you want this running on your real stack, that is the engagement

Book an AI audit
The newsletter

AI worth your inbox

The tools, launches and shifts that actually matter, in plain English. No paywall, unsubscribe at any time.