# Otari: What Is Mozilla AI&#8217;s Open-Source AI Gateway? 7 Essential Answers

Source: https://hostreta.com/2026/12/what-is-otari/

If you build with AI models, you have probably hit the same wall: one provider for this app, another for that agent, a pile of API keys, and no clear view of what it all costs. So what is Otari, and does it fix that? Otari is an open-source AI gateway from Mozilla AI. It sits between your apps or coding agents and the model providers, so every request goes through one place where you set the rules. This guide answers seven plain questions about it, using only the official Otari site, the project’s GitHub page and Mozilla AI’s own blog posts as sources.

We checked these pages on December 6, 2026. The project is still moving fast, so treat the details below as a dated snapshot and confirm the current docs before you commit to a setup.

The Otari homepage and its Activity dashboard. Source: otari.ai, December 6, 2026.

Table of Contents

[Toggle](#)

- [What is Otari?](#What_is_Otari)
- [Who built Otari, and when did it launch?](#Who_built_Otari_and_when_did_it_launch)
- [What does Otari actually do?](#What_does_Otari_actually_do)
- [Why the tools part matters](#Why_the_tools_part_matters)

- [How does Otari control what your AI can do?](#How_does_Otari_control_what_your_AI_can_do)
- [Seeing what happened](#Seeing_what_happened)

- [How do you set up Otari?](#How_do_you_set_up_Otari)
- [The hosted route in two steps](#The_hosted_route_in_two_steps)
- [The self-hosted route](#The_self-hosted_route)

- [Which models, providers and tools work with Otari?](#Which_models_providers_and_tools_work_with_Otari)
- [Why switching models gets easier](#Why_switching_models_gets_easier)

- [How much does Otari cost?](#How_much_does_Otari_cost)
- [Gateway or direct provider call: what changes?](#Gateway_or_direct_provider_call_what_changes)
- [Is Otari right for you?](#Is_Otari_right_for_you)
- [What we could not verify](#What_we_could_not_verify)
- [What is Otari: frequently asked questions](#What_is_Otari_frequently_asked_questions)
- [What is Otari in one sentence?](#What_is_Otari_in_one_sentence)
- [Is Otari free?](#Is_Otari_free)
- [Can I use my own provider keys with Otari?](#Can_I_use_my_own_provider_keys_with_Otari)
- [Does Otari work with Claude Code and Codex?](#Does_Otari_work_with_Claude_Code_and_Codex)
- [Does Otari support open-weight models?](#Does_Otari_support_open-weight_models)
- [Can Otari switch providers if one goes down?](#Can_Otari_switch_providers_if_one_goes_down)
- [Where can I read the official docs?](#Where_can_I_read_the_official_docs)

## What is Otari?

The Otari homepage opens with a short promise: “Any model. One gateway. Your rules.” It describes Otari as one API for every model, tool and MCP server your agents use, with access control, guardrails and usage logs built in. [The official Otari site](https://otari.ai) presents it as a product from Mozilla AI, which says it is part of the Mozilla family.

The GitHub project describes it in similar words: an open-source AI gateway you run yourself, with one endpoint for 40+ providers, virtual keys, budgets and usage tracking. In the README, the maintainers explain that Otari authenticates requests, resolves provider credentials, enforces budgets before dispatch and records usage afterwards. Provider calls go through any-llm, another Mozilla AI project. You can read all of this on the [mozilla-ai/otari repository](https://github.com/mozilla-ai/otari).

In short, what is Otari for? It is a control layer. Your app talks to Otari, and the gateway talks to the model provider. That one extra step is where the control comes from.

## Who built Otari, and when did it launch?

Otari is built by Mozilla AI. The launch post on the Mozilla AI blog, titled “Introducing Otari: The Open-Source LLM Control Plane”, is dated July 6, 2026 and calls Otari the open-source LLM control plane built by Mozilla.ai. The repository on GitHub shows it was created on April 2, 2026, and when we checked it listed an Apache License 2.0 and close to a thousand stars.

The launch post explains why the team built it. They saw the same problems again and again: teams writing their own routing logic, managing provider keys, tracking usage, enforcing budgets and building governance separately for every application. Their view is that these jobs belong in a dedicated layer between applications and providers, not inside each app. You can read the full post on the [Mozilla AI blog](https://blog.mozilla.ai/introducing-otari-the-open-source-llm-control-plane/).

A later post, “Otari by Mozilla AI: your operating system for AI governance” from November 4, 2026, adds the second half of the pitch. It says the gateway was built around two things: governance and choice. Mozilla AI says its own agent platform kept needing the same pieces, which are one way to reach many models and tools, budgets and limits that hold, and a record of what ran and what it cost. The [governance post](https://blog.mozilla.ai/otari-by-mozilla-ai-your-operating-system-for-ai-governance/) has the full argument.

## What does Otari actually do?

The homepage lists what you get from day one. We group the list here so it is easier to scan.

- Model access. Open-weight and frontier models through one API that is compatible with both OpenAI and Anthropic clients.

- Server-side tools. Web search, web fetch and code execution for any model, including open-weight models.

- API keys and budgets. A key for every person, team or agent, and spend caps that stop requests at the limit.

- Activity view. Every request with its tokens, cost and errors, with filters to find where an agent failed.

- Usage and cost. Cost, tokens and requests by model, person or API key, down to the hour.

- Fallback. Automatic fallback between providers.

The GitHub README adds more detail. It says provider credentials stay behind the gateway, API keys are revocable and scoped by user, workspace and model, and budget checks happen before spend, with usage records written after settlement. It also lists local routing policies for failover, conditional selection, traffic splitting and spill-over past a rate limit. Optional features include code execution, web search, MCP, inference guardrails and file understanding.

### Why the tools part matters

The governance post makes a point that is easy to miss. Because tools come from the gateway too, an open-weight model gets the same web search and code execution as the proprietary model it might replace. That makes a fair comparison possible, since you can compare models on the whole job, including accuracy, retries and how much human review the output needs.

What you get from day one, as listed on otari.ai.

## How does Otari control what your AI can do?

This is the part that separates a gateway from a simple model switch. The Mozilla AI governance post gives a clear example. A support agent drafting ticket replies needs a model and your help docs, but it does not need the web or code execution. A research assistant needs web search above all. In Otari you set this per workspace: which models are allowed, whether web search and code execution are on or off, and which guardrail checks are required. Flagged requests are blocked before they reach the provider. Because the rules live in the gateway, the post says, the model cannot talk its way around them.

Budgets work the same way. They go on users and application keys, and the gateway checks them before each request. The post suggests starting an agent with a small budget and raising it once the agent has earned it.

For coding agents, the post says Otari’s Agent Guardrails can refuse specific tool calls and check repository changes before the agent hands work back. The README mentions that the commands a developer runs next to a coding agent, otari hook and otari import claude-code, install on their own without the server.

### Seeing what happened

A finished answer can hide several model calls, a fallback and a failed tool call. According to the governance post, Otari’s usage views show what was called, what failed and what it cost. Session tracing links all of it into one timeline without storing prompts, responses or tool results. That helps you see why something got expensive, which step keeps failing and whether a guardrail ran.

The three ways to run Otari, as shown on otari.ai.

## How do you set up Otari?

There are three ways to run Otari, and the homepage lays them out as cards.

- Hosted on otari.ai. Mozilla AI runs it for you. The homepage says you can send your first request in minutes.

- Self-hosted. You run the open-source gateway on your own infrastructure, for free.

- For your company. Hosted or self-hosted, with Mozilla AI helping with deployment, support and the features a team needs.

### The hosted route in two steps

The homepage describes a two-step start. First, create a free account by signing up with GitHub, Google or email, and create an API key. Second, point your agent at Otari by setting the base URL, your API key and a model. Every request then shows up in the Activity view.

For Claude Code, the homepage example sets three environment variables and then runs claude. The base URL is https://api.otari.ai/api, the token is your API key, and the model is written in a provider-and-model format, for example anthropic:claude-sonnet-4-6. Tabs on the page show matching setups for Codex, opencode and the SDK.

The two-step start on otari.ai, with the Claude Code example. Source: otari.ai.

### The self-hosted route

The README says you can run it with Docker and no configuration. The quickstart command is a single docker run that maps a volume called otari and port 8000 on localhost, using the image mzdotai/otari:latest. On its first start, it prints a setup link once. That link carries the gateway’s master key, so the README tells you to treat it like a key and keep it private. You open it, choose an email and password, add a provider on the dashboard’s Hosted providers page and enable default pricing.

Next you create an API key in the dashboard and send a request to the chat completions route. OpenAI clients work by setting the base URL to http://localhost:8000/api/v1. The data volume holds a SQLite database and the generated key that encrypts stored provider credentials, so a new container that uses the same volume keeps its data.

For a fuller setup, the README describes a Compose stack that runs the gateway with PostgreSQL, with optional profiles for a code sandbox and web search services. The dashboard is served at http://localhost:8000/. The README also notes the project needs Python 3.13 or newer for development.

If you plan to self-host, you will need somewhere to run it. A small cloud server or VPS is the usual choice for a gateway like this; see our guides to [VPS hosting](https://hostreta.com/2026/12/kawedma-vps-hosting/) and [cloud hosting](https://hostreta.com/2026/12/kawedma-cloud-hosting/) for how those plans differ.

## Which models, providers and tools work with Otari?

The homepage names the providers that work with it today: Mistral, Fireworks AI, Together AI, Nebius, OVHcloud, Amazon Bedrock and DeepInfra. It also lists coding agents with setup guides: Claude Code, Codex, opencode, Junie and Pi. For code, it lists the Otari SDK, OpenAI-compatible clients and any-llm. The page adds that any tool that speaks the OpenAI or Anthropic API works too.

The API itself exposes the core completion routes that OpenAI and Anthropic clients expect. The README lists three: POST /api/v1/chat/completions, POST /api/v1/messages and POST /api/v1/responses. A running server also publishes Swagger UI at /api/v1/docs and an OpenAPI file at /api/v1/openapi.json.

The README says the dashboard manages providers, models, routing, tools, keys, members, budgets, settings, activity and usage, and that its navigation adapts to the signed-in person’s authority. If you want a related example of an AI tool that works through a hosted plan, our guide to [what Hostinger Headless is](https://hostreta.com/2026/12/what-is-hostinger-headless/) covers a different way of putting AI coding agents to work.

### Why switching models gets easier

The governance post says moving to a different model or tool provider should take about as much effort as changing a config value. Your apps reach every model through one API, so switching is a config change, and fallback rules reroute requests when a provider goes down. That is the core of the “choice” half of Otari’s pitch, and it is the best reason to look at a gateway if you worry about lock-in.

## How much does Otari cost?

The homepage keeps the pricing section short. For the open-source gateway, you run it and pay for your own infrastructure. For the hosted version, you top up, then pay list price per token, and your own provider keys are free. The page does not publish a price table, so we cannot list per-token rates here. Check the pricing section on otari.ai for the current numbers before you plan a budget.

The company route is different. The homepage says you can book a 30-minute call about how your company uses AI, get an assessment of your AI spend that shows where open-weight models with tools could cut cost, and receive a pilot proposal if Otari is a fit.

## Gateway or direct provider call: what changes?

It helps to picture the same job done two ways. In the direct way, your app holds a provider key, calls that provider’s API, and logs whatever you remembered to log. If you add a second provider, you add a second key, a second client and your own code to decide which one to call. If a provider has an outage, your code has to notice and react. If a key leaks, you have to find every place it was pasted.

With a gateway in the middle, the picture changes. Your app holds one gateway key. The gateway holds the provider credentials, picks the model from the name in the request, checks the budget, applies the guardrails and writes the usage record. Revoking a key becomes one action in a dashboard, and moving a workflow to another model becomes a change to one name. These are the benefits the official sources describe, and they are the reason gateways exist.

The trade is one more moving part. A gateway is software you must trust, run or pay for, and keep updated. If you self-host it, you own its uptime. If you use the hosted version, you rely on the host. Weigh that against the time you now spend on keys, limits and logs across your apps. For a team with several agents and several models, the answer usually favors the gateway. For a single small script, it may not.

## Is Otari right for you?

Based only on what the official sources say, here is a fair way to think about it.

- It fits well if you use more than one model provider, run coding agents or other agents, need spending limits per person or key, or want a record of what every request cost.

- It fits well if you want to avoid lock-in and keep the option to move to open-weight models later.

- It may be more than you need if you use one model from one provider in one small app, and a single key and a provider dashboard already cover your needs.

- Self-hosting takes work. You will manage a server, a database, keys and updates. The hosted route avoids that, at the price of paying per token.

The governance post suggests a gentle start. Pick one workflow you know well, set its models, tools and budget, decide who reviews it, and watch it for a few weeks. Then decide whether it deserves more room. We think that is sensible advice for anyone trying it for the first time.

## What we could not verify

We did not run Otari ourselves for this guide, so we cannot give you speed or reliability numbers. We also did not test any model through it. Everything above comes from the official Otari site, the GitHub repository and the Mozilla AI blog, as read on December 6, 2026. Where those sources do not publish a number, such as hosted per-token pricing, we say so instead of guessing.

## What is Otari: frequently asked questions

### What is Otari in one sentence?

Otari is an open-source AI gateway from Mozilla AI that gives your apps and agents one endpoint for many models and tools, with keys, budgets, guardrails and usage logs built in.

### Is Otari free?

The gateway is open source under the Apache License 2.0, and the homepage says you can run it on your own infrastructure for free, paying only for that infrastructure. The hosted version has a free account, then you top up and pay list price per token.

### Can I use my own provider keys with Otari?

Yes. The homepage says that on the hosted version your own provider keys are free. The README says that provider credentials stay behind the gateway.

### Does Otari work with Claude Code and Codex?

Yes. Both are listed as coding agents with setup guides on the homepage, along with opencode, Junie and Pi.

### Does Otari support open-weight models?

Yes. The homepage says it gives access to open-weight and frontier models through one API, and that its server-side tools such as web search and code execution work for open-weight models too.

### Can Otari switch providers if one goes down?

The homepage lists automatic fallback between providers, and the README lists routing policies for failover, conditional selection, traffic splitting and spill-over past a rate limit.

### Where can I read the official docs?

Start at otari.ai and the GitHub repository. The README lists documentation pages for the quickstart, deployment, configuration, models, routing, access control, built-in tools, agent guardrails, SDK and agent integrations, and architecture.

Did we miss a question about what Otari can do? Comment below and we will check the official sources and update this guide.
