All 45 Dependencies
Every package otari depends on, ranked by repo health score.
Otari is a self-hosted, OpenAI- and Anthropic-compatible LLM gateway from Mozilla AI. It sits between applications and 40+ model providers behind a single endpoint, so client code targets one URL and one wire format instead of juggling a different SDK, auth scheme, and error format per provider. Requests to `/v1/chat/completions`, `/v1/responses`, and `/v1/messages` are authenticated, budget-checked, dispatched through the any-llm routing layer, logged, and billed, all before or immediately after the call reaches the underlying provider.
Access control is built around three primitives: users (the identity spend and usage attach to), API keys (the credential clients present, each scoped to a user and optionally restricted to a model allow-list), and budgets (spending caps with optional reset periods, enforced by reserving the estimated cost before a request runs rather than reconciling after the invoice arrives). Provider credentials are supplied once as environment variables or added through the built-in admin dashboard, encrypted at rest with a Fernet key, and never exposed to calling clients, who only ever see their own `gw-` virtual key.
Beyond routing, Otari runs two opt-in tools itself: a sandboxed Python REPL (`otari_code_execution`) and a web-search tool, giving any model, including open-weight ones with no native tool support, feature parity with what frontier provider APIs expose natively. A request-level guardrails field lets a caller run a prompt-injection (or other) check before the provider is ever called, either in monitor mode, where the verdict is surfaced on a response header, or block mode, where the request is rejected with a 403 and no provider call is made.
Otari runs standalone with its own SQLite or Postgres database, or in hybrid mode connected to the hosted otari.ai platform, which takes over provider routing, auth, and usage tracking and adds multi-provider fallback. It ships as a Docker image, a Docker Compose stack with profiles for the code-execution, web-search, and guardrails services, and one-click templates for Render and Railway, alongside official Python, TypeScript, Rust, and Go client SDKs and a CLI.