Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mozilla-aiv0.1.3Apache-2.0In 1 marketplace
Asks an Otari gateway which model each Claude Code subagent should run on, and starts it there.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Otari URLotari_url
Base URL of the gateway that recommends the model, such as https://otari.example.com. Plain http only for a gateway on this machine.
stringRequired
Otari API keyotari_api_key
The key each recommendation is billed to. It needs the agents scope.
Sensitive
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it makes network requests.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code plugin for Otari, the open-source AI gateway. When Claude Code spawns a subagent, the plugin asks the gateway which model that subagent should run on, and starts it there.
Switching the model inside a running conversation cold-starts its prompt cache. A new subagent has no cache yet, so the moment it is spawned is where a cheaper model is free. Claude Code can take Otari's pick at that moment even when its own requests go to Anthropic directly.
In a Claude Code session:
/plugin marketplace add mozilla-ai/otari
/plugin install otari-router@otari
From a terminal, the same two steps are claude plugin marketplace add mozilla-ai/otari and claude plugin install otari-router@otari.
The install asks for two values, and both are required:
| Option | What it is |
|---|---|
otari_url | Base URL of the gateway, such as https://otari.example.com. Plain http only for a gateway on this machine, since the key travels in a header. |
otari_api_key | The key each recommendation is billed to. It needs the agents scope, which the Coding agent choice under Access in the key form includes. Stored in secure storage, never in a settings file. |
Change them later with /plugin configure otari-router. The plugin is active
in the session that installed it and in every session after.
To remove it: claude plugin uninstall otari-router@otari.
One hooks module with two hooks:
agent.spawn: sends the spawn (subagent type, task, parent model, the
model the caller asked for) to POST /api/v1/routing/recommend and starts
the subagent on the model the gateway recommends. A fork is not asked
about: Claude Code keeps a fork on its parent's model. When the gateway
does not answer within three seconds, or answers with an error, the
subagent starts on the model it would have had anyway, and a line in the
transcript says so.turn.complete: when a subagent finishes, logs the model it ran on and
its token counts, so the pick can be checked against what it cost.Each spawn leaves a dim transcript line such as
Explore agent-… starts on claude-haiku-4-5, Otari's choice (haiku with 81%).
claude plugin validate plugins/otari-router
claude plugin test plugins/otari-router
To run the checkout's copy in your own sessions, add the repository folder as
a marketplace, claude plugin marketplace add /path/to/otari, and install
from it. A plugin installed from a folder is read in place, so an edit reaches
an open session with /reload-plugins. Claude Code lays editor typings into
.claude-plugin/types/ under the plugin when it loads; that folder is
gitignored.
A plugin installed from GitHub is a copy pinned by version in
plugin.json. A change to the plugin bumps that version, and users pick it up
with claude plugin update otari-router@otari.
7-day copy clicks
npx claudepluginhub mozilla-ai/otari --plugin otari-routerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground