Requesty
Back
AI Gateway · DEC '26

Bifrost vs LiteLLM: overhead, security and deployment

Bifrost vs LiteLLM: compare gateway overhead, security incidents and deployment choices before choosing a self-hosted proxy or a managed alternative.

BYDaniel Van den BergheDATEREAD6m
AI GatewaySecurityModel Comparisons
Sections (7)▾
  1. 01Bifrost vs LiteLLM at a glance
  2. 02How much does gateway overhead add?
  3. 03A 20-call example
  4. 04LiteLLM's 1.107.0 release stole credentials
  5. 05Both gateways have had exposed management access
  6. 06What changes when you switch?
  7. 07What to do before choosing

In November 2026, Bifrost is a self-hosted Go gateway, LiteLLM has a self-hosted Python proxy, and Requesty is a hosted alternative. Bifrost's README reports 11 microseconds of added latency per request at 5,000 requests per second, and LiteLLM's benchmarks report 8 ms of P95 gateway overhead for its Python proxy. Choose on provider support, security requirements and whether you are willing to run a proxy.

Bifrost vs LiteLLM at a glance

BifrostLiteLLMRequesty
DeploymentSelf-hostedSelf-hosted proxyFully hosted, with no proxy to deploy or patch
Provider coverage23+ providers, according to its README100+ LLMs, according to its docs600+ models

LiteLLM also has a Rust gateway in beta. Provider counts and benchmark figures alone will not tell you which edition or deployment fits your workload, so below we look at the test conditions and the features.

How much does gateway overhead add?

Maxim reports 11 microseconds of Bifrost overhead per request at 5,000 requests per second, measured on a t3.xlarge instance against mocked OpenAI calls.

Maxim also measured 0.99 ms of Bifrost overhead with a 60 ms mock response. Its comparison with LiteLLM used t3.medium instances for the 500 requests per second test and reports 54 times lower P99 latency for Bifrost. P99 is the latency below which 99% of measured requests fall.

Our Go language audit adds a production reference point: about 16 ms of added latency for Requesty and 124 ms for a self-hosted LiteLLM deployment. The Requesty measurement included authentication, configuration fetch, policy evaluation and accounting.

LiteLLM's July vendor-run benchmark reports about 0.7 ms of P99 overhead for its Rust gateway beta and 4.5 ms for Bifrost v1.6.4. LiteLLM says the test forwarded requests to a mock endpoint without logging callbacks, spend tracking or persistence.

Maxim disputes the comparison. It reports that LiteLLM's own concurrency sweep showed Bifrost adding 0.75 ms at P99 versus 0.89 ms for LiteLLM Rust at concurrency 1, and 28.68 ms versus 40.28 ms at concurrency 64. Maxim also says Bifrost ran with logging on while LiteLLM ran with logging off.

A 20-call example

Take an application that makes 20 sequential model calls, each taking 2.5 seconds before gateway overhead. Apply each project's published overhead to every call: 0.011 ms for Bifrost and 8 ms for LiteLLM's Python proxy.

The model calls take 20 × 2.5 s = 50 s. Bifrost adds 20 × 0.011 ms = 0.22 ms, while LiteLLM adds 20 × 8 ms = 160 ms. The difference is 160 - 0.22 = 159.78 ms; divide 159.78 ms by 50,000 ms and you get about 0.32% of the model-only time.

For a single call that takes seconds, the gateway difference may be hard to notice. At high traffic or across long chains of calls, measure it against your own latency target and configuration.

LiteLLM's 1.107.0 release stole credentials

On October 21, 2026, a malicious litellm==1.107.0 package was published to PyPI and remained available from 11:39 to 13:23 UTC. LiteLLM reports that the Docker Hub tags v1.107.0, latest, main-latest and main-stable were affected from 11:46 to 14:20 UTC. Its incident notice also identifies affected GHCR images and their exposure window.

An environment that installed the compromised package remains affected after the package is removed from the registries. Datadog found that the release pipeline ran against a lookalike fork, Berri-AI/litellm, instead of BerriAI/litellm; the official source tag did not contain the malicious files. Microsoft found that starting Python in an affected environment could trigger the payload even if the application never imported LiteLLM.

The attack also targeted the proxy's credentials. Cycode reports that the malware queried the Postgres table holding upstream provider keys and tried to retrieve up to 500 of them.

Datadog's cleanup guidance says not to run pip in an affected environment, since doing so can retrigger the payload. Manually remove the malicious files and associated code and data first, then reinstall a known-good version such as 1.106.2 and rotate affected credentials from a clean machine. Our incident write-up also covers the detailed steps.

LiteLLM subsequently introduced signed releases, with keyless cosign starting at v1.111.0-dev.3. Stable version 1.110.0 was published on November 18.

Both gateways have had exposed management access

A February 2026 scan by Wiz found that 294 of 3,074 public LiteLLM instances accepted the default master key sk-1234. That is 9.6% of the instances scanned; 191 of the 294 had no master key configured.

Wiz also found that LiteLLM used the master key to sign session tokens. Leaving sk-1234 in place could therefore let an attacker forge sessions across the proxy.

Bifrost had a different exposure. CVE-2026-90898 affected HTTP transport releases before transports/v2.1.0 when management authentication was disabled, the default configuration. An unauthenticated request to the management API could register an MCP client that ran a supplied command under the gateway's account.

Maxim's security update identifies transports/v2.1.0 as the fix and recommends rotating provider and virtual keys if an instance was internet-facing with authentication disabled. Bifrost's security guide explains the first-admin setup flow and inference authentication, a separate control to enable and verify before exposing the gateway.

What changes when you switch?

Start with provider coverage. LiteLLM's docs list 100+ LLMs, while Bifrost's README lists 23+. Check the providers your applications use before treating the APIs as interchangeable.

Bifrost documents an integration with the LiteLLM SDK. The providers used through that integration need to be supported by both LiteLLM and Bifrost.

The edition also changes the feature comparison. Bifrost's Apache 2.0 edition is free, while its custom-priced Enterprise tier adds features including SSO, RBAC, audit logs and vault-backed key storage, according to Bifrost's pricing page. LiteLLM's Enterprise docs say admin UI SSO is free for up to five users and requires Enterprise beyond that; audit logs and delegated admin roles are Enterprise features.

Verdict

Choose Bifrost if you want a self-hosted Go gateway and its provider coverage and edition fit your requirements. Keep LiteLLM on the shortlist if it supports the providers you need and you can manage the proxy and its releases; its Rust gateway beta is another option to evaluate. Choose Requesty if you want a hosted gateway without a proxy to deploy or patch.

What to do before choosing

Run the gateways against the providers and request patterns you use. Include authentication and the gateway features you intend to enable, then compare P99 latency as well as the time added to a complete model call.

Before switching gateways

0 of 4 done

If you want to remove proxy deployment and patching from that list, Requesty provides one OpenAI-compatible API for 600+ models. Our guide to open-source and managed gateways covers the deployment choice in more detail.

FAQ

Is Bifrost faster than LiteLLM?+

Maxim reports 11 microseconds of Bifrost overhead per request at 5,000 requests per second against mocked calls. LiteLLM's own benchmark reports 8 ms of P95 gateway overhead for its Python proxy. The two tests used different setups. LiteLLM and Maxim have published competing benchmark interpretations for LiteLLM's Rust gateway beta and Bifrost.

What happened in the LiteLLM 1.107.0 supply chain attack?+

LiteLLM 1.107.0 carried a credential stealer. Do not run pip in an affected environment: manually remove the malicious files and associated code and data, then reinstall a known-good version such as 1.106.2 and rotate affected credentials from a clean machine. See Datadog's guidance and our incident write-up for details.

Is Bifrost safe to expose to the internet?+

Before exposing Bifrost to the internet, update to transports/v2.1.0 or later, enable and verify management and inference authentication, and restrict network access. Maxim recommends rotating provider and virtual keys if an instance was internet-facing with authentication disabled.

What should you check before switching from LiteLLM to Bifrost?+

Check that Bifrost supports the providers you use and compare the features in each edition. Bifrost reserves SSO and audit logs for Enterprise; LiteLLM's admin UI SSO is free for up to five users and requires Enterprise beyond that, while audit logs and delegated admin roles are Enterprise features.

Can you use Bifrost without self-hosting?+

Bifrost is self-hosted. Requesty is a fully hosted alternative with an OpenAI-compatible API, so users do not need to deploy or patch a gateway proxy.

Requesty Gateway

Start building with Requesty

One line of code. 600+ models. Full control.