Guide · Gateway alternatives

LiteLLM alternative: when should a team stop running its own gateway?

Use LiteLLM when owning the gateway runtime is a product or compliance requirement. Choose a managed alternative when the team needs model access and metering without carrying upgrades, capacity planning, observability storage and on-call for another production service. The decision is operational before it is technical.

Managed gatewaySelf-hostingRoutingOperations

Reviewed by OpenLux Engineering Team · Last verified

Create an API key Read the docs

Abstract orange glass gateway illustration for LiteLLM alternative
One API, one key, one bill — verify the workload before choosing.
Comparison

LiteLLM alternative options at a glance

The list separates the gateway runtime from the commercial and support layer. Verify current features, regions and terms with each vendor.

OptionOperating modelStrong fitMain trade-off
LiteLLM open sourceSelf-hosted Python proxy and SDKTeams that need to own runtime, networking and provider configurationThe team operates upgrades, scaling, storage, access control and incident response
LiteLLM EnterpriseSelf-hosted or air-gapped with commercial controls and supportLarge organisations standardising an existing self-hosted gatewayAdds procurement and platform ownership on top of the open-source layer
OpenLuxManaged OpenAI-compatible gateway with 19 catalogued modelsTeams that want one key, published USD rates and a short migration without running gateway infrastructureSmaller curated catalogue and less control over the gateway runtime
Portkey / Prisma AIRS AI GatewayEnterprise AI control planeOrganisations buying central AI governance and security controlsEnterprise-oriented scope may exceed a small product team's needs
OpenRouterManaged model marketplace and routing layerProducts that need very broad model discovery and provider choiceA large catalogue increases per-model verification and usage-management work
Comparison

What changes when LiteLLM becomes managed?

ResponsibilitySelf-hosted LiteLLMManaged gateway
Gateway uptimeYour platform and on-call teamVendor service and status process
UpgradesPlan, test and roll back proxy versionsVendor-managed release cadence
CapacitySize pods, database and log storageShared vendor capacity with published limits
Provider credentialsStored and rotated in your environmentStored by the gateway vendor or supplied as BYOK where supported
Model catalogueYou configure every routeVendor publishes supported model IDs and rates
Custom routing codeFully under your controlLimited to the vendor's routing product

Why do teams look for a LiteLLM alternative?

LiteLLM is attractive because it turns many provider APIs into an OpenAI-style interface and gives a team direct control over routing, keys, budgets and logs. That control also creates a service to operate. The gateway needs a database, secret management, monitoring, a deployment pipeline and an owner when a provider changes a response shape.

The alternative question usually appears after the first production quarter. Usage grows, several teams add keys, log volume rises and a model release requires a configuration change. The team must decide whether the gateway remains a strategic platform or has become undifferentiated infrastructure. Neither answer is inherently better; the cost and risk should be explicit.

What does LiteLLM provide today?

LiteLLM documents an OpenAI-format interface for more than 100 LLMs, plus spend tracking, authentication, budgets, rate limits, routing and guardrails. Its enterprise offering adds governance controls such as virtual keys, spend by user or team, audit logs, SSO and SCIM, secret managers and support for self-hosted or air-gapped deployment. These are meaningful capabilities for an organisation that already operates the runtime.

The exact feature boundary matters. Open-source and enterprise editions can differ, and logging or policy integrations may require separate services. Build a requirement matrix from the controls the team will actually operate, not from a feature-page checklist. A capability that needs two engineers to maintain is not free merely because the software licence is open source.

When is self-hosting mandatory?

Self-hosting is the correct default when traffic cannot leave a private network, the gateway must call internal model servers, or security policy requires direct control of the runtime and its data stores. It is also reasonable when a platform team already provides Kubernetes, secrets, observability and incident response, so the marginal operating cost is genuinely low.

Air-gapped deployment, custom provider adapters and organisation-specific routing can be hard requirements. In those cases a managed gateway should not be forced into the architecture. The practical question is whether the requirement is permanent or simply inherited from an earlier environment that no longer exists.

What does a managed alternative remove?

A managed gateway removes runtime installation, version upgrades, capacity planning and gateway database operations from the customer. In OpenLux's case, the interface is one OpenAI-compatible endpoint, the catalogue publishes model IDs and USD rates, and usage is visible through one account. That reduces the path from a key to a first request and keeps billing in one place.

The same choice removes control. A smaller curated catalogue may not include every experimental model. Custom routing code, private provider adapters and deep gateway-level policy may be unavailable. Data handling and retention must be checked against the organisation's rules. A managed service is a good fit only when the missing control is not a requirement.

How should a team migrate from LiteLLM?

Inventory applications by base URL, model ID, authentication method, streaming use, tool calls, response fields, retries and cache assumptions. Map every model to an approved destination model and test quality on representative tasks. Do not assume that the same model name implies identical provider behaviour, context limits or pricing.

Shadow a read-only slice of traffic first. Compare successful response rate, latency, token accounting and cost per accepted task. Exercise rate limits, timeouts, malformed requests and provider failover. Then migrate one application, keep the old route available for rollback, and remove unused keys only after the observation window closes.

How should the total cost be compared?

Add the infrastructure bill, database storage, log retention, observability tooling, support contracts and engineering time to the model token bill. Self-hosting can be cheaper at high, stable utilisation when the platform is already operated. It can be more expensive when usage is spiky, the team is small, or every upgrade competes with product work.

On the managed side, calculate from a real workload rather than an average token price. Include input and output tokens, cache hit rate, retries, image or video requests and idle subscription capacity. The cheapest list price is irrelevant if the route fails more often or produces output the application cannot accept.

Which LiteLLM controls should be replaced, not reproduced?

LiteLLM users often depend on virtual keys, model aliases, team budgets, rate limits, fallback and request logs. Before migrating, separate controls that protect the business from controls that only exist because the gateway is self-hosted. A team budget and a per-customer key are business requirements. A dashboard that scrapes a local proxy container may be an implementation detail.

Keep policy and business authorisation in the application or identity layer. Use the managed API for model access, metering and safe request metadata, then integrate an external log store if retention or SIEM export is mandatory. This boundary prevents a gateway migration from turning into a second authorisation system.

Reproducing every proxy-specific feature can erase the operating saving that motivated the move. Write a shorter control matrix: who can create keys, what each key may spend, which models are approved, where request metadata goes and how fast access can be revoked. Test each answer on the candidate service rather than assuming that an OpenAI-compatible endpoint also reproduces gateway administration.

Treat routing code as a product decision too. A custom rule that exists only to work around an old provider bug should not be copied into the new gateway. Record the desired outcome, such as keeping a workload on an approved model or failing over before a deadline, and implement it at the narrowest layer that can enforce it. This makes the migration smaller and leaves fewer hidden behaviours for the next engineer to discover.

What does a 30-day LiteLLM migration pilot look like?

Week one is inventory and mapping: applications, traffic owners, model IDs, context sizes, streaming, tools, retries and cache assumptions. Week two runs a read-only evaluation set through both routes and records quality, latency, token accounting and failure reasons. Week three moves one low-risk application with a rollback switch. Week four reviews cost per accepted task and either expands or stops.

Define exit criteria before the pilot. Examples include a minimum accepted-output rate, no unexplained billing variance, documented timeout behaviour and a tested key-revocation path. Include an outage drill: disable the new route and prove that the application returns to LiteLLM without duplicate side effects.

The pilot should not process sensitive production prompts unless both data paths have been approved. Use redacted or synthetic examples where possible, and log only request metadata. At the end, publish the decision and unresolved gaps so the next application does not repeat the same evaluation.

Which option fits?

Keep LiteLLM when

  • The runtime must stay inside your network or call private model endpoints.
  • A platform team already owns Kubernetes, databases, secrets and on-call.
  • You need provider adapters or routing logic that a managed product does not expose.

Choose OpenLux when

  • The required models are in the published catalogue.
  • A managed OpenAI-compatible endpoint and one invoice reduce operational work.
  • You do not need to customise the gateway runtime itself.

Configuration example

A minimal OpenAI-compatible migration

from openai import OpenAI

client = OpenAI(
    api_key="sk-openlux-...",
    base_url="https://openlux.lol/v1",
    timeout=30.0,
    max_retries=1,
)

response = client.chat.completions.create(
    model="MODEL_FROM_VERIFIED_CATALOGUE",
    messages=[{"role": "user", "content": "Run the representative task"}],
)

print(response.choices[0].message.content)

Related models and live rates

ModelVendorPriceVs. official
claude-sonnet-4-5-20250929Anthropic$0.2647 / 1M tokens-91%
gpt-5.6-solOpenAI$0.1838 / 1M tokens-96%
gemini-3.8-flashGoogle$0.0551 / 1M tokens-92%
deepseek-v4DeepSeek$0.0613 / 1M tokens-90%

Key takeaways

  • Start with the operating model: managed service, self-hosted runtime, or marketplace breadth.
  • Compare the cost of an accepted workload, including retries, caching, operations and support.
  • Run streaming, tool calls, context limits and failure paths before moving production traffic.

Frequently asked questions

Is there a hosted LiteLLM alternative?

Yes. OpenLux is a managed OpenAI-compatible gateway, while LiteLLM is primarily self-hosted open source with an enterprise option. The fit depends on whether you need control of the runtime or want to remove gateway operations.

Is LiteLLM free?

LiteLLM publishes open-source gateway software and a separate enterprise offering. The software licence is not the whole cost: databases, infrastructure, logging, security review and on-call still need an owner.

Can I migrate from LiteLLM without changing application code?

Applications that already target an OpenAI-compatible client can often change the base URL, key and model ID. Platform-specific routing, cache headers or response fields may still require adaptation.

Does OpenLux support every LiteLLM provider?

No. OpenLux publishes a curated catalogue. Check the live model page for the exact model ID and rate before migrating, and keep an external route for models that are not listed.

What should I test before switching?

Test streaming, tools, long context, structured output, error handling, retries, billing records and representative output quality. Compare cost per accepted task rather than only cost per million tokens.

Sources and methodology

Competitor claims were checked against the linked public pages on the verification date. Pricing and product terms can change; confirm them before purchase.

Try a managed gateway with your real workload

Start with one key and test routes, latency and cost before removing your existing gateway.

Create an API key See pricing

LiteLLM Alternative: Managed vs Self-Hosted Gateway | OpenLux