Skip to content
Back to search

otari

MarketplaceWorks with Claude CodeGitHubIncomplete

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/mozilla-ai/otari with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/mozilla-ai/otari'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/mozilla-ai--otari/badge.svg)](/listings/mozilla-ai--otari)

HTML

<a href="/listings/mozilla-ai--otari"><img src="/api/listings/mozilla-ai--otari/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Run an ephemeral gateway with Docker:

docker run --rm -p 8000:8000 \
  -e OPENAI_API_KEY=YOUR_OPENAI_KEY \
  -e OTARI_CONFIG_YAML='
default_pricing: true
providers:
  openai:
    api_key: ${OPENAI_API_KEY}
' \
  mzdotai/otari:latest \
  otari serve

On the first empty database, Otari creates an API key and prints it once:

No API keys found. Created bootstrap key for first run. Save this key now:
tk-...

Send a request with that key:

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."}]
  }'

OpenAI clients work by setting `base_url` to `http://localhost:8000/api/v1`.

This container uses SQLite inside the container and is deleted when it stops. Use the Compose setup below for persistent data.

The command a developer runs next to a coding agent (`otari hook`, `otari import claude-code`) installs on its own, without the server:

brew install mozilla-ai/tap/otari

See [Agent Guardrails](docs/agent-guardrails.md) and [Use with Claude Code](docs/use-with-claude-code.md).

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 18 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "otari",
  3. "owner": {
  4. "name": "Mozilla AI"
  5. },
  6. "metadata": {
  7. "description": "Plugins that connect a coding agent to Otari, the open-source AI gateway."
  8. },
  9. "plugins": [
  10. {
  11. "name": "otari-router",
  12. "source": "./plugins/otari-router",
  13. "description": "Asks an Otari gateway which model each Claude Code subagent should run on, and starts it there.",
  14. "category": "productivity",
  15. "tags": ["otari", "model-routing", "cost", "subagents", "llm-gateway"]
  16. }
  17. ]
  18. }
README.md · README · 180 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <p align="center">
  2. <img src="assets/otari-logo.svg" width="320" alt="Otari logo"/>
  3. </p>
  4. <div align="center">
  5. **An AI gateway you own and run.**
  6. Route one endpoint to 40+ providers, issue virtual keys, enforce budgets, and
  7. track usage.
  8. [![Tests](https://github.com/mozilla-ai/otari/actions/workflows/otari-tests.yml/badge.svg)](https://github.com/mozilla-ai/otari/actions/workflows/otari-tests.yml)
  9. [![Lint](https://github.com/mozilla-ai/otari/actions/workflows/otari-lint.yml/badge.svg)](https://github.com/mozilla-ai/otari/actions/workflows/otari-lint.yml)
  10. [![Typecheck](https://github.com/mozilla-ai/otari/actions/workflows/otari-typecheck.yml/badge.svg)](https://github.com/mozilla-ai/otari/actions/workflows/otari-typecheck.yml)
  11. [![Docker](https://github.com/mozilla-ai/otari/actions/workflows/otari-docker.yml/badge.svg)](https://github.com/mozilla-ai/otari/actions/workflows/otari-docker.yml)
  12. ![Python 3.13+](https://img.shields.io/badge/python-3.13%2B-blue.svg)
  13. [Docs](docs/index.md) · [otari.ai](https://otari.ai) ·
  14. [Launch blog](https://blog.mozilla.ai/otari-own-your-ai-stack/) ·
  15. [Discord](https://discord.gg/ZfZPfTdtSe)
  16. English · [简体中文](README.zh-CN.md)
  17. </div>
  18. <p align="center">
  19. <img src="assets/otari-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"/>
  20. </p>
  21. Otari sits between your applications and model providers. It authenticates
  22. requests, resolves provider credentials, enforces budgets before dispatch, and
  23. records usage afterwards. Provider calls go through
  24. [any-llm](https://github.com/mozilla-ai/any-llm).
  25. Run Otari with your own database and provider keys.
  26. ## Why Otari
  27. - One OpenAI and Anthropic-compatible endpoint for many providers
  28. - Provider credentials stay behind the gateway
  29. - Revocable API keys with user, workspace, and model scope
  30. - Budget checks before spend and usage records after settlement
  31. - Local routing policies for failover, conditional selection, traffic splitting, and spill-over past a rate limit
  32. - Optional code execution, web search, MCP, inference guardrails, and file understanding
  33. ## Quickstart
  34. Run Otari with Docker. It needs no configuration:
  35. ```bash
  36. docker run -v otari:/data -p 127.0.0.1:8000:8000 mzdotai/otari:latest
  37. ```
  38. On its first start, Otari prints a setup link once, and little else:
  39. ```text
  40. Otari 1.0.0 is running at http://localhost:8000
  41. Open this link to choose your password and finish setup:
  42. http://localhost:8000/setup#key=otari-mk-...
  43. It is shown only once and carries your master key, so treat it like one.
  44. ```
  45. Open it and choose the email and password you will sign in with. Then add a
  46. provider on the dashboard's **Hosted providers** page and enable default
  47. pricing there. The key in the link is the gateway's master key, so keep the
  48. link private.
  49. Create an API key in the dashboard, from the setup guide on the **Overview** or
  50. on the **API keys** page, and send a request with it:
  51. ```bash
  52. curl http://localhost:8000/api/v1/chat/completions \
  53. -H "Authorization: Bearer tk-..." \
  54. -H "Content-Type: application/json" \
  55. -d '{
  56. "model": "openai:gpt-4o-mini",
  57. "messages": [{"role": "user", "content": "Say hello."}]
  58. }'
  59. ```
  60. OpenAI clients work by setting `base_url` to
  61. `http://localhost:8000/api/v1`.
  62. The `otari` volume holds the SQLite database and, beside it, the generated key
  63. that encrypts stored provider credentials, so a new container started with the
  64. same `-v otari:/data` keeps its data. Without `-v`, Docker gives each container
  65. a fresh anonymous volume. Use the Compose setup below to run on PostgreSQL.
  66. The command a developer runs next to a coding agent (`otari hook`,
  67. `otari import claude-code`) installs on its own, without the server:
  68. ```bash
  69. brew install mozilla-ai/tap/otari
  70. ```
  71. See [Agent Guardrails](cli/docs/agent-guardrails.md) and
  72. [Claude Code](docs/claude-code.md).
  73. ## Run the full stack
  74. ```bash
  75. git clone https://github.com/mozilla-ai/otari
  76. cd otari
  77. cp config.example.yml config.yml
  78. # Set a master key, provider credentials, and pricing in config.yml.
  79. # Provider copies of attached files are off until they have a pepper of their own. Compose reads .env.
  80. grep -qs OTARI_PROVIDER_ACCOUNT_PEPPER .env || echo "OTARI_PROVIDER_ACCOUNT_PEPPER=$(openssl rand -base64 32)" >> .env
  81. docker compose pull
  82. docker compose up -d
  83. ```
  84. Compose runs Otari with PostgreSQL. Optional profiles add the code sandbox
  85. and web search services:
  86. ```bash
  87. docker compose --profile code-exec --profile web-search up -d
  88. ```
  89. The dashboard is served at `http://localhost:8000/`. To store provider keys
  90. through the dashboard on PostgreSQL, set `OTARI_SECRET_KEY` to a Fernet key
  91. generated by `otari gen-secret-key`.
  92. ## API and dashboard
  93. The core completion routes are:
  94. - `POST /api/v1/chat/completions`
  95. - `POST /api/v1/messages`
  96. - `POST /api/v1/responses`
  97. Otari also serves the broader OpenAI-compatible and management APIs. The
  98. running server publishes Swagger UI at `/api/v1/docs` and OpenAPI at
  99. `/api/v1/openapi.json`. See [API reference](docs/api-reference.md).
  100. The dashboard manages providers, models, routing, tools, keys, members, budgets,
  101. settings, activity, and usage. Its navigation adapts to the signed-in person's
  102. authority. See [Run the dashboard](docs/run-the-dashboard.md).
  103. ## Development
  104. ```bash
  105. git clone https://github.com/mozilla-ai/otari
  106. cd otari
  107. uv sync --dev
  108. cp config.example.yml config.yml
  109. uv run otari serve --config config.yml
  110. ```
  111. For local development without PostgreSQL, change `database_url` to
  112. `sqlite+aiosqlite:///./otari.db`.
  113. Common checks:
  114. ```bash
  115. make test
  116. make lint
  117. make typecheck
  118. ```
  119. See [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
  120. ## Documentation
  121. - [Quickstart](docs/self-hosted-quickstart.md)
  122. - [Deployment](docs/deployment.md)
  123. - [Configuration](docs/configuration.md)
  124. - [Models](docs/models.md)
  125. - [Routing](docs/routing.md)
  126. - [Access control](docs/access-control.md)
  127. - [Built-in tools](docs/tools.md)
  128. - [Agent Guardrails](cli/docs/agent-guardrails.md)
  129. - [SDK and agent integrations](docs/integrations.md)
  130. - [Architecture](ARCHITECTURE.md)
  131. ## License
  132. Apache 2.0. See [LICENSE](LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.