Self-host Otari
v0.33.0OpenAI-compatible LLM gateway for multi-provider routing
- Stars
- 746
- Port
- 8000 (HTTP API and dashboard)
- Requires
- PostgreSQL
mzdotai/otariWhat is Otari?
Otari is an LLM gateway from Mozilla.ai that sits between applications and model providers. It routes requests to 40+ providers through a unified OpenAI-compatible endpoint, manages provider credentials securely behind the gateway, issues revocable virtual API keys with user/workspace/model scope, enforces budgets before requests are dispatched, and records usage after settlement. It supports local routing policies for failover, weighted selection, and learned routing. Optional features include sandboxed code execution, web search, MCP integration, inference guardrails like prompt-injection detection, and file understanding for local models. The gateway is deployed via Docker or Docker Compose with PostgreSQL for production, and includes a web dashboard for managing providers, models, routing, keys, members, budgets, and observability. The CLI tool (installable via Homebrew) adds agent guardrails for coding agents like Claude Code without requiring the server.
Should you self-host Otari?
Otari scores 56/100 on selfhost.directory (how scoring works) and ranks #14 of 39 in API Gateway. It has 746 GitHub stars.
It shipped 10 stable releases in the past year. The latest, v0.33.0, came out on 27 October 2026. New versions land roughly every 1 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Kong Gateway (82/100, 44 311 stars). It scores higher overall, so compare the two before you pick. See Otari vs Kong Gateway side by side.
Features
- Admin Dashboard
- Agent guardrailsCLI-only feature, no server required
- Anthropic-compatible API
- Budget Enforcement
- Code ExecutionOptional via Docker Compose profile
- File understanding
- Inference guardrailsOptional via Docker Compose profile
- MCP (Model Context Protocol)
- OpenAI Compatible API
- Prometheus MetricsRequires metrics extra (included in Docker image)
- Rate Limiting
- Routing policies
- Virtual API keys
- Web SearchOptional via Docker Compose profile
Otari README
More in API Management
PipelexBuild AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.
pRESTOpen-source, self-hosted backend that turns a PostgreSQL or MySQL database into instant REST CRUD endpoints, custom SQL routes, JWT auth and a read-only MCP API.
skrunSkrun is a self-hosted agent runtime turning Agent Skills into POST /run APIs. Supports multiple LLMs, MCP, SSE, webhooks, dashboard. MIT, Node.js, SQLite/Postgres
StrapiSelf-hosted, open-source headless CMS built with JavaScript/TypeScript that generates REST and GraphQL APIs from content models, with a customizable admin panel.
supabaseSelf-hosted open-source Postgres platform with database, auth, realtime, storage, edge functions, and vector embeddings as a Firebase alternative.
TykSelf-hosted open-source API and AI gateway proxying REST, GraphQL, gRPC, TCP and MCP traffic with auth, quotas, plugins and analytics.
unkeySource-available developer platform for modern APIs: issue and verify API keys, rate limit at a global gateway, deploy apps, and watch usage from one control plane.
wundergraphOpen-source, self-hosted lifecycle manager for federated GraphQL APIs: schema registry, breaking-change checks, router, usage analytics and tracing.
aci-devACI.dev is an open-source tool-calling platform you self-host as a backend and dev portal, wiring 600+ SaaS integrations into AI agents via function calls or unified MCP.
agnoAgno is an open-source framework for building and running self-hosted AI agent platforms with REST API, MCP server, and web UI. Supports Docker and Kubernetes.
aigne-hubAIGNE Hub is a self-hosted AI gateway for 10+ LLM providers with API key management, usage tracking, and credit billing. Built as a Blocklet.
api200Self-hosted API gateway simplifying third-party integrations with auth, caching, retries, mocks, schema watching, and MCP support via one URL.
0 comments