Otari: Self-Hosted OpenAI-Compatible LLM Gateway for 40+ Providers

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Otari: Self-Hosted OpenAI-Compatible LLM Gateway for 40+ Providers

Summary

Otari, from Mozilla AI, is an open-source, self-hosted LLM gateway. It provides a single OpenAI-compatible endpoint to connect with over 40 model providers, offering features like virtual keys, budget enforcement, and usage tracking. This solution empowers users to manage their AI stack with greater control and flexibility.

Repository Information

Analyzed by OSRepos on September 4, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

Otari, from Mozilla AI, is an open-source, self-hosted LLM gateway designed to simplify interaction with various large language model providers. It offers a single OpenAI-compatible endpoint, allowing seamless integration with over 40 different LLM providers. Users can issue virtual API keys, enforce budgets, and track usage, gaining full control over their AI infrastructure.

Why Use Otari and Key Benefits

Otari provides a robust solution for managing your LLM interactions with several compelling advantages:

  • One OpenAI and Anthropic-compatible endpoint for many providers.
  • Provider credentials stay securely behind the gateway.
  • Revocable API keys with user, workspace, and model scope.
  • Budget checks before spend and comprehensive usage records after settlement.
  • Local routing policies for failover, weighting, and learned selection.
  • Optional features including code execution, web search, multi-cloud provisioning (MCP), guardrails, and file understanding.

Installation

Getting started with Otari is straightforward. You can run an ephemeral standalone gateway using Docker:

docker run --rm -p 8000:8000 \
  -e OTARI_MASTER_KEY=SET_A_MASTER_KEY \
  -e OPENAI_API_KEY=YOUR_OPENAI_KEY \
  -e OTARI_CONFIG_YAML='default_pricing: true' \
  mzdotai/otari:latest \
  otari serve

For a full-stack deployment with persistent data, including PostgreSQL, clone the repository and use Docker Compose:

git clone https://github.com/mozilla-ai/otari
cd otari
cp config.example.yml config.yml
# Set a master key, provider credentials, and pricing in config.yml.
docker compose pull
docker compose up -d

The dashboard will be accessible at http://localhost:8000/. Optional services like code sandbox, web search, and guardrails can be enabled via Docker Compose profiles.

Examples

Once Otari is running, you can send requests using the generated bootstrap API key. OpenAI clients can also be configured by setting base_url to http://localhost:8000/v1.

Here's an example using curl to send a chat completion request:

curl http://localhost:8000/v1/chat/completions \
  -H "Authorization: Bearer gw-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai:gpt-4o-mini",
    "messages": [{"role": "user", "content": "Say hello."}]
  }'

Links

Explore Otari further through these official resources:

Related repositories

Similar repositories that may be relevant next.

Kong Gateway: The Cloud-Native API and AI Gateway for Microservices

Kong Gateway: The Cloud-Native API and AI Gateway for Microservices

February 7, 2026

Kong Gateway is a high-performance, cloud-native API and AI Gateway, distinguished for its extensibility and multi-LLM support. It provides robust functionality for proxying, routing, load balancing, and authentication, serving as a central layer for orchestrating microservices and AI traffic. With native Kubernetes integration and a rich plugin ecosystem, Kong Gateway is a versatile solution for modern API management.

api-gatewayai-gatewaykubernetes
claude-code-forge: Access Any AI Model Through Claude's Interface

claude-code-forge: Access Any AI Model Through Claude's Interface

February 7, 2026

claude-code-forge is a utility that enables users to access a wide array of AI models through the Claude Code interface. By configuring Claude Code to use TensorBlock Forge as its API provider, developers can leverage models like Qwen Coder and Gemini, expanding beyond Claude's default offerings. This repository provides simple setup scripts to integrate TensorBlock Forge seamlessly.

aiai-gatewayai-proxy
APIPark: Cloud-Native AI & API Gateway for LLM Management

APIPark: Cloud-Native AI & API Gateway for LLM Management

December 15, 2025

APIPark is an open-source, cloud-native AI and API gateway designed for ultra-high performance and LLM API management. It simplifies the integration and deployment of over 100 AI models, offering a unified API, developer portal, and robust features for managing, monitoring, and securing AI services. This platform helps developers and enterprises accelerate their AI API development and build intelligent products or agents efficiently.

ai-gatewayapi-managementllm

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️