> For the complete documentation index, see [llms.txt](https://docs.otari.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.otari.ai/guides/control/access-control.md). Agents can also search and read this documentation through its [MCP server](https://docs.otari.ai/~gitbook/mcp).

# Access control

Otari separates who runs the deployment, who signs in to the dashboard, the credentials applications send, and the limits on what they spend. This page shows how those pieces fit together. Each one has its own page with the steps.

| Concept                  | What it is                                                                                  | Page                                                                                                                        |
| ------------------------ | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Organization             | The tenant boundary: owns workspaces, members, provider keys and organization-wide settings | [Organizations and workspaces](https://docs.otari.ai/guides/organize/workspaces.md)                                         |
| Workspace                | One app's, environment's, team's or customer's resources inside an organization             | [Organizations and workspaces](https://docs.otari.ai/guides/organize/workspaces.md)                                         |
| Member                   | A person's membership of an organization and some of its workspaces, with a role in each    | [Members and invitations](https://docs.otari.ai/guides/organize/members.md)                                                 |
| User                     | Who a request's spend is attributed to, and who per-user budgets apply to                   | [Sign-in and accounts](https://docs.otari.ai/self-hosting/sign-in#users-and-identities)                                     |
| Identity                 | Who signs in to the dashboard                                                               | [Sign-in and accounts](https://docs.otari.ai/self-hosting/sign-in)                                                          |
| API key                  | A workload credential bound to one user and one workspace                                   | [API keys](https://docs.otari.ai/guides/control/api-keys.md)                                                                |
| Service key and end user | A key whose requests bill the people an application serves                                  | [Track spend per end user](https://docs.otari.ai/guides/control/end-users.md)                                               |
| Budget                   | A spend, token or request limit over a period                                               | [Budgets](https://docs.otari.ai/guides/control/budgets.md)                                                                  |
| Provider key             | The organization's credential for an upstream LLM provider                                  | [Model providers](https://docs.otari.ai/guides/organize/model-providers.md)                                                 |
| Operator                 | Runs a self-hosted deployment as a whole                                                    | [Deployment-wide account administration](https://docs.otari.ai/self-hosting/sign-in#deployment-wide-account-administration) |

## How they relate

* **People** belong to an organization and to some of its workspaces, with one of four [roles](https://docs.otari.ai/guides/organize/workspaces.md#roles) in each. A person signs in as an identity, and their spend is recorded against the user behind it.
* **Applications** never sign in. They send an API key, which ties each request to one workspace and one user.
* **The workspace** decides which provider keys, aliases, routing policies and tools a request can use. Each stored MCP server's [access list](https://docs.otari.ai/reference/gateway/mcp#server-access) decides which keys reach it.
* **The user**, narrowed by the key, decides which models a request can reach, and the user's budget is the one it spends.
* **Provider keys** belong to the organization; applications never see them.
* **Budgets** sit over all of it. A per-user budget limits each user on it, and a spend ceiling caps an organization, a workspace, a membership or a single API key. A request has to fit every budget that applies.

Organization roles stop at their organization. On a self-hosted deployment, [operators](https://docs.otari.ai/self-hosting/sign-in#deployment-wide-account-administration) act on the whole deployment.

## What a page shows depends on who is signed in

* **Spend & budgets.** An organization owner or admin manages their organization's budgets and ceilings, whether or not they also operate the deployment. A deployment operator manages the deployment's own budgets, and the gateway users assigned to them, under **Deployment budgets** on the deployment's pages.
* **API keys.** An operator manages every key in the organization and picks each key's owner. A member sees only their own keys, always billed to themselves and never budget-exempt. An operator, or an organization owner or admin, can cap a key's spend from its create and edit forms, and the Budget column shows each key's spend against its limit. Where the deployment enables it, a key's actions menu offers **Workload identity…**; see [Rules on a member's own key](https://docs.otari.ai/self-hosting/operations/workload-identity#rules-on-a-members-own-key).
* **Home, Sessions and Routing** show an operator their active organization only. What Home shows each role is in [Home](https://docs.otari.ai/guides/observe/review-usage-and-requests.md#home).
* **Pages someone may not use** are left out of their menus, and opening one by its address goes to Home: the organization's pages for anyone but an owner or admin, the deployment's pages for anyone but its operator, the workspace's guardrails for anyone but an organization owner or admin, and the Playground for a viewer. A workspace's own page under **Workspaces** also opens to that workspace's owner or admin.

## How a request is attributed

The API key decides a request's workspace; no header can pick another. Usage is recorded in that workspace and spend is billed to the key's user.

A `user` value in the request never moves spend away from the key's user. By default a request naming another user is refused, and a key set to accept it still bills its own user (see [Mismatched `user` fields](https://docs.otari.ai/guides/control/api-keys.md#mismatched-user-fields)). The exception is a [service key](https://docs.otari.ai/guides/control/end-users.md), which bills end users that belong to its own user.

A dashboard session works on the management API, not for inference; see [Dashboard sessions and identity](https://docs.otari.ai/self-hosting/sign-in#dashboard-sessions-and-identity).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.otari.ai/guides/control/access-control.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
