About
Open-source AI gateway: one OpenAI-compatible API for every model provider. Open-source alternative to OpenRouter and Vercel AI Gateway.
Catalogue
No. 411
Category
AI
GitHub stars
★ 10k
Bifrost website

Overview

Bifrost is a high-performance AI gateway from Maxim AI. It puts 23+ providers, including OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Mistral, Groq and Ollama, behind a single OpenAI-compatible API. You start it with npx or Docker and configure it from a built-in web interface. It also works as an MCP gateway, and there's a Go SDK for using it directly in code.

What it does well

Requests fail over automatically between providers and models, and load balancing spreads them across API keys and providers. Semantic caching answers similar requests from cache to cut cost and latency. Virtual keys carry budgets and rate limits per team or customer, and the gateway exports Prometheus metrics, distributed traces and logs. Existing OpenAI, Anthropic or Google GenAI code switches over by changing one line, the base URL. Some features, such as clustering, adaptive load balancing and guardrails, are part of the enterprise deployment.

Why it’s in the collection

Bifrost lets you switch or combine model providers without touching your app code, and keeps spend under control with budgets per key. It's Apache-2.0 licensed.

On GitHub

Stars
9,969
Forks
1,648
Commits
9,406
Repository
maximhq/bifrost

Languages

  • Go 78.2%
  • TypeScript 13.9%
  • JavaScript 4.4%
  • Python 1.8%
  • Other 1.7%

Compared with