Skip to content

Bifrost

Self-hosted AI gateway that routes one OpenAI-style API to 23+ LLM providers

Permissive (OSI) · Apache-2.0 AI-native

Listed by , founder & editor

84

Health

Thriving

Overview

Stars

9,990

Last commit

today

Nov 2026

Repository age

1 year

since Mar 2025

Latest version

helm-chart-v2.1.49

Nov 2026

Contributors

–

16 active in 90 days

Releases

25

last 12 months

Language

Go

Bifrost is an AI gateway written in Go. It puts a single OpenAI-compatible API in front of more than 23 providers, including OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Mistral, Groq and Ollama. You point your existing SDK at it and change the base URL.

It handles automatic failover between providers and models, load balancing across multiple API keys, and semantic caching to cut repeat requests. Governance features cover usage tracking, rate limits, access control and hierarchical budgets using virtual keys, teams and customers. It also acts as an MCP gateway so models can call external tools. Observability comes from Prometheus metrics, distributed tracing and logging, and a plugin system lets you add custom middleware.

You run it with npx or a Docker image, then configure it in a built-in web UI, through an API or with a file. A Go SDK is available for direct integration. It is licensed under Apache-2.0. Some capabilities, such as adaptive load balancing, clustering and guardrails, belong to enterprise deployments. It suits teams that want a self-hosted alternative to hosted LLM routing services.

Who it's for

Platform teams serving several LLM providers to internal apps

One OpenAI-compatible endpoint with virtual keys, budgets and rate limits gives you central control over spend and access.

Skip if: You only call a single provider from one app and need no routing or budgets.

Developers building apps that must survive provider outages

Automatic fallbacks and key-level load balancing keep requests flowing when one provider or key fails.

Skip if: You prefer a hosted gateway and do not want to run another service.

Go teams that want to embed gateway logic

A Go SDK lets you integrate directly instead of running a separate HTTP service.

Skip if: Your stack has no Go code and you only need an HTTP proxy.

The problem it solves

Using several LLM providers means different APIs, separate keys and no single view of cost or failures. When a provider goes down, your app goes down with it. A gateway gives you one endpoint, fallbacks and usage controls.

Strengths

  • One OpenAI-compatible API covers 23+ providers
  • Automatic failover and load balancing across keys and providers
  • Virtual keys with hierarchical budgets and rate limits
  • Native Prometheus metrics and distributed tracing
  • Starts with npx or one Docker command, with a web UI

Trade-offs

  • Guardrails, clustering and adaptive load balancing are enterprise features
  • Young project, first commit in 2025
  • Helm chart releases are frequent, so expect fast-moving versions

Self-host Bifrost

Self-hostable
Yes

Quick start

npx -y @maximhq/bifrost

docker run -p 8080:8080 maximhq/bifrost

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Bifrost free and open source?

Yes. The code is under the Apache-2.0 license. Some advanced features are offered in enterprise deployments.

Can I self-host it?

Yes. Run it with npx or the maximhq/bifrost Docker image, which listens on port 8080 with a web UI.

Which providers does it support?

More than 23, including OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Cerebras, Cohere, Mistral, Ollama and Groq.

Does it support MCP?

Yes. It works as a Model Context Protocol gateway so models can use external tools.

Similar tools in LLM gateways and routers

Manifest

LLM gateways and routers

Self-hosted OpenAI-compatible gateway that routes agent requests across models and keys

7.7k 534 today Thriving MIT

Replaces OpenRouter

ClawRouter

LLM gateways and routers

Local LLM router that sends each request to the cheapest capable model for AI agents

6.7k 656 today Thriving MIT

oh-my-cpa

LLM gateways and routers

Self-hosted web console for monitoring and routing traffic through CLIProxyAPI

487 55 today Thriving MIT

agentgateway

LLM gateways and routers

Rust proxy that routes and secures LLM, MCP and agent-to-agent traffic

6.4k 1.1k today Thriving Apache-2.0

busbar

LLM gateways and routers

Self-hosted Rust gateway routing LLM traffic with budgets, failover and audit logs

241 25 2 months ago Active Apache-2.0

Replaces OpenRouter

optillm

LLM gateways and routers

OpenAI-compatible proxy that adds reasoning techniques like MOA and MCTS to any LLM

4.3k 399 8 days ago Thriving Apache-2.0