Back to directory

AI & Machine Learning · AI Development Platforms

Bifrost

An OpenAI-compatible gateway for providers, agents, and MCP

Bifrost is an Apache-2.0 Go gateway for applications that need one OpenAI-compatible API across more than 20 model providers. It supports routing, failover, budgets, caching, observability, and MCP controls. The free OSS edition is self-managed, while Maxim offers a custom-priced Enterprise edition with a 14-day trial.

Key facts

License
Apache-2.0
Main language
Go, TypeScript
Maintainer
Maxim AI
Latest release
v2.3.2, October 20, 2026
GitHub stars
9k, October 2026
Hosted option
None published, Enterprise is custom-priced

What Bifrost is

Bifrost is an open-source AI gateway maintained by Maxim AI. The repository began in 2025 and reached 9,002 stars and 1,441 forks by October 2026. Its README describes one OpenAI-compatible API for more than 23 providers and 10,000 models. The project targets developers and operators that need a shared control point for model access, routing, credentials, budgets, and request telemetry. Maxim AI backs the project and sells a separate Enterprise offering. The OSS edition is Apache-2.0 licensed and can run in a company's own infrastructure. Bifrost is therefore aimed at teams standardizing provider access across applications, rather than developers calling one model API directly.

How it works

Bifrost presents a single OpenAI-shaped endpoint for requests sent to providers such as OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Mistral, Groq, Ollama, and vLLM. An operator starts the gateway, adds provider credentials through the web interface, and defines models, keys, routes, or fallback chains. Applications then change their base URL and continue using familiar SDK request formats. Virtual keys attach permissions, budgets, rate limits, and routing rules to teams or customers. The gateway can distribute traffic across provider keys, switch to another route after failures, cache semantically similar requests, and expose request metrics. MCP support adds tool filtering and code mode for agent workflows.

Architecture and recent releases

Bifrost is primarily written in Go, with a TypeScript web interface that presents its controls and information. Its modular layout covers providers, transports, storage, plugins, telemetry, and governance, separating these functional areas within the system. The HTTP gateway listens on port 8080, while SQLite stores configuration and request logs by default. PostgreSQL 16 or newer can provide configuration or log storage, and semantic caching can use an optional vector store. Deployment supports Docker, NPX, a Go SDK, and Kubernetes-oriented operation. Integrations include Prometheus, OpenTelemetry, Grafana, New Relic, Honeycomb, Datadog, cloud secret managers, and MCP clients. The October 2026 v2.3.2 release updated Go to 1.27.3 and included core and framework dependency updates.

License and pricing

The OSS edition costs nothing and uses the Apache License 2.0. That license permits commercial use, modification, private deployment, and redistribution, subject to its notice and license conditions. The published pricing page lists routing, fallbacks, virtual keys, budgets, caching, MCP gateway functions, plugins, and observability in OSS, describing the included capabilities. Enterprise adds guardrails, clustering, adaptive load balancing, SAML and OIDC, RBAC, vault integrations, audit logs, log exports, private networking, air-gapped deployment, and SLA-backed support for organizations needing those additional features. Maxim lists Enterprise as custom-priced and advertises a 14-day trial. The company does not publish a fixed hosted Bifrost subscription price, so prospective users should contact Maxim for Enterprise pricing and evaluate the OSS edition when its listed capabilities are sufficient.

Limitations and how it compares

Bifrost's main tradeoff is operational ownership: self-hosting requires control of credentials, authentication, TLS, storage, upgrades, and upstream provider contracts. These responsibilities mean teams must manage access, secure connections, retained data, software changes, and relationships with providers themselves. LiteLLM offers a broader Python-centered gateway approach, while Helicone focuses more heavily on request logging and observability. Portkey provides a proprietary managed gateway with routing and governance, and Cloudflare AI Gateway fits teams already using Cloudflare infrastructure. Bifrost is a strong choice for teams wanting Apache-2.0 code, a Go service, MCP controls, and a self-managed deployment. Teams seeking a fully hosted gateway should compare commercial services first, where management responsibilities can be handled externally.

Main features

  • Unified provider API. Routes OpenAI-compatible requests across OpenAI, Anthropic, Bedrock, Vertex, Azure, and other supported providers through a unified interface for convenient access.
  • Automatic failover. Switches incoming requests to configured backup providers or models whenever the selected primary route fails, helping maintain service continuity without changing routing configuration.
  • Virtual key governance. Applies permissions, budgets, rate limits, and routing policies consistently to virtual keys, teams, and customers across configured access contexts.
  • Semantic caching. Caches responses by semantic similarity, helping reduce repeated model calls, latency, and provider spend while preserving efficient reuse across similar requests.
  • MCP gateway. Filters MCP tools per virtual key and supports code mode for controlled agent tool access.

Self-hosting Bifrost

Bifrost supports Docker, an NPX-delivered binary, a Go SDK, and Kubernetes-oriented deployments. The HTTP gateway listens on port 8080 by default. SQLite stores configuration and request logs in the application directory unless PostgreSQL is selected. PostgreSQL 16 or newer with UTF8 encoding is required for PostgreSQL-backed stores. Semantic caching can use an optional vector store. Redis and object storage are not required by the documented setup. The project publishes no universal CPU or memory minimum. Operators should pin image versions, protect the dashboard with authentication, enable TLS, mount durable storage, and back up configuration and logs before upgrades.

Strengths

  • Apache-2.0 permits commercial self-hosting and modification.
  • One API covers many providers, models, fallbacks, and routing rules.
  • MCP filtering, virtual keys, budgets, and traces address agent operations.
  • Docker, Kubernetes, NPX, and Go support several deployment workflows.

Drawbacks

  • Production operation requires teams to manage credentials, TLS, persistence, and upgrades.
  • Enterprise-only controls include SSO, clustering, audit logs, and some compliance features.
  • The repository listed 1,342 open issues in October 2026.

What teams replace with it

Teams usually evaluate Bifrost when they want to move off Portkey, Cloudflare AI Gateway.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Bifrost

Frequently asked questions

Is Bifrost free?

The OSS edition is free and supports self-managed Docker, Kubernetes, Go binary, and NPX deployments. Maxim also sells Bifrost Enterprise under custom pricing. Enterprise adds guardrails, clustering, adaptive load balancing, SAML and OIDC identity integration, RBAC, audit logs, vault integrations, private-network deployment, log exports, and SLA-backed support. The Enterprise page advertises a 14-day trial.

Can a company use Bifrost commercially?

Yes. The repository states that Bifrost uses the Apache License 2.0. That license permits commercial use, modification, private operation, and redistribution when applicable license and notice requirements are met. The Enterprise edition is a separate commercial offering, so its terms govern paid features, support, and commercial services from Maxim.

How do I self-host Bifrost?

The setup guide supports Docker and an NPX-delivered binary, while the repository documents Go SDK installation. Kubernetes is listed as an OSS deployment option. The gateway exposes port 8080 and can start without configuration for evaluation. Production operation requires version pinning, dashboard authentication, TLS, and durable storage. PostgreSQL 16 or newer is required when PostgreSQL is used.

How does Bifrost compare with LiteLLM?

Both provide a unified model gateway with provider routing and OpenAI-compatible requests. Bifrost is written in Go and includes a web interface, virtual-key governance, MCP gateway functions, semantic caching, and built-in telemetry. LiteLLM is a closer choice for teams that prefer Python-based integration. The decision depends on language fit, MCP requirements, and deployment controls.

Does Bifrost keep model data private?

Bifrost is a gateway, not a model provider. Requests pass to the upstream provider selected by the route, so that provider's retention and handling policies still apply. Self-hosting keeps gateway configuration and telemetry under the operator's control. The Enterprise offering supports private-network, on-premises, and air-gapped deployment. Teams must configure logging, storage, credentials, and access controls for their policy.

Similar projects to compare

Sources

Last updated 2026-10-22.