maximhq/bifrost

▲ 34 stars today★ 8,284⑂ 1,272

Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails, 1000+ models support & <100 µs overhead at 5k RPS.

About maximhq/bifrost

maximhq/bifrost is an open-source project on GitHub, mainly written in Go. Fastest enterprise AI gateway (50x faster than LiteLLM) with adaptive load balancer, cluster mode, guardrails It currently holds 8,284 stars and 1,272 forks with 1,051 open issues, and was last pushed on 2026-09-23 (repository created 2025-03-19).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #92 with 34 new stars today.

GitHub Repository Details

Repository maximhq/bifrost · default branch dev · size 979174 KB · watchers 33 · source: GitHub REST API and repository README

README

Bifrost AI Gateway

https://github.com/maximhq/bifrost/blob/HEAD/maximhq%2Fbifrost | Trendshift

Discord badge codecov Docker Pulls https://github.com/maximhq/bifrost/blob/HEAD/Run In Postman Artifact Hub CodSpeed License

The fastest way to build AI applications that never go down

Bifrost is a high-performance AI gateway that unifies access to 23+ providers (OpenAI, Anthropic, AWS Bedrock, Google Vertex, and more) through a single OpenAI-compatible API. Deploy in seconds with zero configuration and get automatic failover, load balancing, semantic caching, and enterprise-grade features.

Quick Start

Get started

Go from zero to production-ready AI gateway in under a minute.

Step 1: Start Bifrost Gateway

# Install and run locally
npx -y @maximhq/bifrost

Or use Docker

docker run -p 8080:8080 maximhq/bifrost

Step 2: Configure via Web UI

# Open the built-in web interface
open http://localhost:8080

Step 3: Make your first API call

curl -X POST http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o-mini",
    "messages": [{"role": "user", "content": "Hello, Bifrost!"}]
  }'

That's it! Your AI gateway is running with a web interface for visual configuration, real-time monitoring, and analytics.

Complete Setup Guides:

---

Enterprise Deployments

Bifrost supports enterprise-grade, private deployments for teams running production AI systems at scale. In addition to private networking, custom security controls, and governance, enterprise deployments unlock advanced capabilities including adaptive load balancing, clustering, guardrails, MCP gateway, and other features designed for enterprise-grade scale and reliability.

https://github.com/maximhq/bifrost/blob/HEAD/Book a Demo
https://github.com/maximhq/bifrost/blob/HEAD/Book a Demo
Explore enterprise capabilities

---

Key Features

Core Infrastructure

Advanced Features

Enterprise & Security

Developer Experience

---

Repository Structure

Bifrost uses a modular architecture for maximum flexibility:

bifrost/
├── npx/                 # NPX script for easy installation
├── core/                # Core functionality and shared components
│   ├── providers/       # Provider-specific implementations (OpenAI, Anthropic, etc.)
│   ├── schemas/         # Interfaces and structs used throughout Bifrost
│   └── bifrost.go       # Main Bifrost implementation
├── framework/           # Framework components for data persistence
│   ├── configstore/     # Configuration storage backends
│   ├── logstore/        # Request logging storage backends
│   └── vectorstore/     # Vector storages
├── transports/          # HTTP gateway and other interface layers
│   └── bifrost-http/    # HTTP transport implementation
├── ui/                  # Web interface for HTTP gateway
├── plugins/             # Extensible plugin system
│   ├── governance/      # Budget management and access control
│   ├── jsonparser/      # JSON parsing and manipulation utilities
│   ├── logging/         # Request logging and analytics
│   ├── maxim/           # Maxim's observability integration
│   ├── mocker/          # Mock responses for testing and development
│   ├── semanticcache/   # Intelligent response caching
│   └── telemetry/       # Monitoring and observability
├── docs/                # Documentation and guides
└── tests/               # Comprehensive test suites

---

Getting Started Options

Choose the deployment method that fits your needs:

1. Gateway (HTTP API)

Best for: Language-agnostic integration, microservices, and production deployments

# NPX - Get started in 30 seconds
npx -y @maximhq/bifrost

Docker - Production ready

docker run -p 8080:8080 -v $(pwd)/data:/app/data maximhq/bifrost

Features: Web UI, real-time monitoring, multi-provider management, zero-config startup

Learn More: Gateway Setup Guide

2. Go SDK

Best for: Direct Go integration with maximum performance and control

go get github.com/maximhq/bifrost/core

Features: Native Go APIs, embedded deployment, custom middleware integration

Learn More: Go SDK Guide

3. Drop-in Replacement

Best for: Migrating existing applications with zero code changes

# OpenAI SDK
  • base_url = "https://api.openai.com"
+ base_url = "http://localhost:8080/openai"

Anthropic SDK

  • base_url = "https://api.anthropic.com"
+ base_url = "http://localhost:8080/anthropic"

Google GenAI SDK

  • api_endpoint = "https://generativelanguage.googleapis.com"
+ api_endpoint = "http://localhost:8080/genai"

Learn More: Integration Guides

---

Performance

Bifrost adds virtually zero overhead to your AI requests. In sustained 5,000 RPS benchmarks, the gateway added only 11 µs of overhead per request.

| Metric | t3.medium | t3.xlarge | Improvement | |--------|-----------|-----------|-------------| | Added latency (Bifrost overhead) | 59 µs | 11 µs | -81% | | Success rate @ 5k RPS | 100% | 100% | No failed requests | | Avg. queue wait time | 47 µs | 1.67 µs | -96% | | Avg. request latency (incl. provider) | 2.12 s | 1.61 s | -24% |

Key Performance Highlights:

Complete Benchmarks: Performance Analysis

---

Documentation

Complete Documentation: https://docs.getbifrost.ai

Quick Start

Features

Integrations

Enterprise

---

Need Help?

Join our Discord for community support and discussions.

Get help with:

---

Contributing

We welcome contributions of all kinds! See our Contributing Guide for:

For development requirements and build instructions, see our Development Setup Guide.

---

License

This project is licensed under the Apache 2.0 License - see the LICENSE file for details.

Built with ❤️ by Maxim

GitHub Stars & Activity

8,284Stars
1,272Forks
1,051Open issues
GoLanguage

GitHub Popularity

GitHub stars8,284
Forks1,272
Open issues1,051
Primary languageGo
LicenseApache-2.0
Stars gained today34
Created2025-03-19
Last pushed2026-09-23

Trending History

Daily boardrank #92 · ▲ 34 stars

Related GitHub Projects

1

router-for-me / CLIProxyAPI

Go★ 53,020⑂ 8,006▲ 179 stars
2

projectdiscovery / nuclei

Go★ 31,464⑂ 3,886▲ 37 stars
3

google / ax

Go★ 8,878⑂ 417▲ 1,542 stars
4

CarterPerez-dev / Cybersecurity-Projects

Go★ 7,320⑂ 1,070▲ 50 stars
5

flexprice / flexprice

Go★ 6,930⑂ 995▲ 157 stars
6

weave-os / router

Go★ 4,966⑂ 136▲ 188 stars
7

agent-substrate / substrate

Go★ 3,422⑂ 407▲ 560 stars
8

zzet / gortex

Go★ 1,721⑂ 162▲ 71 stars

More Trending Repositories