Keep keys and data in your environment
- Store every provider credential inside the gateway, never in client code
- Keep all request data within your own infrastructure
- Rotate provider keys without touching a single application
One centralized AI gateway to enforce budgets and model policy per business unit, with a cost record on every request.
Business units and apps → Bifrost AI gateway → providers and finance warehouse

Edge + Gateway
[ AT A GLANCE ]
How the gateway meters and enforces AI spend.
[ WHY CHIEF AI OFFICERS NEED AN AI GATEWAY ]
Adoption, billing, and policy each happen in a different system, so no single system shows the whole portfolio.
Business units adopt AI through separate provider contracts, keys, and tools, so the same use case can be built more than once on different models, and spend is visible only per contract.
Coding agents and API calls are metered by usage, so costs grow with adoption and show up on provider invoices after the requests that caused them, without a business-unit breakdown.
An AI governance policy names approved models, data, and budgets. Requests leave from many applications that hold their own provider credentials, so compliance is checked after the fact.
A pilot proves that a model can do the task. The cost of running it at production traffic, including tokens and retrieval, stays unknown until the funding decision is due.
[ HOW IT WORKS ]
An AI control plane is the layer every AI request passes through, where access, budgets, and routing are enforced and each request's cost is recorded.
A virtual key identifies the user or team, business units map from identity-provider attributes, and an optional project header names the initiative.
The request proceeds only if every applicable budget passes. Routing rules, configured once, pick its provider and model.
Request logs, Prometheus metrics, and warehouse exports record the cost and token counts of each request, tagged with its key, team, customer, and project.
[ GATEWAY CAPABILITIES FOR CHIEF AI OFFICERS ]
These controls turn portfolio policy into limits the gateway enforces on every request.
[ FITS YOUR EXISTING STACK ]
Bifrost works with the systems that already hold your org chart, finance data, and approved use cases.
Okta, Microsoft Entra, and Google Workspace sync users and groups into Bifrost, and IdP attributes map each user to a business unit.
The BigQuery export gives finance per-request cost rows to join with cost centers and existing chargeback reports.
Each initiative approved in your AI governance registry receives a project and virtual keys. With virtual keys made mandatory, the gateway rejects unkeyed requests.
[ DEPLOYMENT ]
Every business unit's prompts, responses, and cost records stay inside infrastructure you operate with Bifrost Enterprise.
[ COMPLIANCE ]
The gateway can sign audit events with an HMAC key, archive them to S3 or GCS, and stream request payloads to the same object storage, ready for compliance teams to use as evidence.




[ QUICK SETUP ]
Change one base URL. Bifrost works with the OpenAI, Anthropic, Google GenAI, LiteLLM, and LangChain SDKs, and more.
npx -y @maximhq/bifrostclient = openai.OpenAI(
base_url="http://localhost:8080/openai", # only change needed
api_key="<YOUR-BIFROST-VIRTUAL-KEY>",
)The source code is on GitHub under Apache 2.0, built by Maxim AI.
[ FAQ ]
An AI control plane is the infrastructure layer every AI request passes through, where access, budgets, routing, and policy are enforced and each request's cost is recorded. Bifrost is an AI control plane for LLM and MCP traffic, applying virtual keys, budgets, and routing rules on each call to 25+ providers and 10,000+ models. A request that exceeds any applicable budget is refused with HTTP 402.
An agentic AI control plane governs the tools AI agents can call as well as the models they use. Bifrost filters MCP tools per virtual key with a deny-by-default allow-list, so an agent reaches only approved tools. See the MCP gateway.
The two do different jobs. A governance platform is where you record approved use cases, risk assessments, and framework evidence. An AI control plane enforces access, budgets, and routing on live requests. The registry decides what is approved, and Bifrost applies that decision to each call and returns cost and usage records.
AI spend is attributed to business units by tagging each request with its owner when it is made. Bifrost does this through virtual keys, teams, customers, and business units mapped from your identity provider, and exports per-request cost with those columns to BigQuery. That supplies the cost side of an AI ROI calculation.
A central AI gateway adds little delay when adoption is a base-URL change and access is self-service. Bifrost's published benchmarks measure 11 microseconds of added overhead per request at a sustained 5,000 RPS on a t3.xlarge instance, with a 100% success rate, and access profiles issue virtual keys automatically by role.
Provider lock-in is avoided by keeping model selection out of application code. Applications call Bifrost through one OpenAI-compatible API, and scoped routing rules decide which provider and model serve each request, so a model change is a configuration update.
The Bifrost gateway is open source under Apache 2.0, including virtual keys, budgets, routing rules, and fallbacks. Bifrost Enterprise adds business units, projects, access profiles, alerting, identity provider integration, audit logs, and in-VPC deployment.
[ RELATED RESOURCES ]
The governance controls behind this page, in detail.
A practical evaluation routes two business units through the gateway for one budget period, tags their main initiatives as projects, and compares the resulting cost report with provider invoices. The 14-day free Enterprise trial covers that pilot.
[ BIFROST FEATURES ]
Everything you need to run AI in production, from free open source to enterprise-grade features.
01 Governance
SAML support for SSO and Role-based access control and policy enforcement for team collaboration.
02 Adaptive Load Balancing
Automatically optimizes traffic distribution across provider keys and models based on real-time performance metrics.
03 Cluster Mode
High availability deployment with automatic failover and load balancing. Peer-to-peer clustering where every instance is equal.
04 Alerts
Real-time notifications for budget limits, failures, and performance issues on Email, Slack, PagerDuty, Teams, Webhook and more.
05 Log Exports
Export and analyze request logs, traces, and telemetry data from Bifrost with enterprise-grade data export capabilities for compliance, monitoring, and analytics.
06 Audit Logs
Comprehensive logging and audit trails for compliance and debugging.
07 Vault Support
Secure API key management with HashiCorp Vault, AWS Secrets Manager, Google Secret Manager, and Azure Key Vault integration.
08 VPC Deployment
Deploy Bifrost within your private cloud infrastructure with VPC isolation, custom networking, and enhanced security controls.
09 Guardrails
Automatically detect and block unsafe model outputs with real-time policy enforcement and content moderation across all agents.
[ SHIP RELIABLE AI ]
Change just one line of code. Works with OpenAI, Anthropic, Vercel AI SDK, LangChain, and more.