---
title: "Otari by Mozilla AI: open-source AI gateway for any model"
description: "Open-weight and frontier models in your coding agent through one OpenAI- and Anthropic-compatible API, with budgets and spend tracking. Hosted or self-hosted."
canonical_url: https://otari.ai/
last_updated: 2026-11-23
---

Open-source AI gateway by Mozilla AI

# Any model in your coding agent **in 5 minutes**

Put open-weight and frontier models behind one API key. See what drives spend, cap it before it runs over, and send each request to the right model.

Or put your app's LLM calls behind one key: switch models, see the cost of every request.

[Get started free](https://otari.ai/dashboard/signup)

## Choose how to **run Otari**

- **Hosted on otari.ai** Send your first request in minutes. Mozilla AI runs it for you. [Get started free](https://otari.ai/dashboard/signup)
- **Self-hosted** Run the open-source gateway on your own infrastructure, free. [Read the self-host guide](https://docs.otari.ai/self-hosting)
- **For your company** Hosted or self-hosted, with Mozilla AI by your side: deployment, support and the features your team needs.

## Get started in **two steps**

1. Create a free account. Sign up with GitHub, Google or email, and create an API key.
2. Point your agent at Otari. Set the base URL, your API key and a model. Every request shows up in Activity.

[Read the full quickstart in the docs](https://docs.otari.ai/getting-started/quickstart)

```bash
export ANTHROPIC_BASE_URL=https://api.otari.ai/api
export ANTHROPIC_AUTH_TOKEN="$OTARI_API_KEY"
export ANTHROPIC_MODEL=anthropic:claude-sonnet-4-6
claude
```

## What you get **from day one**

- **Model access** Open-weight and frontier models through one OpenAI- and Anthropic-compatible API.
- **Server-side tools** Web search, web fetch and code execution for any model, open-weight included.
- **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. Filter 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.

## Works with your **models and tools**

Providers, coding agents and SDKs that work with Otari today. Any tool that speaks the OpenAI or Anthropic API works too.

Mistral Provider [See models](https://otari.ai/dashboard/models?provider=mistral)

Fireworks AI Provider [See models](https://otari.ai/dashboard/models?provider=fireworks)

Together AI Provider [See models](https://otari.ai/dashboard/models?provider=together)

Nebius Provider [See models](https://otari.ai/dashboard/models?provider=nebius)

OVHcloud Provider [See models](https://otari.ai/dashboard/models?provider=ovhcloud)

Amazon Bedrock Provider [See models](https://otari.ai/dashboard/models?provider=bedrock)

DeepInfra Provider [See models](https://otari.ai/dashboard/models?provider=deepinfra)

Claude Code Coding agent [Setup guide](https://docs.otari.ai/guides/integrations/claude-code)

Codex Coding agent [Setup guide](https://docs.otari.ai/guides/integrations/codex)

opencode Coding agent [Setup guide](https://docs.otari.ai/guides/integrations/opencode)

Junie Coding agent [Setup guide](https://docs.otari.ai/guides/integrations/junie)

Pi Coding agent [Setup guide](https://github.com/mozilla-ai/pi-otari)

Otari SDK SDK [Setup guide](https://github.com/mozilla-ai/otari-sdk-python)

OpenAI-compatible clients SDK [Setup guide](https://docs.otari.ai/getting-started/quickstart)

any-llm SDK [Setup guide](https://github.com/mozilla-ai/any-llm)

## Start free. **Pay for what you use.**

Self-hosted

Free

Open source. You run it and pay for your own infrastructure.

[Get the code on GitHub](https://github.com/mozilla-ai/otari)

Hosted on otari.ai

4.5% fee on top-ups

Top up, then pay list price per token. Your own provider keys are free.

[Get started free](https://otari.ai/dashboard/signup)

Early access pricing

## Subscriptions for **your coding work**

The best open-weight models, with tools and guardrails built in. Early access prices, usage included, no top-up fee.

[See plans](https://otari.ai/subscriptions)

## Talk to **Otari**

Otari is built by Mozilla AI, part of the Mozilla family. We help companies run AI on any model, open-weight or frontier, and keep its cost in view.

What to expect

1. A 30-minute call about how your company uses AI.
2. An assessment of your AI spend, showing where open-weight models with tools could cut cost.
3. A pilot proposal, if Otari is a fit.

## Help and support

- [Docs](https://docs.otari.ai/)
- [Discord](https://discord.gg/4gf3zXrQUc)
- [GitHub issues](https://github.com/mozilla-ai/otari/issues)

## Get started

Your first request is five minutes away. Start free on otari.ai, or self-host the open-source gateway.

[Get started free](https://otari.ai/dashboard/signup)

## Sitemap

See the full [sitemap](https://otari.ai/sitemap.md) for all pages on otari.ai.
