Admin dashboard
Otari serves its dashboard at the gateway root. The dashboard uses the same management API available to scripts, so access and behavior are determined by the server rather than duplicated in the frontend.
The dashboard reads GET /api/v1/bootstrap before rendering. That response controls the available sign-in methods and navigation surfaces, so a page the deployment does not serve is not offered.
Sign-in and secrets
The master key and OTARI_SECRET_KEY are different credentials:
Master key
Authorizes deployment management and signs in the first operator
OTARI_SECRET_KEY
Encrypts provider and search-tool credentials stored in the database
If OTARI_MASTER_KEY is unset on a new database, Otari generates a master key and prints it once. The dashboard exchanges it for an HttpOnly session cookie; it does not store the master key in browser storage.
Set OTARI_SECRET_KEY before saving provider or search-tool credentials through the dashboard:
otari gen-secret-keyKeep this key separate from the database. Losing it makes stored credentials undecryptable. Providers configured in config.yml do not require it.
The operator can claim a new deployment by setting an email address and password from Account settings. After that, the sign-in page uses the password rather than the master key. The master key remains valid for management API calls and can reset the operator password. It resets the operator's password only: to help a member who forgot theirs, send them a password link from Accounts, which emails it where mail is configured and otherwise gives you the link to share (see Access control).
The sign-in page offers the email and password form as soon as any identity holds a password, which can be before the operator claims the deployment: a member added to the roster and signed up signs in there. While both credentials still work, the page offers the master-key box beside the form.
Account settings also carries the name you are known by, which is not a credential: it is what the account menu, the organization roster and the user column on the Overview shows. Someone an admin added to the roster by address has no name until they set one here. Clearing it puts those surfaces back to naming you by your sign-in address. The dashboard reads who is signed in from GET /api/v1/auth/profile, which answers whether or not you belong to an organization, so the account menu names you even before you join one.
First-run walkthrough
Start Otari.
Open the gateway root, usually
http://localhost:8000/.Sign in with the configured or generated master key.
Add a provider. If storing its credential in the dashboard, configure
OTARI_SECRET_KEYfirst.Test the provider connection or declare model IDs for a backend that has no model-listing endpoint.
Create an API key from the setup guide or the Keys page.
Send a request and confirm it appears on the Overview, in Requests.
The Quickstart includes a complete request example.
The setup guide
Overview offers a short setup flow until the selected workspace serves its first successful gateway request from outside the product. A message sent in the Playground does not close it: the guide marks the moment somebody's own code first reached the gateway, which is the point of the flow. The key it creates is an ordinary workspace API key. Skipping the guide hides it for that workspace; it does not revoke a key already created. Set activation_guide: false to disable the flow for the deployment.
Navigation
The workspace view contains day-to-day gateway operations:
Overview, the landing page. It opens with what needs attention, then reads the gateway three ways, as tabs over one time window and one set of filters: Usage (spend, tokens and requests over time, with breakdowns, at
/), Requests (the per-request log, at/requests) and Sessions (agent sessions, at/sessions). Below the tabs, the time range and the model, user, API key and status filters are always shown; they live in the URL and travel when you switch tab, and clicking a chart bar narrows the window to that bar. Today, a time range on Usage, starts the window at local midnight. Every tab opens on everyone's requests in the workspace; pick yourself in the User filter to see only your own. The old/usageand/activityaddresses open the matching tab with their filters.Playground, Models, and Routing. Models is the catalog grouped by model: a list of cards with a rail of filters beside it, and a page per model where every offering of it is compared, each with its own limits and the price your organization is charged. Each row shows the provider's own model ID under the provider, which tells apart two offerings on one provider, such as Bedrock's regional inference profiles. It is read-only; a rate is set on Providers > Inference. Routing lists each policy with its main model, its backups in order, and who it applies to. Automatic fallback lists the models your organization used in the last 30 days by catalog ID, the share of requests that sent that ID and so could fall back, and the providers it tries in their baseline order with their prices (automatic routing can reorder them per request); a row opens on the API keys that named a provider or policy instead. The Models guide explains the order. Create policy first asks what the policy is for (a fallback, a traffic split, a smart router, spill-over at rate limits, or a budget tier-down) and then shows only that kind's fields; the empty list offers a fallback directly. Models are chosen by model and then by provider. Each policy has its own page, opened from Edit in the list, where its main selection, fallback chain, budget tier-down and guardrails are combined, each section with its own Save. Policies from
config.ymlopen there read-only.Tools
API keys and workspace members
The organization view contains tenant-wide administration:
Organization-wide usage
Workspaces and organization members
Email domains, for joining colleagues automatically
Spend and budgets
General: Providers, followed by Guardrails and Org settings. Providers groups two pages, Inference and Web search.
Inference is the organization's own upstream credentials, the models each one reaches, and what this organization pays for them: adding a key offers every model the provider lists on it, each carrying a switch that decides whether the runtime serves it. Each is priced by the first rung that answers, which is the order a request is metered by: this organization's own rate, then the deployment price list, then the community defaults. A model nothing prices is offered and left unserved. Each key's row counts how many of its offered models are serving, and a key serving none of them is marked, because every request through it is refused until a switch is on. The star on a key makes it the organization's default for its provider, and clicking a filled star removes that. For a provider the deployment has no credential of its own for, a workspace uses the key it set to "Always use this key", otherwise the organization's default, otherwise the oldest key; a key it set to "Never use this key" is passed over at every step. The deployment's own provider credentials, served to every organization, are managed on Hosted providers in the deployment view, or in
config.yml.Web search is the organization's own search and fetch keys, in one table per kind. Adding a key asks for its provider first, from the providers the search and fetch libraries serve, and then for what that provider needs: a name, the API key, and under More settings an endpoint of its own and the provider's options. Editing a key never shows its secret; moving it to another endpoint needs the API key entered again. The star on a key sets it as the workspace default, the key every workspace uses unless it pins another, and clicking a filled star unsets it. A workspace uses the key its owners or admins pinned, otherwise the starred key, otherwise the deployment's own search or fetch tool, so a key added and not starred changes nothing until a workspace pins it. Archiving a key takes it out of use, and an archived key can be restored or deleted. A key this deployment cannot decrypt is marked unreadable. The page sets no prices: the deployment's operator prices an organization's search and fetch calls.
The deployment view, opened from the account menu, holds what belongs to the gateway process rather than to any organization on it:
Settings, the running configuration.
Accounts, every account on the deployment.
Hosted providers, the keys the deployment serves inference on for a request that brings no credential of its own. A request is served on one only after the organization's own keys and the configured providers have not answered. Adding a provider offers every model it lists on the key; each model carries a serving switch and a price, set per million tokens or per 1,000 requests or images, and a model nothing prices arrives switched off. Refresh models asks one provider again. Update catalog fetches the latest models.dev prices and then asks every provider what it lists, showing the price changes and each provider's new models before applying them; its optional cleanup also removes priced models nothing on the deployment serves, along with the model lists of providers nothing configures any more, listing them before anything is removed. A provider kept to one organization shows which; that restriction is set through
/api/v1/hosted-providers. The Countries column shows the countries a provider serves, set in the add and edit dialogs as two-letter codes, typed or loaded from a JSON file holding a list of them (or one undersupported_countries), blank for every country (see Supported countries). A provider defined in thehosted_providers:block ofconfig.ymlcarries aconfig.ymlbadge and cannot be edited, switched or removed here, while its models can; adding a provider of the same name overrides it, which the form warns about. A provider takes an optional name, which defaults to its implementation; a name of its own (openai-eu) serves a second endpoint of one implementation, reached asopenai-eu:<model>. The key is optional for a provider that needs none and for one pointed at an endpoint of its own. Test connection, in the add and edit dialogs, asks the provider what it lists on the dialog's values without saving them, the stored key standing in for a blank key box; Test on a provider's row asks the same of what it stores. Serve models not on its list, in both dialogs, makes a provider serve any model a request names, as aconfig.ymlprovider does, priced or not, while a model switched off on its list is still refused. It is off by default; a provider moved from the retired Deployment providers page starts with it off and every model it lists switched on, priced or not. A provider's name opens Models filtered to it, and above the table a summary counts the providers reachable, with Re-check all to ask them again. With no provider yet, the page walks through adding the first one, and offers to enable default pricing when pricing is required and nothing sets it. Adding a provider is disabled, with a banner saying why, while the server has noOTARI_SECRET_KEYto encrypt its key with. The table also lists theproviders:instances ofconfig.yml, marked config.yml and read-only, with their reachability. Providers stored on the retired Deployment providers page are moved here under the same names automatically at startup. Any that could not be moved are listed in a banner with the reason: once the cause is fixed, move it from there, or Discard it, since a row left behind serves nothing.Subagent router, the decision models that pick the model a coding agent's subagent runs on when the otari-router plugin for Claude Code, or pi-otari, asks
POST /api/v1/routing/recommend. A router is a provider (TypeSafe, OpenRouter or a llama.cpp server), a model, an optional API base, a key stored encrypted and shown by its last four characters, and the price per million input and output tokens the caller is charged. Several may be added and one is switched on at a time: the first one added is on, and the Serving switch moves it. Both prices at 0 make a free router, such as a local model. With none added, or every router switched off, no model is picked. This page is the only place the router is set. See Subagent routers.Web search, the search and fetch tools the deployment runs for every workspace and what each call costs. Its two tables list the search tools and the fetch tools,
builtin_fetchfirst, each with its key's last four and its price per call, and end with theotari:web_searchorotari:web_fetchrate that prices what no tool's own rate does. A search tool with no price of its own takes that rate for the model's searches, while its calls on the search API go unpriced. A row opens its endpoint, enrichment and options; its star makes it the default the model uses, and Test runs one search or fetch and says how many hits or characters came back. Add search tool and Add fetch tool pick a provider first, then ask for what it needs (its key, an endpoint when it has none of its own) and a price, with the endpoint, timeout, enrichment and the provider's options under More settings, typed from the provider catalog or written as JSON. Edit and Remove change a stored tool; aconfig.ymltool,builtin_fetchand the two fallback rates take only a price, and a rate fromprice_per_callis changed inconfig.yml. Below the tables, The model's web tools turns the model's search off, and sets the calls a request may make, the results per search, reading pages for hits without text, and running a provider's own web search here. The legacy SearXNG backend's URL and engines show while they are set.Code execution pricing, what the deployment charges per successful call of
otari:code_execution.On both pages, Edit sets a rate in dollars per call, in force from the moment it is saved, and 0 prices a tool as free. With
require_pricingon, the page warns while a tool it lists has no rate, because a request that would run it is refused. See Pricing a gateway-run tool.
Accounts and Hosted providers are listed only for a deployment operator, and answer anyone else that they are not available to them. Web search and Code execution pricing are listed for one too, and say the same to anyone else who opens them. Tools > Web search links an operator to the Web search page.
Settings shows the effective non-secret configuration. Some values can be changed at runtime and others require a restart. The server marks that distinction in the settings response. Its Rate limit rules card adds, edits and removes limits on requests per minute, tokens per minute and requests in flight; rules from config.yml are listed there read-only.
What a page shows can also depend on who is signed in, not only on the deployment. Spend and budgets is the clearest case: an organization owner or admin manages their own organization's budgets and the spend ceilings holding them, while a deployment operator gets the deployment's own budgets, their active organization's, and the gateway users assigned to them. Usage, activity, traces, routing and the overview's key count likewise show an operator their active organization, not every organization on the deployment.
Providers answers to the organization role rather than to deployment authority. Its owners and admins manage the keys, the models each key offers, and the rate each model is billed at. An organization may set its own rate for a model it supplies the provider key for. A model reached through one of the deployment's own provider instances is not one of those: the deployment holds that credential and settles its upstream bill, so its rate is the deployment price list's, which is /api/v1/pricing and has no page of its own. The same holds for a model the deployment serves on one of its hosted providers: a request served there is priced only from a rate the deployment operator set, either the price list or a rate the operator set for this organization, never from one the organization wrote itself, even one written while its own key still covered the model. A rate the operator set for an organization is listed beside the organization's own, and only the operator may change or remove it. The models.dev defaults are kept current by Update catalog on the Hosted providers page, or on a schedule under pricing_refresh.
A rate is per million tokens, per request, or per image, and the rate form asks which. A request or image rate is entered per 1,000, the way providers publish one: $2 per 1,000 searches for a rerank model is entered as 2 and stored as 2000 per million, which is how every rate travels on the wire. The model lists name such a rate by its unit, for example "$0.002 per request". The same choice is on the Requests view's "Price this model", offered on a served request that carried no cost (a failed attempt billed nothing, so its error is the guide instead), which opens per request for a rerank, audio or moderation request and per image for an image generation. The unit decides what a rate bills. A token rate on an audio or moderation request is still read per request for now and logs a warning; a later release reads it strictly, as tokens, which those requests do not report, so price them per request.
Exact page names and availability can change with configuration and installed extensions. The running dashboard is the source of truth.
What a page shows can also depend on who is signed in. On API keys, an operator manages every key in the organization and chooses each key's owner, while a member sees the same page scoped to their own keys, always billed to themselves and never budget-exempt. An operator, or an organization owner or admin, can also cap a key's own spend: the key's create and edit forms take an existing budget or a custom amount and reset, and a Budget column shows each key's spend this period against its limit. Where the deployment turns on federation_member_rules, a key's actions menu offers Workload identity… to the operator, and to an organization owner or admin on their own keys; see Rules on a member's own key.
The Overview's attention strip splits the same way. It appears only when there is something to act on, above the tabs on every one of them, and each item links to the page that explains it: a high error rate today opens Requests on today's failures. It is about what the caller answers for, so it does not follow the page's filters: for an organization member it carries their own error rate when it is high; an owner or admin sees the organization's error rate and a spend ceiling at or near its limit; a deployment operator sees the deployment's error rate, provider health and the deployment's own budgets.
Playground
The Playground is the in-product chat page: pick a model the gateway serves and talk to it, or put two side by side and record which answered better. Requests run through the same path as any other completion, so routing policies, guardrails, budgets and the tool loop all apply, and every request appears on the Overview.
A question can carry files. Attach them with the paperclip in the composer or drop them anywhere on the page; each uploads at once and shows as a chip with its name and size until the question is sent. The model reads them the way an API request's uploaded files are read, so a text-only local model is given their extracted text. When comparing, both models get the same files. A saved conversation remembers which files each question carried. Removing a chip takes the file off that question and keeps the upload: the Files dialog lists everything you uploaded in the workspace, to attach again or to delete. These controls do not appear when file uploads are off.
The Tools menu attaches web search, code execution and any number of MCP servers to the next message, in any mix: the model is offered all of them in one tool loop. A tool the gateway runs shows in the transcript above the reply as a collapsed row with its status, opening to the arguments the model sent and what the tool returned (a long result is shortened for display). This activity is shown in the Playground only and is not saved with a conversation; a request made through the API still returns just the final message, as What clients receive describes.
Two things are worth knowing about how it is billed and what it stores.
A Playground request carries no API key. It is authorized by the dashboard session and billed to whoever sent it, in the workspace the switcher has selected, against that person's own budget and rate limit; its usage row therefore has no key attached. A viewer cannot send one, since it spends like a key, so the page tells them so instead of offering a composer. Picking a different model changes which provider credential the gateway resolves, never who pays. A request made here also does not count as the workspace's first request, so the setup guide keeps waiting for one from outside the product, which is the milestone it exists to mark.
Nothing is stored until asked for. Saving a conversation or recording a comparison prompts once for content retention, and the flags are per person and revocable; withdrawing one blocks new saves and deletes nothing. Saved transcripts, recorded comparisons and pinned models are visible only to the person who created them, even to colleagues in the same workspace, and each can be deleted from the page.
Observability
The Overview's Requests tab is the per-request log. A request opens from the Otari-Request-ID its response carried, at /requests?request=<id>, on the attempt that served it or the one that failed last, wherever it sits in the log; its detail shows that same id. Its Sessions tab lists agent sessions where the deployment records traces (trace_capture_enabled, on by default), and is not offered where it does not. Sessions applies the user, API key, model and status filters carried from the other tabs; a model filter matches the sessions with an LLM call on that model, and a status with no session meaning is shown as not applied rather than dropped. Narrowing the chart to a window that holds a single session opens it. Its chart counts sessions per hour or day as succeeded or failed, and its Levels column counts each session's errors, tools' errors included; a tool's error alone does not fail a session (see Sessions and failures). The Last activity, Levels, Latency, Tokens and Total cost headers sort the list across every page: a header's first press puts the largest first and a second press flips it, and the order is kept in the URL with the filters. A session opens in a side panel as a tree of its turns, LLM calls and tool calls, a timeline of the same spans, or a flat log. The token count in its header breaks down into input, the share of it the prompt cache served, and output, for the session or the span picked. Before a span is picked, the panel shows what the session cost against its key's own spend ceiling and where the gateway stepped in. A request in Requests whose session was recorded links to it: View trace in the request's detail opens the session on that LLM call. Charts provides aggregates and time series; its spend by session groups requests by the same sessions, keyed by trace id. Routed requests share a request-group ID, so the request log can show the attempted models and the model that served the response. Imported usage is labeled by source and does not consume a budget.
Use Prometheus at /metrics for process-level monitoring when enable_metrics is enabled. The scrape needs the metrics extra (pip install gateway[metrics]); the Docker image installs it, and a source install that sets enable_metrics without it refuses to start rather than serving an empty scrape.
Organization
Organizations own workspaces. The workspace switcher determines which keys, members, usage, tools, aliases, and stored routing policies are in view. The organization section manages resources shared across those workspaces.
What a signed-in person can see or change is enforced by their organization and workspace roles. Deployment-wide operations require an operator. See Access control.
Invitations waiting on you are listed under Invitations, reached from the organization switcher. After you accept one, the page offers to take you into that organization. Someone signed in who is not yet a member of any organization is taken to Invitations when one is waiting; otherwise Overview says how to get in, and the sidebar holds only Overview. Creating an organization is offered to them only where open_signup is on, since the gateway refuses it otherwise.
Opening an invitation link in a browser signed in as a different address, or as an identity with no address, says who the invitation is for and offers to sign out and continue, because accepting always adds the invited address, whoever is signed in. After a password is set from an invitation link, the sign-in screen opens with the invited address filled in. When the link cannot set a password and the address has none yet, the page says how to get in instead: a Google or GitHub sign-in, or "Forgot your password?", whichever the deployment offers. The other pages in front of sign-in carry the address the same way: from the sign-in screen to "Forgot your password?", from signup or a resend to the page saying which address was mailed and on to another resend, and back to the sign-in screen after a verification or a recovery request. A password never travels with it.
On Members, an invited row offers Reissue and Revoke, and says when its invitation has expired. Reissue sends a new accept link (or shows it to share, when the email did not go out) and the old one stops working, which is how a lost link is recovered.
Authentication options
Password sign-in works for an existing account. Optional passkeys, Google OAuth and GitHub OAuth add more ways to sign in. Set passkeys_enabled: false (OTARI_PASSKEYS_ENABLED) to switch passkeys off entirely. When the deployment sets open_signup: true, a new address can also create an account with its own organization, through the signup form or a Google or GitHub sign-in. Where the deployment publishes terms (terms_url), the signup page asks for them before any of those, and the invitation page asks before "Accept and sign in with a provider instead". A provider sign-in from the sign-in screen that would set up an account without them stops on the page the provider returns to, which asks for the terms and starts the sign-in again. A passkey never creates an account. OAuth requires public_base_url plus the provider's client ID and secret. Passkeys can instead use public_base_url, or an explicit webauthn_rp_id and webauthn_allowed_origins pair.
A link to a dashboard page opened while signed out shows the sign-in screen first, then that page once you have signed in, whichever of these methods you use.
Signing in can add a membership in one case. If an organization has claimed and proven the email domain that the identity's verified address belongs to, the sign-in joins them to that organization at the role the claim names, whichever of the three credentials they used. It is the only path that grants membership without somebody deciding about the person, and it is fenced accordingly: see Email-domain auto-join.
Mail is optional. When an invitation email does not go out (no mail, a failed send, or the daily invitation mail limit), you get the accept link to share, and an invitee new to the deployment chooses a password on the page it opens, so a deployment without SMTP can still bring people in. See Configuration.
Custom documentation
The dashboard's Documentation link opens docs.otari.ai. Set docs_url to make it open a different site.
Legal pages
terms_url and privacy_url name where this deployment's terms of service and privacy notice live. The account menu links each row it has an address for; see Configuration.
Development
The dashboard source is under web/. The published Docker image includes the bundle. A source checkout needs make dashboard for the gateway to serve it, or pnpm --dir web dev for frontend development. See web/README.md.
Last updated
Was this helpful?
