# Otari > Otari is an open-source AI gateway by Mozilla AI. It puts every model and tool your agents use behind one OpenAI- and Anthropic-compatible API, with API keys, access control, guardrails, budgets, and usage and cost tracking. Run it hosted on otari.ai or self-host it for free. Otari is built by Mozilla AI, part of the Mozilla family. It helps companies run AI on any model, open-weight or frontier, and keep its cost in view. The gateway is open source under the Apache-2.0 license (https://github.com/mozilla-ai/otari). ## How to run Otari - Hosted on otari.ai: send your first request in minutes. Mozilla AI runs it for you. Sign up at https://otari.ai/dashboard/signup with GitHub, Google or email. - Self-hosted: run the open-source gateway on your own infrastructure, free. Guide: https://docs.otari.ai/self-hosting - For your company: hosted or self-hosted, with Mozilla AI by your side for deployment, support and the features your team needs. Book a demo on the otari.ai homepage: https://otari.ai/ ## Get started in two steps 1. Create a free account 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. Full quickstart: https://docs.otari.ai/getting-started/quickstart Example for Claude Code, as shown on otari.ai: ``` 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 Any tool that speaks the OpenAI or Anthropic API works with Otari. The otari.ai homepage lists these as working with Otari today. Hosted providers (browse their models at https://otari.ai/dashboard/models): - Mistral - Fireworks AI - Together AI - Nebius - OVHcloud - Amazon Bedrock - DeepInfra Coding agents: - Claude Code: https://docs.otari.ai/guides/integrations/claude-code - Codex: https://docs.otari.ai/guides/integrations/codex - opencode: https://docs.otari.ai/guides/integrations/opencode - Junie: https://docs.otari.ai/guides/integrations/junie - Pi: https://github.com/mozilla-ai/pi-otari SDKs and clients: - Otari SDK: https://github.com/mozilla-ai/otari-sdk-python - OpenAI-compatible clients: https://docs.otari.ai/getting-started/quickstart - any-llm: https://github.com/mozilla-ai/any-llm ## Pricing - Self-hosted: free. Open source. You run it and pay for your own infrastructure. - Hosted on otari.ai: pay list price per token. Top-ups add a 4.5% service fee. Your own provider keys are free. ## Talk to Otari Book a demo with the form on the otari.ai homepage: https://otari.ai/. 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. ## Links - Documentation: https://docs.otari.ai/ - GitHub: https://github.com/mozilla-ai/otari - GitHub issues: https://github.com/mozilla-ai/otari/issues - Changelog: https://github.com/mozilla-ai/otari/releases - Discord: https://discord.gg/ZfZPfTdtSe - Otari at Mozilla AI: https://www.mozilla.ai/product/otari - Terms of Service: https://otari.ai/terms - Privacy Notice: https://otari.ai/privacy