█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Otari

Mozilla.ai का सेल्फ-होस्टेड AI गेटवे, जिसमें वर्चुअल API keys, बजट और रूटिंग policies हैं

Gateways & Routingओपन सोर्स
ताज़ा
v0.60.0
अपडेट किया गया
1 दिस॰ 2026
भाषा
Python
लाइसेंस
Apache-2.0

नया क्या है

v0.60.01 दिस॰ 2026

The inference country gate can hold more than one account country, the dashboard sidebar was simplified, and Rules were renamed Guardrails in the web UI.

संक्षेप में

Otari क्या है?

Otari Mozilla.ai का सेल्फ-होस्टेड AI गेटवे, जिसमें वर्चुअल API keys, बजट और रूटिंग policies हैं. यह Evaluation & Production Ops टूल्स की Gateways & Routing श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: गेटवे शुरू करें.

अपडेट किया गया Markdown वर्शन ↗

सारांश

Otari, Mozilla.ai का एक ओपन सोर्स AI गेटवे है, जिसे आप अपने इन्फ़्रास्ट्रक्चर पर चलाते हैं। यह आपके एप्लिकेशन और मॉडल प्रोवाइडर के बीच बैठता है: यह हर रिक्वेस्ट को authenticate करता है, provider credentials ढूंढता है, call भेजे जाने से पहले बजट लागू करता है और बाद में usage रिकॉर्ड करता है। एप्लिकेशन एक ही OpenAI- और Anthropic-compatible एंडपॉइंट से बात करते हैं, जो 40+ providers के आगे लगा है, और provider calls खुद Mozilla.ai की any-llm library के ज़रिए जाती हैं।

इसका काम प्रोवाइडर API keys और खर्च को ऑपरेटर के नियंत्रण में रखना है। क्लाइंट्स को किसी यूज़र, वर्कस्पेस और मॉडलों के सेट तक सीमित, रद्द किए जा सकने वाले API keys मिलते हैं, इसलिए वे कभी upstream credentials नहीं देखते। खर्च से पहले बजट जाँचा जाता है और उसके बाद हिसाब किया जाता है। एक वेब डैशबोर्ड प्रोवाइडर, मॉडल, रूटिंग, टूल्स, कीज़, मेंबर, बजट, एक्टिविटी और यूसेज को मैनेज करता है, और चल रहा सर्वर अपने completion और management APIs के लिए Swagger UI और एक OpenAPI document भी प्रकाशित करता है।

The Otari dashboard Overview page showing spend today, 30-day spend, requests, error rate, budget health, a daily spend chart and recent activity by model and key.
The Overview page: spend, traffic, error rate and budget health across the gateway.Otari README demo ↗

रूटिंग को policies के रूप में व्यक्त किया जाता है: कॉलर को दिखने वाला एक model name, जो एक या अधिक असली मॉडलों तक रिज़ॉल्व होता है। इसका इस्तेमाल फ़ेलओवर, शर्त के आधार पर चयन, weighted traffic splitting और rate limit पार होने पर spill-over के लिए होता है। वैकल्पिक सेवाएँ server-side code execution, web search, MCP, inference guardrails और file understanding जोड़ती हैं। Mozilla.ai ने मई 2026 में Otari की घोषणा की, साथ में Otari.ai भी, जो उसी इंजन पर बना एक होस्टेड प्लेटफ़ॉर्म है।

यह क्या करता है

  • एक OpenAI- और Anthropic-compatible एंडपॉइंट (`/api/v1/chat/completions`, `/api/v1/messages`, `/api/v1/responses`) 40+ providers के लिए
  • रद्द किए जा सकने वाली वर्चुअल API keys, जो यूज़र, वर्कस्पेस और मॉडल के हिसाब से सीमित होती हैं, provider credentials गेटवे के पीछे रखी जाती हैं
  • रिक्वेस्ट भेजे जाने से पहले बजट जाँच और उसके सेटल होने के बाद usage रिकॉर्ड
The Otari Routing page listing four policies, coding, fast, smart and thrifty, with their fallback, weighted and dynamic targets.
Routing policies: failover, weighted splits and per-request selection behind one model name.Otari README demo ↗
  • फ़ेलओवर, शर्त के आधार पर चयन, weighted traffic splitting और rate limit पार होने पर spill-over के लिए रूटिंग policies
  • वैकल्पिक code execution सैंडबॉक्स, web search, MCP, inference guardrails और file understanding
  • प्रोवाइडर, मॉडल, रूटिंग, कीज़, मेंबर, बजट, एक्टिविटी और usage के लिए डैशबोर्ड, साथ में एक model Playground
  • SQLite पर एकल Docker container, या PostgreSQL पर Docker Compose

शुरू करें

README की क्विकस्टार्ट गाइड एक Docker image से बिना किसी कॉन्फ़िगरेशन के पूरा गेटवे चलाती है; Compose सेटअप में PostgreSQL और वैकल्पिक सेवाएँ जुड़ जाती हैं।

गेटवे शुरू करें

`otari` वॉल्यूम SQLite डेटाबेस और उस key को सहेजता है जो सेव की गई provider credentials को एन्क्रिप्ट करती है, इसलिए उसी वॉल्यूम वाला नया container अपना डेटा बनाए रखता है।

bashbash
docker run -v otari:/data -p 127.0.0.1:8000:8000 mzdotai/otari:latest

डैशबोर्ड में सेटअप पूरा करें

पहली बार शुरू होने पर Otari एक बार इस्तेमाल होने वाला सेटअप लिंक प्रिंट करता है, जिसमें master key होती है। उसे खोलें, वह ईमेल और पासवर्ड चुनें जिससे आप साइन इन करेंगे, Hosted providers पेज पर एक प्रोवाइडर जोड़ें और वहीं default प्राइसिंग सक्षम करें। फिर API keys पेज पर एक API key बनाएँ।

टेक्स्टटेक्स्ट
Open this link to choose your password and finish setup:

http://localhost:8000/setup#key=otari-mk-...

एक रिक्वेस्ट भेजें

जो key आपने बनाई है उसका इस्तेमाल करें। OpenAI क्लाइंट्स `base_url` को `http://localhost:8000/api/v1` पर सेट करके काम करते हैं।

bashbash
curl http://localhost:8000/api/v1/chat/completions \
  -H "Authorization: Bearer tk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai:gpt-4o-mini",
    "messages": [{"role": "user", "content": "Say hello."}]
  }'
The Otari Activity page with an hourly request chart and a per-request log of user, model, routing decision, API key, tokens and cost.
Activity logs every request with its routing decision, tokens and cost, but no request or response content.Otari README demo ↗

फ़ेलओवर policy जोड़ें

रूटिंग डॉक्स के अनुसार: कॉलर `model: fast` भेजते हैं, और अगर पहला प्रोवाइडर किसी भी response के भेजे जाने से पहले फेल हो जाता है, तो Otari फ़ॉलबैक आज़माता है।

yamlyaml
routing:
  policies:
    fast:
      select:
        - default: openai:gpt-5-mini
      on_failure:
        - anthropic:claude-haiku-4-5

पूरा स्टैक चलाएँ

Compose PostgreSQL पर Otari चलाता है; वैकल्पिक प्रोफ़ाइल code sandbox और web search सेवाएँ जोड़ते हैं।

bashbash
git clone https://github.com/mozilla-ai/otari
cd otari
cp config.example.yml config.yml
# set a master key, provider credentials and pricing in config.yml
docker compose pull
docker compose up -d
docker compose --profile code-exec --profile web-search up -d

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • टीमों और एप्लिकेशन को provider credentials दिए बिना उनकी अपनी रद्द की जा सकने वाली, बजट-सीमित API keys दें
  • एक model name के पीछे एक प्रोवाइडर से दूसरे पर फ़ेलओवर करें, या मॉडलों के बीच ट्रैफ़िक बाँटें
  • हर यूज़र, key और मॉडल के लिए खर्च, tokens, latency और failures एक ही जगह पर ट्रैक करें
The Otari Playground in Compare mode, sending the same question to two models side by side.
The Playground compares two models on the same prompt.Otari README demo ↗
  • किसी एक पर routing policy लगाने से पहले Playground में दो मॉडलों की साथ-साथ तुलना करें

How Otari compares

Otari alongside other open-source gateways & routing tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
OmniRoute★ 91.8kसैकड़ों प्रोवाइडर को एक OpenAI-compatible endpoint के पीछे लाने वाला लोकल-फ़र्स्ट AI gateway
Free Claude Code★ 75.9kClaude Code और नौ अन्य एजेंट CLI को मुफ़्त, पेड या लोकल मॉडल प्रोवाइडर से जोड़ें
LiteLLM★ 64.4kएक OpenAI-compatible API के ज़रिए 100+ LLM प्रोवाइडर को कॉल करें
magpie★ 44.8kएक लोकल गेटवे और मेन्यू बार ऐप, जो हर coding agent के लिए कोई भी मॉडल चुनने देता है
Kong Gateway★ 44.4kAPI गेटवे जो आपके LLM और MCP ट्रैफ़िक को भी संभालता है
9Router★ 33.1kकोडिंग CLI के लिए लोकल राउटर, जिसमें quota ट्रैकिंग, tiered fallback और token compression शामिल है
Experiential★ 20.6kहोस्टेड, BYOK, लोकल और कस्टम मॉडल्स के लिए एक OpenAI-compatible control plane
Otari★ 1kMozilla.ai का सेल्फ-होस्टेड AI गेटवे, जिसमें वर्चुअल API keys, बजट और रूटिंग policies हैं