Bifrost AI gateway: open source, Enterprise, and pricing
The Bifrost AI gateway is a self-hosted, open-source gateway for model, MCP, and agent traffic. What is free, what Enterprise adds, and how it is priced.
- Published
- Reading time
- 14 min read
In short
- Bifrost is an open-source AI gateway by Maxim AI, written in Go and licensed Apache 2.0, that you run in your own infrastructure. One binary works as an LLM gateway, an MCP gateway, and an agent gateway under one policy.
- The open-source build is free and includes routing, failover, virtual keys with budgets, semantic caching, the MCP gateway with Code Mode, and OpenTelemetry and Prometheus. Clustering, single sign-on, RBAC, guardrails, audit logs, and the native Datadog, Kafka, and BigQuery connectors need Enterprise.
- Bifrost pricing is a model with no public numbers: open source is free, Enterprise is custom-priced with a 14-day trial, and Bifrost Edge is priced per device and requires the Enterprise gateway.
- Bifrost suits platform teams that want to own the gateway and can operate it. Teams that want no infrastructure are better served by a hosted aggregator or their cloud platform's gateway.
Bifrost, an open-source AI gateway by Maxim AI, is a proxy you run in your own infrastructure between your applications and the models, tools, and agents they call. The Bifrost AI gateway ships as two builds. The open-source build is free under the Apache 2.0 license and covers routing, failover, virtual keys, budgets, caching, and an MCP gateway. The Enterprise build is custom-priced and adds clustering, single sign-on, guardrails, and audit logs.
Where that line falls decides whether the free build is enough, because several controls that security teams ask for first are paid. Every product fact below was checked against Bifrost's own pages, docs, and repository on November 16, 2026.
What Bifrost is: two products and three gateway roles
Bifrost is two products that share one policy engine: the Bifrost Gateway, which every AI request passes through, and Bifrost Edge, which brings traffic from employee machines to that gateway.
The Gateway is the control plane. Applications call it in the OpenAI API format, and it forwards each request under the rules you set. It reaches 10,000+ models across 25+ providers, including self-hosted vLLM, SGLang, and Ollama, and the support matrix listed 35 providers on the day of writing. Bifrost hosts no models. You add your own provider keys and pay each provider directly.
One binary plays three roles:
- LLM gateway. One OpenAI-compatible API in front of every provider, with retries, fallbacks, load balancing, and budgets. What an LLM gateway does covers the general pattern.
- MCP gateway. Bifrost connects to Model Context Protocol servers over STDIO, HTTP, or SSE and exposes their tools through one endpoint, filtered per caller. What an MCP gateway does lists what to demand from this role.
- Agent gateway. Bifrost registers existing agents that speak the Agent2Agent (A2A) protocol, controls which callers reach each one, and logs each session's tasks, model calls, and tool calls. A2A is the only agent protocol it supports as of November 2026.
Bifrost Edge is a service installed on employee machines running macOS, Windows, or Linux. It sends AI traffic from desktop chat apps, browser AI, and coding agents through the Gateway, so the same keys, budgets, and guardrails apply to tools that nobody pointed at a gateway by hand, the traffic usually called shadow AI. Edge is available only with the Enterprise gateway.
How Bifrost is built
Bifrost is a single Go binary that contains the HTTP server, the web UI, and all three gateway roles, and it keeps its working state in memory. That design explains both its speed and the main limit of the open-source build.
A request takes this path through the gateway:
- The HTTP transport, built on FastHTTP, validates the request and converts it to one internal schema.
- Routing picks a provider and an API key. Keys are chosen by weighted random selection.
- Plugins run before the call. Governance, logging, caching, and telemetry are all plugins, and this is where a virtual key's budget and rate limit are checked.
- If MCP is enabled, the tools the caller may see are added to the request.
- A worker from that provider's own pool sends the call. Each provider has a separate worker pool and queue, so one slow provider cannot use up another's workers.
- Plugins run again on the response to log it, cache it, and record metrics.
Two choices keep the overhead low. Request objects come from pools allocated at startup, which trades memory for fewer allocations. And once a node has started, it serves provider configs, keys, budgets, and usage counters from memory and never reads them back from the database.
No request waits on a query, but two nodes that share a database do not see each other's changes. The open-source build has no mechanism to sync them, and Enterprise adds one.
State is stored in SQLite by default, in PostgreSQL 16 or later, or in a file-only config.json with no database. Bifrost installs through npx, Docker, or a Helm chart, and the same core can be embedded in a Go program as an SDK.
What the open-source build includes
The open-source build is a complete single-node gateway with no usage cap and no time limit. The repository is licensed Apache 2.0, is written mostly in Go, was created in March 2025, and had 9,577 GitHub stars on November 16, 2026. It includes:
- An OpenAI-compatible endpoint, plus drop-in endpoints for the OpenAI, Anthropic, and Google GenAI SDKs, so existing code changes only its base URL.
- Retries and fallbacks that separate per-key failures, such as a
429, from provider outages, rotate keys, and then move down a fallback chain. LLM failover explains why that classification matters. - Routing rules written as CEL expressions, a complexity router that sends easy requests to cheaper models, and session affinity that keeps a conversation on one provider and key. LLM routing compares the strategies.
- Virtual keys with budgets and rate limits, nested under teams and customers, a hierarchy explained in how virtual keys work.
- Exact-match and semantic caching, backed by Redis or Valkey, Qdrant, Weaviate, or Pinecone.
- MCP tool filtering, per-user OAuth to upstream servers, and Code Mode, in which the model writes a short Python script that runs in a sandbox. MCP code mode covers the technique.
- Prometheus metrics, OpenTelemetry traces, and a built-in log viewer.
- The Bifrost CLI, which launches coding agents through the gateway, the setup covered in running Claude Code through a gateway.
Releases move fast. The project ships a patch every two to three days and a minor version every three to four weeks. The gateway went from v2.0.0 on August 26, 2026, to v2.5.1 on November 10, 2026.
Open source vs Enterprise: what each tier includes
Enterprise is a strict superset of the open-source build that adds shared state across nodes, identity, security controls, and support. Each row below was checked against the docs page for that feature in November 2026.
| Capability | Open source | Enterprise |
|---|---|---|
| OpenAI-compatible API and drop-in SDK endpoints | Yes | Yes |
| Retries, fallbacks, load balancing, CEL routing rules | Yes | Yes |
| Virtual keys, budgets, rate limits, semantic caching | Yes | Yes |
| MCP gateway, Code Mode, per-user OAuth | Yes | Yes |
| Agent gateway for A2A agents | Yes, access by virtual key | Adds access profiles, projects, and user attribution |
| Prometheus, OpenTelemetry, built-in logs | Yes | Yes |
| Connectors for Datadog, Kafka, BigQuery, Pub/Sub, and Splunk | No | Yes |
| Several nodes with shared state | No. Nodes share a read-only config.json | Yes, peer-to-peer clustering |
| Adaptive routing and circuit breaker | No | Yes |
| SSO over OIDC, SCIM provisioning, RBAC | No. One dashboard password | Yes |
| Guardrails and redaction | No | Yes |
| Signed audit logs and log offload to object storage | No | Yes |
| Keys held in Vault or a cloud secret manager | No | Yes |
| MCP token exchange with your identity provider | No | Yes |
| Config and log database | SQLite or PostgreSQL | PostgreSQL only |
| Bifrost Edge | No | Add-on, priced per device |
| Support | Community, on Discord | Commercial, with an SLA |
Shared state is the technical line. Enterprise nodes form a peer-to-peer cluster that syncs configuration, usage counters, and rate-limit state as they change, while open-source nodes share nothing at runtime.
Identity and security are the lines a review board cares about. The open-source dashboard has one admin username and password, while Enterprise signs users in through Okta, Microsoft Entra, Keycloak, Google Workspace, or any OIDC provider. Guardrails, which cover secrets detection, PII redaction, and policies enforced by a judge model, are Enterprise only.
Enterprise ships as its own container images, each built on a pinned open-source release. It requires PostgreSQL, so a SQLite install has to be migrated before the upgrade.
How Bifrost pricing works
Bifrost pricing is a model with no public numbers: the open-source build is free, Enterprise is quoted per customer, and Edge is priced per device on top of Enterprise.
| Product | Price model | What to know |
|---|---|---|
| Open source | Free under Apache 2.0 | Self-hosted, with community support |
| Enterprise | Custom pricing | 14-day free trial on an Enterprise license |
| Bifrost Edge | Per device | Requires the Enterprise gateway, which is priced separately |
The pricing page publishes no Enterprise figures and does not say what a quote is based on, so ask whether it scales with nodes, traffic, or users. The trial is requested through a form on that page. The per-device model for Edge is stated on the Edge page.
Some costs sit outside any license. Model usage is billed by your providers on your own keys, because Bifrost resells nothing. The infrastructure is yours, and the Enterprise sizing guide recommends at least three gateway pods with 4 vCPU and 16 GB of RAM each, plus PostgreSQL with a standby. Someone on your team also owns upgrades and the pager.
Performance: what the published benchmarks measured
The headline number, 11 microseconds of added overhead per request at 5,000 requests per second, comes from Maxim AI's own published benchmarks, as do the other results below.
| Test | Conditions | Result |
|---|---|---|
| Internal overhead | 5,000 requests per second, mocked OpenAI upstream, one t3.xlarge (4 vCPU, 16 GB) | 11 microseconds per request, 100% success |
| Same test, smaller instance | One t3.medium (2 vCPU, 4 GB) | 59 microseconds per request, 100% success |
| Gateway overhead against LiteLLM | 60 ms mock upstream | 0.99 ms for Bifrost, 40 ms for LiteLLM |
| Load test against LiteLLM | 500 concurrent users for 60 seconds, t3.medium, us-east-1 | 424 against 44.84 requests per second, p99 of 1.68 s against 90.72 s |
The conditions limit what these numbers show. The 11-microsecond figure excludes JSON marshaling and the provider call and was measured against a mock, so it describes the gateway's internal work, not end-to-end latency. The repository's own description gives a looser bound of under 200 microseconds at 5,000 requests per second.
Speed is partly bought with memory. The t3.xlarge run peaked at 3,340 MB with an initial pool size of 15,000, a setting you can lower to save memory at some cost in speed.
Maxim AI also ran both sides of the LiteLLM comparison. A compiled Go proxy should beat a Python one under concurrency, but the size of the gap on your workload is yours to measure. The docs include a guide to running the benchmarks yourself.
How to try Bifrost in five minutes
One command starts a working gateway with a web UI, and it needs no configuration file. Both commands below are the ones in the quickstart.
# Start the gateway on http://localhost:8080
npx -y @maximhq/bifrost
# Or with Docker, keeping configuration across restarts
docker run -p 8080:8080 -v $(pwd)/data:/app/data maximhq/bifrostOpen http://localhost:8080, add a provider API key in the UI, and send a request. The model name carries the provider as a prefix.
curl -X POST http://localhost:8080/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-4o-mini",
"messages": [{"role": "user", "content": "Hello, Bifrost!"}]
}'An existing application needs one change. Point the OpenAI SDK's base URL at http://localhost:8080/openai and keep the rest of the code.
How Bifrost compares with LiteLLM, OpenRouter, and Cloudflare AI Gateway
The gateways most often weighed against Bifrost make three different trades: LiteLLM is the open-source peer, OpenRouter removes the infrastructure, and Cloudflare AI Gateway adds controls to provider accounts you already have.
Bifrost vs LiteLLM. LiteLLM is a Python SDK and proxy with one OpenAI-format API for more than 100 providers, MIT-licensed outside its enterprise/ directory. The case for Bifrost is throughput under load, in the vendor benchmark above, and Edge if employee devices are in scope. The case for LiteLLM is the longer provider list and a free tier that reaches further in two places: its open proxy can be configured with guardrails, and its docs offer SSO free for up to five users. Both need Enterprise in Bifrost. A migration tool recreates LiteLLM models, keys, teams, and virtual keys in Bifrost, and LiteLLM alternatives has the full comparison.
Bifrost vs OpenRouter. OpenRouter is a hosted aggregator: hundreds of models behind one endpoint and one bill, with nothing to run. Its FAQ states that inference is priced at the providers' rates with no markup, and that credit purchases carry a 5.5% fee. Bifrost is the opposite trade: you operate it, prompts stay inside your network, and you hold your own provider contracts. OpenRouter alternatives covers when each side wins.
Bifrost vs Cloudflare AI Gateway. Cloudflare AI Gateway is a hosted gateway on Cloudflare's network, available on all plans, that adds analytics, logging, caching, rate limiting, and model fallback to your provider calls. It fits teams that want visibility with no servers to manage. Requests pass through Cloudflare, so it does not meet a requirement that prompts stay in your network.
Enterprise AI gateways and open-source AI gateways compare the wider field.
Limits and trade-offs
The main limits are that the controls large companies ask for first are paid, the open-source build is in practice one stateful node, and you operate all of it yourself.
If a security review requires SSO on the admin console, RBAC, guardrails, or audit logs, treat Bifrost as a commercial product. None of those is in the open-source build.
High availability is limited in open source. Running several open-source nodes against one PostgreSQL database is not supported, and the documented multi-node pattern is a shared file-only config with a restart for every change. The same page puts a single open-source instance at around 3,000 to 5,000 requests per second.
There is no hosted Bifrost. You own deployment, upgrades, and on-call, and the release pace means frequent upgrades. Version 2.0.0, in August 2026, was a breaking release with its own migration guide.
Several pieces are still moving as of November 2026. Warp, the dashboard assistant, is labeled alpha. WASM plugins are deprecated, and custom Go plugins need a dynamically linked build, which is not the default binary. Edge governs a published list of applications. Its browser coverage is chatgpt.com and claude.ai, and its Gemini CLI support is deprecated. Bifrost was open-sourced in 2025, so its track record is shorter than LiteLLM's, which dates to 2023.
The pricing page lists SAML next to OIDC, while the setup guides cover OIDC and SCIM only. Confirm anything you depend on during the trial, including the support matrix, because coverage differs by provider.
Who Bifrost suits, and who should pick something else
Bifrost suits teams that want to own the gateway and have someone to run it. It is the wrong choice when nobody will operate it, or when a single SDK already does the job.
| Your situation | Better fit |
|---|---|
| Several teams and providers, a platform team, prompts that must stay in your network | Bifrost open source, then Enterprise for SSO or more than one stateful node |
| Agents whose tool calls and agent calls need the same rules as model calls | Bifrost |
| AI tools on employee laptops that need budgets and guardrails | Bifrost Enterprise with Edge |
| One service calling one provider | The provider's SDK, with no gateway |
| Nobody to operate a proxy, and prompts may pass through a third party | A hosted aggregator such as OpenRouter |
| Already on Cloudflare, and logs, caching, and rate limits are enough | Cloudflare AI Gateway |
| The longest provider list, or a Python stack | LiteLLM |
| An API gateway such as Kong already in production | That gateway's AI features first |
For regulated buyers, Maxim AI's reference page lists SOC 2 Type II, ISO 27001, HIPAA, and GDPR, and states that deployments send no telemetry back, so prompts, responses, and logs stay in your infrastructure.
Testing the fit is cheap. Run the open-source build against real traffic for a week, record p99 added latency with streaming on, and note which Enterprise rows you would need in production. If none apply, the free build is enough. If SSO or clustering is on the list, use those rows as the test plan for the Enterprise trial.
Frequently asked questions
What is the Bifrost AI gateway?
Bifrost is an open-source AI gateway built by Maxim AI. It is a self-hosted proxy, written in Go, that gives applications one OpenAI-compatible API for many model providers and applies keys, budgets, routing, and logging in one place. The same binary also works as an MCP gateway and an agent gateway.
Is Bifrost open source?
Yes. The core gateway is on GitHub under the Apache 2.0 license and is free to self-host, with no usage cap. Bifrost Enterprise is a separate commercial build on top of that core, which adds clustering, single sign-on, RBAC, guardrails, audit logs, and support.
How much does Bifrost cost?
The open-source build is free. Bifrost Enterprise is custom-priced with a 14-day free trial, and no price list is public as of November 2026. Bifrost Edge is priced per device and requires the Enterprise gateway. You also pay your model providers directly and run the infrastructure yourself.
What is the difference between Bifrost open source and Bifrost Enterprise?
Open source is the gateway itself: routing, failover, virtual keys, budgets, caching, the MCP gateway, and metrics. Enterprise adds a cluster that shares state between nodes, sign-in through an identity provider, role-based access, guardrails, and audit logs. Enterprise requires PostgreSQL, while open source also runs on SQLite.
Is Bifrost faster than LiteLLM?
In Maxim AI's published benchmarks it is. At 500 concurrent users on a t3.medium instance, Bifrost handled 424 requests per second against 44.84 for LiteLLM, with a p99 latency of 1.68 seconds against 90.72 seconds. Those are a vendor's numbers, so repeat the test on your own traffic.
Is the Bifrost AI gateway related to other projects called Bifrost?
No. Several unrelated projects share the name, including OpenStack Bifrost, a set of Ansible playbooks for provisioning bare-metal machines, and Bifrost, a liquid staking protocol. The AI gateway is the project at github.com/maximhq/bifrost, documented at docs.getbifrost.ai and built by Maxim AI.
Sources
- 01Official information about BifrostMaxim AI
- 02Bifrost pricingMaxim AI
- 03BifrostGitHub
- 04Setting up the gatewayBifrost docs
- 05Bifrost Enterprise GatewayBifrost docs
- 06Multinode deploymentBifrost docs
- 07Request flowBifrost docs
- 08Bifrost benchmarksMaxim AI
- 09Benchmarks on t3.xlargeBifrost docs
- 10LiteLLMGitHub
- 11FAQOpenRouter docs
- 12AI GatewayCloudflare docs