[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:otari":3},"\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmozilla-ai\u002Fotari\u002FHEAD\u002Fassets\u002Fotari-logo.svg\" width=\"320\" alt=\"Otari logo\" \u002F>\n\u003C\u002Fp>\u003Cdiv align=\"center\">\u003Cp>\u003Cstrong>An AI gateway you own and run.\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Route one endpoint to 40+ providers, issue virtual keys, enforce budgets, and\ntrack usage.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-tests.yml\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-tests.yml\u002Fbadge.svg\" alt=\"Tests\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-lint.yml\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-lint.yml\u002Fbadge.svg\" alt=\"Lint\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-typecheck.yml\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-typecheck.yml\u002Fbadge.svg\" alt=\"Typecheck\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-docker.yml\" rel=\"nofollow ugc noopener\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Factions\u002Fworkflows\u002Fotari-docker.yml\u002Fbadge.svg\" alt=\"Docker\" \u002F>\u003C\u002Fa>\n\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.13%2B-blue.svg\" alt=\"Python 3.13+\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Fblob\u002FHEAD\u002Fdocs\u002Findex.md\" rel=\"nofollow ugc noopener\">Docs\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fotari.ai\" rel=\"nofollow ugc noopener\">otari.ai\u003C\u002Fa> ·\n\u003Ca href=\"https:\u002F\u002Fblog.mozilla.ai\u002Fotari-own-your-ai-stack\u002F\" rel=\"nofollow ugc noopener\">Launch blog\u003C\u002Fa> ·\n\u003Ca href=\"https:\u002F\u002Fdiscord.gg\u002FZfZPfTdtSe\" rel=\"nofollow ugc noopener\">Discord\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>English · \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Fblob\u002FHEAD\u002FREADME.zh-CN.md\" rel=\"nofollow ugc noopener\">简体中文\u003C\u002Fa>\u003C\u002Fp>\n\u003C\u002Fdiv>\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fmozilla-ai\u002Fotari\u002FHEAD\u002Fassets\u002Fotari-demo.gif\" width=\"720\" alt=\"Otari dashboard tour: spend overview, usage by model, a request rescued by a routing fallback, two models compared in the Playground, the model catalog, routing policies, API keys, members, budgets, and providers\" \u002F>\n\u003C\u002Fp>\u003Cp>Otari sits between your applications and model providers. It authenticates\nrequests, resolves provider credentials, enforces budgets before dispatch, and\nrecords usage afterwards. Provider calls go through\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fany-llm\" rel=\"nofollow ugc noopener\">any-llm\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>Run Otari with your own database and provider keys.\u003C\u002Fp>\n\u003Ch2>Why Otari\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>One OpenAI and Anthropic-compatible endpoint for many providers\u003C\u002Fli>\n\u003Cli>Provider credentials stay behind the gateway\u003C\u002Fli>\n\u003Cli>Revocable API keys with user, workspace, and model scope\u003C\u002Fli>\n\u003Cli>Budget checks before spend and usage records after settlement\u003C\u002Fli>\n\u003Cli>Local routing policies for failover, conditional selection, traffic splitting, and spill-over past a rate limit\u003C\u002Fli>\n\u003Cli>Optional code execution, web search, MCP, inference guardrails, and file understanding\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2>Quickstart\u003C\u002Fh2>\n\u003Cp>Run Otari with Docker. It needs no configuration:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">docker run -v otari:\u002Fdata -p 127.0.0.1:8000:8000 mzdotai\u002Fotari:latest\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>On its first start, Otari prints a setup link once, and little else:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-text\">Otari 1.0.0 is running at http:\u002F\u002Flocalhost:8000\n\nOpen this link to choose your password and finish setup:\n\nhttp:\u002F\u002Flocalhost:8000\u002Fsetup#key=otari-mk-...\n\nIt is shown only once and carries your master key, so treat it like one.\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Open it and choose the email and password you will sign in with. Then add a\nprovider on the dashboard's \u003Cstrong>Hosted providers\u003C\u002Fstrong> page and enable default\npricing there. The key in the link is the gateway's master key, so keep the\nlink private.\u003C\u002Fp>\n\u003Cp>Create an API key in the dashboard, from the setup guide on the \u003Cstrong>Overview\u003C\u002Fstrong> or\non the \u003Cstrong>API keys\u003C\u002Fstrong> page, and send a request with it:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">curl http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Authorization: Bearer tk-...\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"openai:gpt-4o-mini\",\n    \"messages\": [{\"role\": \"user\", \"content\": \"Say hello.\"}]\n  }'\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>OpenAI clients work by setting \u003Ccode>base_url\u003C\u002Fcode> to\n\u003Ccode>http:\u002F\u002Flocalhost:8000\u002Fapi\u002Fv1\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The \u003Ccode>otari\u003C\u002Fcode> volume holds the SQLite database and, beside it, the generated key\nthat encrypts stored provider credentials, so a new container started with the\nsame \u003Ccode>-v otari:\u002Fdata\u003C\u002Fcode> keeps its data. Without \u003Ccode>-v\u003C\u002Fcode>, Docker gives each container\na fresh anonymous volume. Use the Compose setup below to run on PostgreSQL.\u003C\u002Fp>\n\u003Cp>The command a developer runs next to a coding agent (\u003Ccode>otari hook\u003C\u002Fcode>,\n\u003Ccode>otari import claude-code\u003C\u002Fcode>) installs on its own, without the server:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">brew install mozilla-ai\u002Ftap\u002Fotari\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>See \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Fblob\u002FHEAD\u002Fcli\u002Fdocs\u002Fagent-guardrails.md\" rel=\"nofollow ugc noopener\">Agent Guardrails\u003C\u002Fa> and\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmozilla-ai\u002Fotari\u002Fblob\u002FHEAD\u002Fdocs\u002Fclaude-code.md\" rel=\"nofollow ugc noopener\">Claude Code\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2>Ru\u003C\u002Fh2>\n",1795114437989]