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

> ## Agent Instructions
> Orq.ai is the control plane for model and MCP traffic: one key reaches the workspace's enabled models, MCP servers, and resources. The setup depends on where the agent runs.
> Hosted assistant (ChatGPT, claude.ai, a hosted sandbox): install nothing. Tell the human to add https://my.orq.ai/v2/mcp as a remote MCP connector and finish the Orq.ai sign-in. With OAuth, send no Authorization header; otherwise send an API key as a bearer token.
> Local coding agent (Claude Code, Codex, Cursor, OpenCode): run `curl -fsSL https://cli.orq.ai/install.sh | sh`. It installs the CLI and runs `orq setup`, which signs in, writes a project-scoped key to `~/.orq/env`, and wires the detected agents through the AI Gateway. It can also add the Orq MCP server and Orq Skills, the workflows for agents, evaluations, and traces: https://docs.orq.ai/ai-studio/integrations/code-assistants/orq-skills.md. Cursor receives the Orq MCP server and Orq Skills only; its model calls are not routed through the AI Gateway. Verify with `orq status`.
> Headless or CI: read `ORQ_API_KEY` from the environment; a human creates the key at https://docs.orq.ai/ai-studio/organization/api-keys.md.
> Send model traffic to https://my.orq.ai/v3/router with `Authorization: Bearer $ORQ_API_KEY`; the Anthropic SDK uses https://my.orq.ai/v3/anthropic. New integrations go on `/v3/router`: `/v2/router` stays published for backward compatibility, and `orq.prompt` works only on `/v2/router/chat/completions`.
> To enable a model for the workspace, ask a human to enable it in the Model Garden, or call `POST /v2/workspace-models` with a Management Key that has `workspace-model` write; API keys are rejected with `403`. Use the model's exact `provider/model` id. A call fails while the workspace has neither credits nor a provider key.
> On `/chat/completions`, a reasoning model rejects `tools` with a `reasoning_effort` other than `none`; `/responses` keeps reasoning.
> On a failure, branch on `error.code` and follow `error.doc_url`; a budget rejection answers 429.

# Monitor

> Monitor gateway traffic, follow a call, and trace changes to the tool surface.

## Monitor MCP Usage

The **Overview** tab reports how clients use the MCP Gateway. It opens on the last 7 days, and every card compares that window against the one before it. Change the window with the time range picker in the top right.

The tab also shows the [health checks](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#health-checks) of the linked servers, with how many are unhealthy or degraded.

![MCP Gateway Overview showing Tool calls, Success, Errors and P95 latency cards above a Tool calls by outcome bar chart and a Tools leaderboard of the most called tools](https://mintcdn.com/orqai/vqpXUIoWZpSo95YA/images/mcp-gateway-overview-414.png?fit=max\&auto=format\&n=vqpXUIoWZpSo95YA\&q=85\&s=bce810ae8d44ca77838beede41dc4400)

MCP Gateway Overview tab over the last 7 days

| Card | Description |
| - | - |
| **Tool calls** | Tool invocations routed through the MCP Gateway. |
| **Success** | Invocations that completed successfully. |
| **Errors** | Invocations that returned an error. |
| **P95 latency** | 95th percentile duration of successful invocations. |

**Traffic and reliability** breaks the same window down further:

* **Tool calls by outcome**: call volume over time, split into successes and errors.
* **Tools leaderboard**: the most called tools with their call count and P95 latency, listed under their namespaced names.

**Performance** adds **Tool latency**, P50 and P95 over the window, and **Calls by upstream server** ranked per server.

The **Traces** tab lists the individual tool calls behind these numbers, scoped to this gateway. Each call shows when it started, its status, the tool name, and its duration. Tool calls an **Agent** makes through an attached gateway are subject to the gateway's plugins, guardrails and runtime limits, and are recorded here.

## Where to Monitor

The **Overview** tab covers this gateway. Use these views for the other questions:

| Question | Where to look |
| - | - |
| One gateway | The gateway's **Overview** tab |
| One server across gateways | [The server's **Overview** tab](https://docs.orq.ai/ai-gateway/mcp-portal/mcp-servers.md#monitor-mcp-usage) |
| All gateways | [**Activity**](https://docs.orq.ai/ai-studio/observability/activity.md#mcp) |
| One call | The **Traces** tab |
| Who changed the tool surface | [Audit Logs](https://docs.orq.ai/ai-studio/organization/audit-logs.md) |

## Audit Changes

Changes to the MCP Gateway are recorded in [Audit Logs](https://docs.orq.ai/ai-studio/organization/audit-logs.md), so a change to the exposed tool surface can be traced back to whoever made it.

Entries are written under two entity types:

| Entity type | Recorded when |
| - | - |
| **MCP Gateway** | A gateway is created, updated, or deleted, including changes to its linked servers. |
| **MCP Server** | A server is created, updated, or deleted. |

Filter by either entity type on the Audit Logs page to see only MCP Portal activity. Entries for both entity types can be exported as a file; see [Export audit logs](https://docs.orq.ai/ai-studio/organization/audit-logs.md#export-audit-logs).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.