Bifrost

Unify access to multiple AI providers through a single OpenAI compatible API with built in governance.

Bifrost screenshot 1

Bifrost is an open-source AI gateway and server. It unifies access to over 20 providers, including OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Cerebras, Cohere, Mistral, Ollama, and Groq, through a single OpenAI-compatible API. The software is deployed as a server via Docker or NPX, or integrated directly into Go applications using its native SDK.

The gateway acts as a proxy between AI applications and various large language model providers. It allows developers to replace existing API endpoints with a single URL to manage multiple models and providers without changing application code. It includes a built-in web interface for visual configuration, real-time monitoring, and analytics, enabling a transition from local setup to production in under a minute.

Key features

  • Unified OpenAI-compatible API for multiple providers
  • Automatic failover and load balancing across API keys
  • Model Context Protocol (MCP) for external tool integration
  • Semantic caching based on response similarity
  • Hierarchical budget management and usage tracking
  • OIDC and OAuth 2.0 user provisioning
  • Native Prometheus metrics and distributed tracing
  • Support for multimodal inputs including text, images, and audio
  • Extensible middleware architecture for custom plugins

Bifrost is built with a modular architecture in Go, featuring separate components for provider implementations, configuration stores, and transport layers. It is designed for teams requiring high-throughput LLM operations, offering features like clustering and secrets management for production environments. The system supports a wide range of SDK integrations, including Langchain and LiteLLM, and allows for drop-in replacements of OpenAI, Anthropic, and Google GenAI APIs. The architecture includes a dedicated framework for data persistence, utilizing config stores, log stores, and vector stores to manage the flow of AI requests.

This tool serves as a governance and observability layer for generative AI infrastructure, focusing on reliability, cost control, and the reduction of provider lock-in.

Last Modified
Software TypeWeb App / Server
Platform
Last Activity14 days ago
Repository Age1 year
LicenseApache-2.0
Open Source Software.io

Join our newsletter to get shiny new open source software delivered to your inbox. Unsubscribe anytime.