Bifrost is an AI gateway that exposes one OpenAI-compatible API across many model providers. It adds failover, load balancing, semantic caching, virtual keys, budgets and an MCP gateway, with a web UI for configuration.
Overview
Bifrost is an AI gateway that sits between applications or agents and model providers such as OpenAI, Anthropic, AWS Bedrock and Google Vertex. It presents a single OpenAI-compatible API for a large catalog of models, and it also supports custom-deployed models. Switching models or providers does not require code changes.
Reliability and cost control features include automatic failover between providers, load balancing across API keys, semantic caching, and budgets that can be set per team, project, model or virtual key. Virtual keys carry independent budgets and access control, so different use cases can be separated. Governance features include audit logs and SSO-based access control.
Bifrost also works as an MCP gateway. It centralizes MCP tool connections, authentication and policy enforcement so agents can use tools through one place. Guardrails can block unsafe outputs and enforce compliance. Observability is built in through OpenTelemetry support and a dashboard for real-time monitoring and analytics.
It can be started with a single npx command and configured through a web UI. It can be used as an HTTP gateway from any language or as a Go SDK embedded in an application. It can also replace an existing SDK's base URL, with compatibility for OpenAI, Anthropic, LiteLLM, Google GenAI, LangChain and others. The project reports about 11 µs of overhead per request at 5,000 requests per second in its benchmarks. Enterprise deployments add features such as adaptive load balancing, clustering and in-VPC deployment.
Key features
- OpenAI-compatible API for many providers and models
- Automatic provider failover
- Load balancing across keys
- Semantic caching
- Virtual keys with budgets and access control
- MCP gateway
- Guardrails
- OpenTelemetry observability and web dashboard
Use cases
- Unifying access to multiple LLM providers
- Keeping AI apps available through provider failover
- Controlling spend per team or key
- Centralizing MCP tool access for agents
- Monitoring LLM usage and costs