> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oleria.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Administrator setup

> Choose which applications AI agents can reach, decide what happens when an agent attempts a risky operation, and add custom rules in Rego.

Before anyone in your organization can point an AI agent at the gateway, an administrator decides which applications are in scope and what agents are allowed to do in them. This is a one-time setup per application, and it applies to every agent and every user.

<Note>
  Only Oleria Administrators can enable applications or set gateway policy. [View role permissions](/administration/default-user-roles).
</Note>

## Open the gateway console

In the admin portal, at `youroleriainstancename.oleria.io`, go to **Governance** -> **Oleria AI Agent Gateway**.

The console is organized into tabs:

| Tab                | What it's for                                                              |
| :----------------- | :------------------------------------------------------------------------- |
| OAuth Access       | Enable the OAuth applications agents can reach, and set each one's policy. |
| Non-OAuth Access   | Enable applications reached with an API key or token instead of OAuth.     |
| LLMs               | Manage the LLM providers and models available through the gateway.         |
| Activity           | Review every call that passed through the gateway.                         |
| Maestro Policies   | Manage organization-wide gateway policy.                                   |
| Agents             | Review the agents registered against your tenant.                          |
| Attestation Config | Configure device attestation requirements for agent access.                |

<img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/admin-catalog.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=3fe9665080a9e93c038afeef8a508d27" alt="Oleria AI Agent Gateway console on the OAuth Access tab, showing the application catalog with Enabled checkboxes" width="795" height="422" data-path="images/governance/ai-agent-gateway/admin-catalog.png" />

## Enable an application

Applications are disabled by default. Nothing reaches an application through the gateway until you enable it.

<Steps>
  <Step title="Find the application">
    On the **OAuth Access** tab, search for the application by name. The catalog lists every application the gateway supports, with its category under **App Type**.

    <img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/admin-search.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=ba67066a935e00a67e5119ea36a196c9" alt="The application catalog filtered to SharePoint, showing its app type and the Enabled checkbox" width="735" height="114" data-path="images/governance/ai-agent-gateway/admin-search.png" />
  </Step>

  <Step title="Enable it">
    Select the checkbox in the **Enabled** column. The change takes effect immediately - users can now connect the application to their own account, and agents can reach it once a user has connected it.

    Clearing the checkbox blocks the application again, for everyone, without anyone having to disconnect it.
  </Step>

  <Step title="Open its policy">
    Select the application's row to open its policy panel, then set the controls described below.
  </Step>
</Steps>

## Set the application's policy

Each application has its own policy panel, covering what happens when an agent attempts a high-impact action and any custom rules you add on top.

### Risky operations

Risky operations are the high-impact actions the gateway recognizes for an application - deleting a site, deleting an item, changing permissions, writing a file. Each one gets a decision, which the gateway evaluates before the action reaches the application.

| Decision        | What happens when an agent attempts the action                                                                   |
| :-------------- | :--------------------------------------------------------------------------------------------------------------- |
| Allow           | The action runs.                                                                                                 |
| Allow and Alert | The action runs, and Oleria raises an alert.                                                                     |
| Ask             | The action pauses. Oleria sends an approval request to the approver, and the action runs only if it is approved. |
| Deny            | The action is blocked, and the agent is told it isn't permitted.                                                 |

Choosing **Ask** reveals an **Approver** field. Set it to the requester's manager, or to a specific person who should decide.

<img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/admin-policy-ask.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=eae6d435c94a1c776442bfdfaef4168e" alt="Risky operations with Write file set to Ask and its approver set to Manager, above the Rego editor and Save button" width="769" height="578" data-path="images/governance/ai-agent-gateway/admin-policy-ask.png" />

<Note>
  A denial is returned to the agent as a refusal, not a silent failure. The agent is told the action isn't permitted, so it can report the outcome to the person who asked for it rather than retrying blindly.
</Note>

### Custom rules (Rego)

Risky operations cover the actions Oleria has modeled for each application. For anything else, write custom allow and deny rules in Rego.

Use custom rules when the decision depends on the details of the call rather than the action alone - for example, denying a push to a protected branch while allowing pushes everywhere else:

```rego theme={null}
deny { input.tool == "git_push"; input.args.ref == "main" }
```

Select **Validate** to check the rule before saving. Validation catches syntax errors and rules that could never match, so a broken rule can't be saved and silently stop enforcing.

When the policy is right, select **Save**. It applies to the next call each agent makes - agents don't need to reconnect.

## Make the gateway available in your AI tools

Enabling an application decides what agents may reach. Your AI tool still needs to know where the gateway is.

Most AI tools let an administrator publish a connector once for the whole organization, so members find it already listed instead of pasting a URL themselves. In Claude, this is done by a Claude organization administrator, separately from Oleria.

<Steps>
  <Step title="Open your AI tool's admin settings">
    In Claude, go to **Admin settings** -> **Connectors**, under **Libraries & Access**.

    <img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/claude-admin-connectors.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=9bae7fafcd84ab3df04ff60dfbd51031" alt="The Libraries & Access group in the Claude admin settings navigation, with Connectors selected" width="182" height="146" data-path="images/governance/ai-agent-gateway/claude-admin-connectors.png" />
  </Step>

  <Step title="Add the gateway as a custom connector">
    Select **Add**, then **Custom** -> **Web**.

    <img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/claude-admin-add-connector.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=3dd9232b05973d013c6ea75dcc67710c" alt="The Connectors page in Claude admin settings with the Add menu open, showing Custom expanded to Web and Desktop" width="710" height="143" data-path="images/governance/ai-agent-gateway/claude-admin-add-connector.png" />

    In **Connector details**, name the connector - this is what members see in their connectors list - and enter your gateway's MCP endpoint:

    ```
    https://ai-gateway.prod.oleria.io/connect/mcp
    ```

    <img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/claude-admin-connector-url.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=82e91ce95fc9a4c6151f8a1df3e8b9b9" alt="The Connector details dialog showing the connector name and the gateway MCP endpoint" width="382" height="125" data-path="images/governance/ai-agent-gateway/claude-admin-connector-url.png" />

    This endpoint is the same for every Oleria production tenant - there is nothing tenant-specific to substitute.

    **OAuth Client ID** and **OAuth Client Secret**, under **Advanced settings**, are optional. Leave them empty unless Oleria has given you values to use.
  </Step>

  <Step title="Leave authorization to each member">
    Under **Authentication**, turn on **Browser sign-in**. Each member signs in to Oleria themselves the first time they use the connector, so the gateway acts as that person - with their permissions and their connected applications. Publishing the connector does not grant anyone access on its own.

    <img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/claude-admin-browser-signin.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=37454571ce8e4a350db6dd87d7721c07" alt="The Authentication section of the Connector details dialog with Browser sign-in turned on" width="382" height="110" data-path="images/governance/ai-agent-gateway/claude-admin-browser-signin.png" />

    **Managed authorization** is the alternative, connecting members through your identity provider instead of a browser sign-in.
  </Step>
</Steps>

<Note>
  Members can also add the connector themselves if you'd rather not publish it centrally. Either way, each person authorizes it individually. See [Connect and use your AI agent](/governance/ai-agent-gateway-connect-agents#add-the-gateway-to-your-ai-agent).
</Note>

## Review what agents are doing

The **Activity** tab is the audit trail for the whole organization. It records every call that passed through the gateway - the time, the **user** it ran as, the agent, the session, the application, and the exact action attempted.

<img src="https://mintcdn.com/dev-oleria/-ta9F4IOoIdAdZV0/images/governance/ai-agent-gateway/admin-activity.png?fit=max&auto=format&n=-ta9F4IOoIdAdZV0&q=85&s=db19fe2efc2699e0602127bec7a132e1" alt="Activity tab in the admin console, listing gateway calls across the organization with time, user, agent, session, app, and action columns" width="765" height="577" data-path="images/governance/ai-agent-gateway/admin-activity.png" />

The **User** column is what separates this view from the one people see in the Governance App. Because agents act as the person who connected them, every entry ties back to a named person and a session rather than to a shared token.

Connections and disconnections are recorded alongside API calls, so the trail covers how access was obtained as well as how it was used. Use it to confirm a new policy is having the effect you expect, and to investigate anything unexpected.

Each person sees only their own activity in the Governance App - see [Connect and use your AI agent](/governance/ai-agent-gateway-connect-agents#see-what-your-agent-did).

## Contact us

For questions, contact us at [support@oleria.com](mailto:support@oleria.com).
