Otari
Otari is Mozilla AI's Apache-2.0 AI gateway: one OpenAI- and Anthropic-compatible endpoint for 40+ providers, with virtual keys, budgets checked before spend, routing and server-side web search and code execution. Self-host it free or use the hosted otari.ai.
About Otari
What Otari is
Otari is an open-source AI gateway from Mozilla AI. It sits between your applications or coding agents and the model providers they call, and gives them one endpoint that speaks both the OpenAI and the Anthropic API formats. Behind that endpoint it authenticates the caller, looks up the provider credential, checks the caller's budget before the request is sent, and records tokens and cost after it settles. The gateway itself is licensed under Apache-2.0 and lives at github.com/mozilla-ai/otari; otari.ai is the hosted version that Mozilla AI runs on the same code.
Mozilla AI announced Otari and the hosted otari.ai platform on May 29, 2026, describing it as a gateway "built on top of any-llm", its own multi-provider Python library. Otari was featured on Product Hunt on December 4, 2026 under the line "Every model and tool your agents need". The company behind it is Mozilla AI (MZL.AI, PBC), part of the Mozilla family, with a listed address at 1875 Mission Street in San Francisco. Its pitch is independence: Mozilla AI says it "has no models or platforms to sell", so a gateway that keeps your options open is in its interest.
The problem it is aimed at
Mozilla AI frames Otari around two gaps. The first is a capability gap. Frontier providers ship more than model weights: code execution, web search, file handling and batch APIs come with the endpoint. When you move a workload to an open-weight model on a generic inference provider, you usually get a bare chat endpoint and lose those tools. Otari runs them on the gateway side, so any model that supports tool calls can use a sandboxed code interpreter or web search without your application growing that layer itself. The second is an accounting gap: once several people and agents call several providers with several keys, nobody can say who spent what. Otari issues its own keys per person, team or agent and attributes every request to one of them.
How it works
- One endpoint, three wire formats. The core routes are
POST /api/v1/chat/completions(OpenAI chat),POST /api/v1/messages(Anthropic) andPOST /api/v1/responses(OpenAI Responses). Models are namedprovider:model, for exampleopenai:gpt-4o-minioranthropic:claude-sonnet-4-6. The GitHub description says one endpoint reaches "40+ providers". - Virtual keys. Clients get Otari keys (prefixed
tk-), never the upstream provider key. Keys are hashed, can expire, and can be limited to particular models, tools and scopes, and bound to a user, a workspace or an end user of your own product. - Budgets checked before spend. Budgets can cap dollars, tokens, requests, requests per minute and tokens per minute, with a reset window (a duration or a calendar day, week or month). The README says budget checks happen "before spend" and usage is recorded "after settlement".
- Routing policies. The self-hosted gateway supports local routing policies for failover, conditional selection, traffic splitting and "spill-over past a rate limit". The hosted platform started with a simple fallback system, according to the launch post.
- Server-side tools. Optional code execution (a Docker-isolated Python REPL), web search (SearXNG out of the box, with Tavily, Brave or Exa as options), web fetch, MCP servers, inference guardrails and file understanding. In the Compose setup the code sandbox and search run as optional profiles.
- Dashboard and observability. A web dashboard manages providers, models, routing, tools, keys, members, budgets, activity and usage. The hosted platform adds organisations and workspaces with owner, admin and member roles, OTLP trace ingest, a session explorer and a declarative YAML description of an entire organisation that can be planned as a diff and committed to Git.
- Coding-agent integrations. Setup guides cover Claude Code, Codex, opencode, Junie and Pi. For Claude Code the homepage shows three environment variables:
ANTHROPIC_BASE_URL=https://api.otari.ai/api,ANTHROPIC_AUTH_TOKENset to your Otari key, andANTHROPIC_MODEL. A separate laptop-side CLI (brew install mozilla-ai/tap/otari) providesotari hookfor "Agent Guardrails" andotari import claude-codefor usage that did not pass through the gateway.
Ways to run it
There are three. Self-hosted: docker run -v otari:/data -p 127.0.0.1:8000:8000 mzdotai/otari:latest starts the gateway with SQLite and no configuration; on first start it prints a one-time setup link that carries the master key. For production the repository ships a Docker Compose file that runs it on PostgreSQL. Hosted on otari.ai: sign up with GitHub, Google or email, create a key and point your client at api.otari.ai. Hosted providers listed on the homepage are Mistral, Fireworks AI, Together AI, Nebius, OVHcloud, Amazon Bedrock and DeepInfra, plus a first-party Mozilla.ai provider for open-weight models. For companies: hosted or self-hosted with Mozilla AI's help on deployment and support, starting from a demo call.
What we checked (December 6, 2026)
We built the gateway from source at commit f8af95e (December 4, 2026, the v0.65.0 release day) in a Linux sandbox and ran it with SQLite and no provider keys. uv sync installed 197 packages into a 544 MB virtual environment; the project pins its own uv version (0.13.x) and requires Python 3.13 or later. The server printed the one-time setup link exactly as the README describes and published an OpenAPI document with 356 paths and 492 operations. We then created a budget, a user bound to it and a key limited to one model, and sent requests with that key:
$ curl -s -X POST $B/api/v1/chat/completions -d '{"model":"openai:gpt-4o-mini",...}'
{"detail":"Missing Otari-Key, Authorization, or x-api-key header"} HTTP 401
$ curl -s -X POST $B/api/v1/budgets -H "Authorization: Bearer otari-mk-..." \
-d '{"name":"demo-agent","max_budget":0.50,"request_limit":2,"budget_duration_sec":86400}'
{"budget_id":"c48de53b-...","max_budget":0.5,"request_limit":2,"budget_duration_sec":86400,...}
$ curl -s -X POST $B/api/v1/users -d '{"user_id":"review-agent","budget_id":"c48de53b-..."}'
{"user_id":"review-agent",...,"next_budget_reset_at":"2026-12-07T05:27:38+00:00","blocked":false}
$ curl -s -X POST $B/api/v1/keys -d '{"key_name":"review-agent-key","user_id":"review-agent",
"allowed_models":["mistral:mistral-small-latest"]}'
{"key":"tk-...","allowed_models":["mistral:mistral-small-latest"],
"scopes":["inference:run","web:search","web:fetch","code:execute","mcp:read","mcp:execute"],...}
# a model the key is not allowed to use
{"detail":"Model 'openai:gpt-4o-mini' is not permitted for this API key.","code":"model_not_allowed"} HTTP 403
# the allowed model, with no provider credential on this gateway
{"detail":"No credential is configured for provider 'mistral'. An operator can add the provider as a
hosted provider, or the organization can add its own provider key.","code":"provider_not_configured"} HTTP 424
# same request on the Anthropic-style route, with x-api-key
{"type":"error","error":{"type":"api_error","message":"No credential is configured..."}} HTTP 424
$ curl -s $B/api/v1/key/budget -H "Authorization: Bearer tk-..."
{"detail":"This API key lacks the 'usage:read' scope, which this endpoint requires."}
# the user after those calls
{'spend': 0.0, 'current_requests': 0, 'current_tokens': 0, 'blocked': False}
What this shows: model allow-lists are enforced at the gateway with a clear machine-readable code; the Anthropic route returns errors in Anthropic's own error shape, which matters for clients like Claude Code that parse them; rejected requests did not use up any of the two-request budget; and a default key gets six scopes (inference, web search and fetch, code execution, MCP read and execute) but not usage:read, so an agent cannot read its own remaining budget unless you grant that scope. One inconsistency: the README's sample output says "Otari 1.0.0 is running", while release tags are still 0.x (v0.65.0) and a source build reports 0.0.0-dev. The repository had about 1,000 stars, 160 forks, 2,910 commits and 201 open issues when we checked; it was created on April 2, 2026, and shipped five releases between December 2 and December 4.
Pricing (checked December 6, 2026)
- Self-hosted: free. You pay for your own infrastructure and providers.
- Hosted on otari.ai: list price per token, paid from a wallet. Top-ups add a 4.5% service fee, so putting $100 of credit in costs $104.50. Requests made with your own provider keys are free.
- Subscriptions: plans for coding work on open-weight models, with usage included and no top-up fee, at what the homepage calls "early access prices". The amounts are not stated on the public homepage or in otari.ai's llms-full.txt.
- For your company: a 30-minute call, an assessment of your AI spend and a pilot proposal if it fits; no published price.
How it compares
| Otari | Kaeso | UnoRouter | RouteMux | |
|---|---|---|---|---|
| What it is | Open-source gateway plus Mozilla AI's hosted platform | Self-hosted AI gateway written in Rust | Open-source LLM gateway with one OpenAI-compatible key | Hosted, reliability-focused gateway with one API key |
| Licence | Apache-2.0 | MIT | Open source | Proprietary service |
| API formats | OpenAI chat, OpenAI Responses, Anthropic Messages | OpenAI and Anthropic compatible | OpenAI compatible | Works through the SDK you already use |
| Server-side tools (code execution, web search, MCP) | Yes, optional | Not listed | Not listed | Not listed |
| Budgets and per-key limits | Dollars, tokens, requests, RPM, TPM; model and tool allow-lists | Budgets, SSO, request logs | Not listed | Not listed |
| Pricing model | Free self-hosted; hosted at list price + 4.5% top-up fee | Open source | Free tier, then pay as you go | Paid |
Comparison details for the other three come from their TechLogHub listings. If you want the gateway as a single small binary to run yourself, Kaeso is the closer fit; if you want someone else to run it and only need model access, the hosted routers are simpler. Otari's distinguishing features are the server-side tools for open-weight models and the depth of its budget and key controls.
Limits and trade-offs
- It is a large Python service. The source build pulled in 197 packages and 544 MB, including SDKs for many providers and guardrail vendors. Fine in a container; heavy if you wanted a lightweight sidecar.
- One worker process.
otari serve --workerssays only 1 is supported today and rejects higher values, so scaling means running more instances behind a load balancer. - Fast-moving 0.x software. Five releases in three days and 201 open issues at the time of writing. Pin a version and read the changelog before upgrading.
- Hosted versus self-hosted privacy. Mozilla AI says that when you self-host, "your prompts, your completions, your traces, and your usage logs never touch us". On otari.ai, requests pass through Mozilla AI's infrastructure; read its privacy notice if that matters.
- Tools are not free capability. Code execution needs the Docker sandbox profile and web search needs SearXNG or a paid search API. Mozilla AI's claim that tools bring open-weight models "close to frontier capability" is the company's own; we did not benchmark it.
- Subscription prices are not public. You cannot compare the subscription plans with other coding-model subscriptions such as OpenCode's Go plan without signing up.
Who it is for
Platform and DevOps teams that want one controlled entry point for every model their company uses; teams running coding agents on open-weight models who need web search and code execution on the server side; and companies that need per-person or per-agent spend limits and a record of every request, with the option to keep the whole thing on their own infrastructure.
Value & Audience
Value Proposition
Put every model your people and agents use behind one endpoint you control, with per-key model allow-lists, budgets enforced before a request is sent, and web search and code execution for open-weight models.
Problem Solved
Moving to open-weight models usually loses the tools frontier providers bundle, and once many people and agents share many provider keys nobody can attribute or cap the spend.
Target Audience
Tech Stack
Social & Links
Loading ratings...
Loading comments...
Gallery

Feedback & Roadmap
Otari FAQ
Common questions about Otari's features, pricing, and use cases
Is Otari free to use?
Yes. Otari is open source and free to use.
What are some alternatives to Otari?
Popular AI Tools & Platforms alternatives to Otari include Jev, Ricebowl AI and ToSong.
Otari appears in
You May Also Like

Jev
Jev by TypeSafe AI is a model API that takes state plus typed questions and returns Choice, Score and true/false answers with calibrated probabilities instead of generated text.
View ProductRicebowl AI
Ricebowl AI is an independent commercial AI creation platform for image and video workflows. Generate watermark-free, commercial-ready exports with flagship models including Sora 2, Veo, Kling, Flux and more for marketing teams, ads, and product creatives.
View Product
ToSong
ToSong is an AI song maker: paste lyrics or describe a song and get melody, arrangement and vocals in one generation. 20 free credits on signup.
View Product
Quick I Ching
Use the I Ching online for free with Three-Coin, Yarrow Stalk, Mei Hua Yi Shu, or Manual Cast. Get your hexagram, changing lines, relating hexagram when applicable, and a clear I Ching reading.
View ProductOne email a week
TechLogHub tracks 1,102 tools and 644 open-source projects. Get the week's new launches, release roundups and open-source picks — nothing else.
Get the TechLogHub digest
One email a week: new and trending developer tools, fresh comparisons, and what shipped. Unsubscribe in one click.


