compare / litellm

LiteLLM routes models.
It does not govern traffic.

LiteLLM is a popular library for routing across LLM providers from a Python application. The proxy server packages the same library behind an HTTP endpoint. It is not a gateway. Inbound monetization, agent identity, content negotiation, WAF, mTLS, and OpenAPI emission are not in scope. SBproxy is the runtime, not the routing library.

summary
Stack
Python
Licence
MIT (library), commercial SaaS for the proxy enterprise tier
Shape
Library and proxy server for LLM routing
Install
pip, docker, hosted
where the products diverge
Scope
LiteLLM

LLM routing. Strong on model coverage and OpenAI-compatible API mapping.

sbproxy

All five capabilities on one runtime. Routing is one column of five.

Inbound coverage
LiteLLM

None. LiteLLM proxy is in front of outbound LLM calls.

sbproxy

Web, API, MCP, agents. Pay Per Crawl, Web Bot Auth, virtual keys, OpenAPI emission.

Runtime
LiteLLM

Python. The runtime fetches code from a public package registry on install. Auto-execution paths in Python’s import system have produced production incidents.

sbproxy

Single static binary. No interpreter, no runtime package fetch, no .pth auto-execution. Deployment shape matches nginx, HAProxy, Envoy.

Performance
LiteLLM

Python with worker processes. Acceptable at small scale, expensive at high concurrency.

sbproxy

Sub-millisecond p99 added latency. Idle RSS in single-digit megabytes.

Keys and state
LiteLLM

Virtual keys live in a database the proxy reads. Sharing budgets and rate limits across instances needs an external Redis. Adding or revoking a key is a database write the workers pick up.

sbproxy

A live key plane: mint, rotate, and revoke through the admin API with a revoke effective on the next request. Run a fleet and a gossip mesh keeps the keys, budgets, and rate counters coherent with CRDT counters, so the cluster coordinates itself without an external Redis.

When LiteLLM wins

You want a routing library inside a Python application and you accept the runtime model.

When sbproxy wins

You need a real gateway in front of public traffic, you want one runtime for inbound and outbound, or you want a fleet that stays coherent without standing up Redis.

sources
  • BerriAI/litellm repo and proxy docs
  • Public incident reports on Python supply chain attacks
06 / talk to us

Want to talk
before you install?

The gateway is on GitHub under Apache 2.0 and you can install it right now, so nothing here is gated behind a sales call. Use this form for deployment questions, migration scoping, or anything you would rather not file as a public issue.

01
Share your stack. A few details on providers, scale, and the gateway you might be replacing.
02
Talk to engineering. A real conversation about whether SBproxy fits the deployment shape you have in mind. No demo theatre.
03
Get a straight answer. Including when the answer is that SBproxy is the wrong fit and you should run something else.