No description
  • Go 75.3%
  • TypeScript 16.5%
  • Python 4%
  • Shell 1.2%
  • JavaScript 1.2%
  • Other 1.7%
Find a file
tathagat 7c9badfe59
Some checks failed
docker-compose.yml / docs: enhance deployment instructions for Bifrost on EC2 with Nginx reverse proxy setup (push) Failing after 0s
PR Test Notifier / check-skip (push) Has been cancelled
Release Migration CLI / check-version (push) Has been cancelled
Release CLI / check-version (push) Has been cancelled
Release Pipeline / check-skip (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Snyk checks / Snyk Open Source (deps) (push) Has been cancelled
Snyk checks / Snyk Code (SAST) (push) Has been cancelled
PR Test Notifier / Post Test Instructions (push) Has been cancelled
Release Migration CLI / test-bifrost-migration-cli (push) Has been cancelled
Release Migration CLI / release-bifrost-migration-cli (push) Has been cancelled
Release CLI / test-cli (push) Has been cancelled
Release CLI / release-cli (push) Has been cancelled
Release CLI / push-mintlify-changelog (push) Has been cancelled
Release Pipeline / detect-changes (push) Has been cancelled
Release Pipeline / test-core (push) Has been cancelled
Release Pipeline / approve-flaky-test-core (push) Has been cancelled
Release Pipeline / test-framework (push) Has been cancelled
Release Pipeline / test-plugins (push) Has been cancelled
Release Pipeline / test-bifrost-http (push) Has been cancelled
Release Pipeline / test-migrations (push) Has been cancelled
Release Pipeline / test-api-integrations (push) Has been cancelled
Release Pipeline / test-cost-accuracy (push) Has been cancelled
Release Pipeline / test-load-performance (push) Has been cancelled
Release Pipeline / test-docker-image-amd64 (push) Has been cancelled
Release Pipeline / test-docker-image-arm64 (push) Has been cancelled
Release Pipeline / core-release (push) Has been cancelled
Release Pipeline / framework-release (push) Has been cancelled
Release Pipeline / plugins-release (push) Has been cancelled
Release Pipeline / bifrost-http-prep (push) Has been cancelled
Release Pipeline / build-binaries-x86 (push) Has been cancelled
Release Pipeline / build-binaries-arm64 (push) Has been cancelled
Release Pipeline / bifrost-http-release (push) Has been cancelled
Release Pipeline / docker-build-amd64 (push) Has been cancelled
Release Pipeline / docker-build-arm64 (push) Has been cancelled
Release Pipeline / docker-manifest (push) Has been cancelled
Release Pipeline / docker-build-ubi9-amd64 (push) Has been cancelled
Release Pipeline / docker-build-ubi9-arm64 (push) Has been cancelled
Release Pipeline / docker-manifest-ubi9 (push) Has been cancelled
Release Pipeline / push-mintlify-changelog (push) Has been cancelled
Release Pipeline / notify (push) Has been cancelled
docs: enhance deployment instructions for Bifrost on EC2 with Nginx reverse proxy setup
This commit updates the deployment guide to clarify the use of Nginx for HTTPS access to the Bifrost dashboard. It specifies the binding of Bifrost to `127.0.0.1:8080`, outlines the necessary Nginx configuration, and provides detailed steps for setting up a secure connection. Additionally, it corrects the repository path in the deployment instructions to reflect the new structure.

Changes include:
- Updated instructions for binding Bifrost and using Nginx.
- Clarified repository path after cloning.
- Added comprehensive Nginx configuration details for public access.
2026-07-13 18:03:37 +05:30
.claude/skills review skill updates (#4915) 2026-07-04 16:08:45 -07:00
.github allow v2.0.0 to publish prerelease cuts 2026-07-06 16:01:37 -07:00
.greptile migration rollback warnings for codereviews (#3846) 2026-05-29 18:11:33 +05:30
cli adds subgent support and shift tab support for harness 2026-06-17 17:57:36 +05:30
community feat: add icons to MCP server library entries and relax icon_url schema to allow relative paths (#4198) 2026-06-12 16:06:10 +05:30
core fix: fixes OTEL metrics not sending status code (#5043) 2026-07-08 22:09:49 -07:00
docs fix: fixes telemetry plugin cardinality explosion risk (#5041) 2026-07-08 22:08:14 -07:00
examples framework: bump core to v1.6.3 --skip-ci 2026-07-06 19:13:02 +00:00
framework fix: fixes OTEL metrics not sending status code (#5043) 2026-07-08 22:09:49 -07:00
helm-charts feat: add ClickHouse logs store, MCP OAuth2 server config, bedrock_mantle provider, virtual key expires_at, and per-client toolExecutionTimeout to Helm chart (#4960) 2026-07-06 11:30:22 -07:00
nix V1.5.0 (#2245) 2026-04-18 06:07:53 +05:30
npx fixes migration cli pacakge.json (#4672) 2026-06-24 20:10:42 +05:30
plugins fix: fixes OTEL metrics not sending status code (#5043) 2026-07-08 22:09:49 -07:00
recipes feat: remove direct key bypass from HTTP gateway and Go SDK (#3241) 2026-05-06 14:12:04 +05:30
scripts/bifrost-migration-cli clickhouse support for log_store (#4748) 2026-07-05 15:45:46 -07:00
terraform V1.5.0 (#2245) 2026-04-18 06:07:53 +05:30
tests added enterprise fallback pages for alerting (#4685) 2026-07-08 00:47:45 -07:00
transports feat: add shouldSweep gate to OAuth2 sweep worker and expose StartOAuth2SweepWorker (#4995) 2026-07-09 12:53:53 +05:30
ui feat: update favicon and add new logo for NHAI 2026-07-13 15:10:46 +05:30
.coderabbit.yaml feat: add skills repository data model and config store support (#4229) 2026-06-15 23:20:00 +05:30
.dockerignore adds zerolog logger (#251) 2025-08-11 00:43:24 +05:30
.editorconfig deadlock fix 2025-12-23 20:11:38 +05:30
.envrc [Nix Support] Adds nix flake support for bifrost 2026-01-20 12:19:58 +05:30
.gitattributes fixes integration tests flow 2025-11-26 03:19:13 +05:30
.gitignore chore: update .gitignore to include additional files and directories 2026-07-13 15:10:03 +05:30
.infisical.json adds structredoutput fallback for bedrock converse api (#3184) 2026-05-02 01:43:05 +05:30
.nvmrc V1.5.0 (#2245) 2026-04-18 06:07:53 +05:30
.pre-commit-config.yaml [StepSecurity] Apply security best practices (#2372) 2026-03-30 10:48:04 +05:30
.snyk feat: add vllm provider support (#1649) 2026-02-19 16:42:44 +05:30
AGENTS.md adds pause resume flows for streaming calls (#3091) 2026-06-24 14:07:24 +05:30
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2025-09-06 21:43:45 +05:30
config.json feat: add encryption key configuration to JSON settings 2026-07-13 16:38:22 +05:30
DEPLOYMENT.md docs: enhance deployment instructions for Bifrost on EC2 with Nginx reverse proxy setup 2026-07-13 18:03:37 +05:30
docker-compose.yaml fix: update Bifrost gateway port mapping and add encryption key environment variable 2026-07-13 16:38:45 +05:30
flake.lock chore: update skills repository dependencies and workspace tooling (#4228) 2026-06-12 16:06:18 +05:30
flake.nix chore: update skills repository dependencies and workspace tooling (#4228) 2026-06-12 16:06:18 +05:30
LICENSE feat: readMe 2025-04-30 10:51:09 +05:30
Makefile clickhouse support for log_store (#4748) 2026-07-05 15:45:46 -07:00
pulse.yaml feat: add cache creation details (5m/1h TTL) for claude models with pricing support (#2899) 2026-04-24 13:05:40 +05:30
README.md scim docs with webhook configuration (#3831) 2026-05-29 18:11:31 +05:30
SECURITY.md Revise SECURITY.md with reporting and security details (#2439) 2026-04-01 03:44:17 +05:30

Bifrost AI Gateway

Go Report Card Discord badge codecov Docker Pulls Run In Postman Artifact Hub 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 and other features designed for enterprise-grade scale and reliability.

Book a Demo

Key Features

Core Infrastructure

  • Unified Interface - Single OpenAI-compatible API for all providers
  • Multi-Provider Support - OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Cerebras, Cohere, Mistral, Ollama, Groq, and more
  • Automatic Fallbacks - Seamless failover between providers and models with zero downtime
  • Load Balancing - Intelligent request distribution across multiple API keys and providers

Advanced Features

  • Model Context Protocol (MCP) - Enable AI models to use external tools (filesystem, web search, databases)
  • Semantic Caching - Intelligent response caching based on semantic similarity to reduce costs and latency
  • Multimodal Support - Support for text,images, audio, and streaming, all behind a common interface.
  • Custom Plugins - Extensible middleware architecture for analytics, monitoring, and custom logic
  • Governance - Usage tracking, rate limiting, and fine-grained access control

Enterprise & Security

  • Budget Management - Hierarchical cost control with virtual keys, teams, and customer budgets
  • User Provisioning (OIDC) - OAuth 2.0 / OIDC login with background directory sync for teams, roles, and business units
  • Observability - Native Prometheus metrics, distributed tracing, and comprehensive logging
  • Secrets Management - Secure API key management with environment variables and deployment secrets

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 storages
│   ├── logstore/        # Request logging storages
│   └── 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:

  • Perfect Success Rate - 100% request success rate even at 5k RPS
  • Minimal Overhead - Less than 15 µs additional latency per request
  • Efficient Queuing - Sub-microsecond average wait times
  • Fast Key Selection - ~10 ns to pick weighted API keys

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:

  • Quick setup assistance and troubleshooting
  • Best practices and configuration tips
  • Community discussions and support
  • Real-time help with integrations

Contributing

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

  • Setting up the development environment
  • Code conventions and best practices
  • How to submit pull requests
  • Building and testing locally

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