mozilla-ai/otari

Open-source, OpenAI-compatible LLM gateway you run yourself. One endpoint for 40+ providers, with virtual keys, budgets, and usage tracking.

What it solves

Otari is an OpenAI-compatible LLM gateway that allows users to manage multiple model providers through a single endpoint. It solves the problem of managing fragmented provider credentials, tracking usage and budgets across different services, and implementing routing policies for failover and weighting without modifying application code.

How it works

Otari acts as a proxy between applications and LLM providers. It authenticates requests, resolves the necessary provider credentials, checks budgets before dispatching the request, and records usage after the completion. It uses the any-llm library to handle the actual provider calls.

Who it’s for

It is designed for developers and organizations that use multiple LLM providers and need a centralized way to handle authentication, cost control, and routing policies.

Highlights

  • Unified Endpoint: Provides a single OpenAI and Anthropic-compatible endpoint for 40+ providers.
  • Credential Management: Keeps provider credentials secure behind the gateway.
  • Capped Spending: Enforces budgets and tracks usage records after settlement.
  • Flexible Routing: Supports local routing policies for failover, weighting, and learned selection.
  • Access Control: Offers revocable API keys with scopes for users, workspaces, and models.
  • Extended Capabilities: Optional support for code execution, web search, MCP, guardrails, and file understanding.

Related

  • Project
  • Project
  • Project
  • Project
  • Project