← Back to Leaderboard
Bmaximhq

maximhq/bifrost

Self-hosted Go gateway for routing and governing multi-provider LLM traffic

Engineering Health (Methodology)
A+ · 99/100
Maintenance Activity
● Updated today
Latest Release
ent-v2.8.0-base
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption24/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 10,196
24h Growth
+9
7d Growth
+125
Forks
1,701

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

maximhq/bifrost Star History (2025-05-14 - 2026-12-04) ALL-TIME STAR HISTORY (2025-05 – 2026-12) +10.2k in 569d · avg +18/day 10.8k 5.4k 0 2025-05-14: ★ 12025-06-21: ★ 1092025-07-26: ★ 2052025-08-30: ★ 4712025-10-04: ★ 5892025-11-08: ★ 9672025-12-13: ★ 1,2762026-01-17: ★ 1,6772026-02-21: ★ 2,3962026-03-28: ★ 3,2092026-05-02: ★ 4,4252026-06-06: ★ 5,4442026-07-11: ★ 6,3522026-08-15: ★ 7,2322026-09-19: ★ 8,0982026-10-24: ★ 9,0362026-12-04: ★ 10,196 ★ 10.2k 2025-05 2026-02 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Bifrost is a Go gateway rather than a model-serving runtime. transports/bifrost-http exposes an OpenAI-compatible HTTP API and provider-specific integration routes, with a management UI under ui/. Requests enter the shared core/, whose schemas and provider adapters form the boundary between the client API and upstream inference. Go applications can also embed github.com/maximhq/bifrost/core without routing through a separate HTTP gateway.

The repository separates middleware from persistence. plugins/ contains governance, logging, telemetry, and semantic caching; framework/ defines configuration, log, and vector storage abstractions. MCP adds a separate integration surface for external tools. This separation matters operationally: inference stays with the configured backend, while the gateway becomes the place to manage routing policy, credentials, and request telemetry.

Key Capabilities & Differentiators

A single HTTP interface can front OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, and Ollama, among other backends. Bifrost supports text, image, and audio workflows and streaming, subject to the upstream model’s capabilities. Routing can distribute traffic across API keys and providers, then fall back to alternate providers or models. Virtual keys centralize access, rate limits, usage tracking, and budgets; semantic caching can reuse responses to sufficiently similar requests.

In the 5,000 RPS benchmark, added gateway latency was 11 µs on t3.xlarge and 59 µs on t3.medium, while average end-to-end latency including the provider was 1.61 s and 2.12 s, respectively. Those are distinct measurements: use the former to evaluate proxy cost, not as a forecast for user-visible latency. Prometheus metrics, distributed tracing, and request logs give operators ways to measure their own deployment.

Trade-offs & Limitations

Compared with calling the OpenAI API directly, Bifrost provides a common control point for multiple providers, credentials, and budgets. In return, it adds a service to operate and does not replace upstream accounts or billing. API compatibility also does not imply model equivalence: validate tool calls, streaming, multimodal inputs, and provider-specific fields for each model you intend to put on a fallback path.

Treat retries, fallback, and caching as policy decisions rather than automatic wins. Retries can increase tail latency and upstream spend; fallback can change answer behavior; semantic reuse is a poor default when answers depend on user-specific or rapidly changing context. The repository is Apache-2.0 licensed, but advanced capabilities such as clustering, adaptive load balancing, guardrails, and the MCP gateway are presented as enterprise features. Confirm the boundary before committing to an architecture.

Hardware & Deployment Guide

Use npx -y @maximhq/bifrost for a local trial, or run the maximhq/bifrost image with host port 8080 mapped to container port 8080. Mount a host directory at /app/data if gateway data should survive container recreation. Configure providers through the UI, API, or configuration file, and supply upstream credentials through environment variables or deployment secrets. Self-hosting the gateway does not make cloud inference offline; Ollama provides a local backend option.

For Kubernetes, the repository includes Helm charts; helm-chart-v2.1.52 packages Bifrost v2.1.52. The separate core/v1.17.1 release preserves thinking data on prefix-binding 400 errors and forwards block_binding to Azure, changes worth checking if those paths are in use. For production, size the gateway against concurrent streams, logging and cache workloads, and observed tail latency. Verify edition requirements before designing around clustering or adaptive load balancing.

Provider adapters: A shared Go core normalizes requests across hosted providers and Ollama behind an OpenAI-compatible HTTP interface.
Traffic policy: Distribute requests across configured credentials and providers, with fallback across providers or models.
Inference governance: Virtual keys support access control, usage tracking, rate limits, and team or customer budgets.
Middleware and storage: Semantic caching, logging, and telemetry are plugins; configuration, logs, and vectors have separate storage abstractions.
Tool integration: MCP connects models to external tools; the MCP gateway is listed separately among enterprise capabilities.
Benchmark context: At 5,000 RPS, measured gateway overhead was 11 µs on t3.xlarge and 59 µs on t3.medium, excluding upstream inference latency.
Best For

Platform teams serving several applications through multiple LLM providers that need shared routing, budgets, virtual keys, and observability.

Skip If

One provider already meets your needs, you need a runtime that executes model weights, or you cannot justify operating another service on the request path.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release ent-v2.8.0-base (2026-12-02) shipped after this reviewMethodology

Quick Start & Installation

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

# Or use Docker
docker run -p 8080:8080 maximhq/bifrost

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
bifrost ★10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic
gpt-load7.2k+6GoMITSelf-hosted Go gateway for routing LLM traffic across providers and credentials
freellmapi62k+2.6kTypeScriptMITSelf-hosted LLM gateway for routing across free tiers and custom endpoints
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/maximhq/bifrost.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

maximhq/bifrost Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about bifrost

How do I integrate Bifrost without rewriting my OpenAI client?

Point an existing OpenAI SDK at the gateway’s /openai integration route and configure the upstream provider in Bifrost. The gateway also exposes /v1/chat/completions directly, with provider-qualified model names such as openai/gpt-4o-mini. Test the endpoints, streaming behavior, and request fields your application uses before switching production traffic.

Does the gateway need a GPU, and how should I size it?

Forwarding requests to hosted inference providers does not require model-weight VRAM on the gateway host. Size the Go service for concurrent requests and streams, then measure CPU, memory, and tail latency with your actual logging and cache settings. If you route to a local Ollama backend, size that inference host separately for its models and concurrency.

Can we self-host Bifrost commercially, and does that keep prompts private?

Apache-2.0 permits commercial use and self-hosting, with notice and license obligations when redistributing covered software. Check enterprise feature terms and upstream provider terms separately. Hosting the gateway yourself controls where the gateway runs, not where cloud-routed prompts are processed; review upstream data handling and gateway log retention independently.

When is Bifrost worth adding instead of calling the OpenAI API directly?

Use the OpenAI API directly if one provider meets your reliability, governance, and feature requirements and you want fewer components to operate. Add Bifrost when multiple providers, virtual keys, shared budgets, or centrally managed fallback solve a concrete problem. Provider usage charges and feature differences still apply.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining maximhq/bifrost? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature maximhq/bifrost on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare